Jump to content

Recommended Posts

Guest Ramsberg
Posted

checked the OSC setting when programming: "H HS 4K PLL"...Will put the IC ito the UV solarium right away d:-))Will then reprogram with HS. I'll gamble with the WDT and PWRT disabled.Thanks! Olle

Posted

Oooops, sorry Olle. The settings are correct with "H HS 4K PLL". My bad, I looked at the wrong HEX file.Both the WDT & PWRT should be off like you saw.http://www.vif.com/users/leolacava/temp/icprog.jpgSo it looks like that's not the problem. Can you post a spec sheet or link of a data manual for the ceramic resonator you use?Did you verify the silicon revision of the chip? Just want to cover all bases before we try other things.Unfortunately USB is not easy to debug without expensive protocol analyzer tools. If all fails, I'll send you a debug HEX file that sets some output pins to help identify where in the enumeration process fails. That will help me determine what the problem might be.-Leo

Guest Ramsberg
Posted

roger that, will reprogram right away and see what happens :-)Revision is 023802A,so that shouldn't be a problem.Found this in the data sheet for the 745, talking about different crystals/resonators:http://forums.avsim.net/user_files/44448.jpg(pic16c745/765 data sheet page 100)Can that be a compensation for a different resonator?Thought of a debug file at work today, cool that you beat me to mention it :-) If it could shift an input pin to output once in 10000 program loop, just to make it flash in a noticable fasion. Thats it the pin can take a resistor and a led from VDD in input mode. Only backdraw would be that the led would light up when the button was pressed?You problably already done this, but I need to have something to do while erasing the PIC ;-)Will try to reprogram with the other OSC, will try the resistor on OSC2 pinDont forget, this is fun!!! (Aaarggghh, frustrating too ;-)Cheers/Olle

Guest Ramsberg
Posted

tried reprogramming, resistor between res and osc2, different computers, dfferent ICs, different circuit setups, shifted d+ and d-... unknown USB device....nada....Checked the frequency over the resonator, and it stable at 6 Mhz, so the oscillator oscillates alright.... but don know if the IC is alive...Leo, do you have some debug hex that i can try?Thankfully/ Olle

Posted

Hehe...sorry to have put you through all this frustration, but welcome to my world.OK you pretty much tried everything I was going to tell you to try.Couple of things:The specs for the osc indicate "If connected with incorrect orientation, the above specification may not be guaranteed" So try turning it around but make sure pin 2 (middle pin) is grounded. It doesn't take much to trip up the SIE so this might actually help. It may read 6MHz but the jitter is what can trip up the USB SIE, which is sensitive to jitter variation.If that still doesn't work, then I'd say you're using Win98 on all the PCs you tried and you are having driver problems.If that is not the case, then congratulations, you are the lucky owner of a bad chip despite the post 0230 revision. According to your rev code, it was produced only 8 weeks after the so-called bug was fixed. Microchip lied about the innocuousness of the bug, so why wouldn

Guest Ramsberg
Posted

Hehe, you are living in a frustrating world! :-)I've tried the resonator in both directions. From what I could understand, the resonator manufacturer said so, because the specification measurements were done in that direction. It oscillates at 6 MHz in both directions. I cant see any jitter tho, because i have only a resolution of 0.5uS/cm (3 periods/cm) in my old oscilloscope, bought on auction for $3 :-)I have only tried the device on windows2000 computers.I've got 2 ICs from MC as samples... I only checked the revision on one of the ICs, but tried to use both with no success.Question: Can the problem still be the resonator? How does the computer discover the USB device? Just by some load on the port? Must the PIC work and communicate with the PC and say "Hey, Im a USB device!" for the PC to discover it?. If thats the case, then the oscillator should work, shouldn't it?Or is it that the oscillator works enough to drive the IC, but the quality is too poor to support a stable USB communication?Is it much work to write a code snipped that just power the chip, and flashes a led, connected to ground via a resistor on a pin? I have written a simple program that does that on the 16F84. Would that compile and run on this PIC?Cheers!/ Olle

Guest Ramsberg
Posted

Did some studying on the differences on the resonators we use... Your RES has a built in capacitance on 30pF, Mine has 15pF... Higher capacitance= better stability, lower jitter but longer startup time. If you use a 30pF RES, i should probably do so too. if you set the OSC startup timer so that works for me, it shouldn't be a broblem f

Posted

Only 15pF you say? I thought I saw 33pF, but I guess I read the wrong part."He wen't like:"..."I wen't like:"That's really funny Olle. Great "Valley Girl" talk. :-lol Wish I had your skill in dealing with distributors, but I must admit, I got allot more support from the dist than from the actual manufactures of the chips (i.e. Microchip, Cypress, etc.)My money is still on the chip being the culprit, but this will be interesting to see if it works.If it doesn't work, then email me your address and we will trade one MCU and resonator. I'll send you mine (preprogrammed) and you send me yours and we'll hopefully figure out what's going wrong (i.e. MCU, resonator, etc.)Cheers,-Leo

Posted

The USB jitter specification dictates 71 ns to 90 ns. If your chip has the bug, then there will be 12 ns or more jitter. That

Guest Ramsberg
Posted

Heh, best way to deal with distributors on "one-time demands": Lie a little, or withhold the truth a little :-) Tell them you are a big guy or a small guy whenever it suits you :-)To support me in the everlasting "begging" for favors from companies etc for my sim project, i have spoken to the Swedish Airforce Museum and told them about my project and they are "interested...".. Not meaning anything with that, no promises made i can do something like this:Hi there Mr "manufacturer-of-really-expensive-stuff-i-need-for-my-simulator-almost-for-free"!, Im working on a freetime project toghether with the _Airforce museum_ and blah-blah-blah. If I ..., could You pleas help me with ...."Cool! Sure I will! I have quite much work right now, but come back tomorrow and I'll help out out."Works every time! I've used it on metal workshops, engraving of panels etc... all it costs is some cookies for their coffebreak :-)Darn, I actually got to work some more today before i go home....Cheers!/ Olle

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...