Gabi1
Newbie level 1
Timer0 and Interrupts
I have been trying to solve this problem in my tutorial class but duing to the lack of microcontroller knowledge, i haven't done. i need help for this
The external TMR0 clock input line of PIC16F88 is connected to a sensor a road surface that produces a pulse every time a vihicles passes.
The lower 4-bits of PORTA display the car count in units of 100 (i.e. PORTA increments each time 100 cars have been detected by TMR0). when PORTA reaches its maximum value no further incrementing occurs. The RB0 interrupt is used to clear the PORTA count back to zero.
Write a PIC program in C to perform this task
I have been trying to solve this problem in my tutorial class but duing to the lack of microcontroller knowledge, i haven't done. i need help for this
The external TMR0 clock input line of PIC16F88 is connected to a sensor a road surface that produces a pulse every time a vihicles passes.
The lower 4-bits of PORTA display the car count in units of 100 (i.e. PORTA increments each time 100 cars have been detected by TMR0). when PORTA reaches its maximum value no further incrementing occurs. The RB0 interrupt is used to clear the PORTA count back to zero.
Write a PIC program in C to perform this task