I need some help to create an interupt for every second.
Therfore i want to use an internal timer (TMR0 or TMR1).
The hardware consists: 16F628A microcontroller, external crystal 8MHz.
Used software: Oshonsoft PIC Simulator
Ho do I program the internal timer so that every second an interupt appears?
And how to calculate presets if anaother crystal wil be used?
Therfore i want to use an internal timer (TMR0 or TMR1).
The hardware consists: 16F628A microcontroller, external crystal 8MHz.
Used software: Oshonsoft PIC Simulator
Ho do I program the internal timer so that every second an interupt appears?
And how to calculate presets if anaother crystal wil be used?