1 Attachment(s)
16f84a running interrupt PICBASIC code
Please see the attached code.
It has two parts, one to vary the content of a variable using a single button and second an interrupt run to output RB0 based on the variable content.
When it is simed on MPLAB, it is quite OK. But when it is run on the chip, it does not work.
(with WDT switched off)
However the two parts when compiled as separate files to check the code, they function well on the chip.
Please help me solve the prob
Thanks
16f84a running interrupt PICBASIC code
Quote:
Originally Posted by
Joe S.
You post your code in PDF format, and the only way anyone can test it is to retype it all over, no thanks.
Sorry that I had attached it in pdf
Now I have attached in text.
Please pardon me.
Reply - 16f84a running interrupt PICBASIC code 16f84a
Dear skimask,
Yes, the "blinky and the button" worked as required right on the PIC16f84.
Similarly the interrupt driven routine also worked well separately on the PIC
But when these two are put together on the PIC it odes not work.
Though the MPLAB simulates it well enough and comes thru'.
Divaker