Inscrit le: 17 Avr 2018
Moyenne de points: 1,00
|Posté le: Mar 5 Juin - 12:01 (2018) Sujet du message: Odd pathology PIC16F877
I'm implementing a fairly straightforward up/down counter using a PIC16F877A with PCM 3.185. The counter works as a counter, that isn't the problem. The trouble occurs because I'm using the RB6 and RB7 lines as counter inputs (the only lines physically available at the board edge connector). I've bodged it using RB4 and RB5 and the problem seems to go away using these inputs.The trouble? The PIC frequently crashes when one of the count lines is brought low (pullups are enabled, lines idle high), and the watchdog only resets it occasionally. I'm thinking that this behaviour may have something to do with the LVP/ICSP mode and I'm causing the PIC to enter a programming state - am I right?
I didn't find the right solution from the Internet.
Data Analysis Solution Example