I guess that was assumed. When I do get the device to "boot" everything works as it should.
I guess that was assumed. When I do get the device to "boot" everything works as it should.
IF power is already on.
When you take MCLR low, does it reset and restart everytime?
If the power supply rises very slowly when turned on, the PIC may not RESET.
The minmum is 0.05 V/ms, so it must reach 4V in 80ms or less.
Really BIG caps can slow it down. But if it worked on the 876 it should still work on the 877
---------------
Since you moved the oscillator, did the CAPs get in the right place too. Crystals won't always start up if 1 cap is missing, but still may sometimes.
---------------
Grasping at straws.
_
DT
So I stripped my code back to just a blinking LED, which worked consistantly. That got me thinking...
Previously my indication that the device was functioning was based on a serial data status LED. I would consider the chip "booted" after serial data was recieved by the pic and the LED went on. On the 16F876A Rx for the UART is on PortB, on the 16F877A its on PortC. After looking at TRISC I noticed that TRISC.7 in my code was not set. I set it and things seems to be "working" now.
Long story short, check your TRIS settings. I must have check that a dozen times in the last 2 days. I guess I've been staring at this code too longThanks for the help!
Bookmarks