I think I have a recent version of 8720 and I'm running it at 20 MHz. I really can't try running it slower because the PIC is already assembled with a 20 MHz osscilator. Any other suggestions?
I think I have a recent version of 8720 and I'm running it at 20 MHz. I really can't try running it slower because the PIC is already assembled with a 20 MHz osscilator. Any other suggestions?
I, too, found some real weirdness with early
8720s. They were the only chip big enough to
handle my task, so I couldn't switch to another
device or slow it down. I found myself doing all
sorts of work-arounds to get it to work.
The "late model" (July 2005 and later) 8720s and the
8722's are fine.
Something you might try -
Read PORTD with one instruction
Something like:
PORTDMirror = PortD
channel.bit0 = PORTDMirror.0
channel.bit1 = PORTDMirror.1
channel.bit2 = PORTDMirror.2
channel.bit3 = PORTDMirror.3
...
Charles Linquist
Markings are as follows:
PIC18F8720
-I/PT
05473PP
And I tried reading the whole port at once aswell. It didn't make any difference. Wow something so simple, I really wonder what the problem is now.
Yes, watchdog timer and low voltage programming disabled. And im running the PIC at 5 V.
What happen if you do a SEROUT loop and skip the PORT reading?
Which device programmer, PBP and MPASm version are you using?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks