Hi there I wonder if there may be a bug re interrupts ? I am trying to design a rev counter using a PIC 16F628 and need to clock timer0 from the tock pin (ra4) I have selected this option from the interrupt properties ie transition on tocki and interrupt on timer0 overflow but despite there being nothing clocking the ra4 pin I am still geting a call to the interrupt service routine regularly as if timer0 were being clocked by an internal source
I would add this is purely on simulation as I have as yet not tried to program a real chip
regards
steve
interrupt
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: interrupt
Hello
The simulation of Timer0 will not work exactly as it would on the hardware. There should be no problems when running the code onboard a chip.
The simulation of Timer0 will not work exactly as it would on the hardware. There should be no problems when running the code onboard a chip.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel