I was wondering if I can ask anyone for some help. I seem to get stuck and don't know
where to start with regards to actually typing the actual syntax that needed for my program to work.
In class, we are using PIC16F877. And its about using timer 0. Would you be able to give me a head start on what to do?
I need to run a program showing the binary count on the LED's of how long the button is pressed (PORTB, bit 0). When the button is released and later pressed again, the count picks up from where it left off. When the count reaches 255, the next count should roll over to 0. My outputs would be PORTC. I need to be able to configure TIMER 0 to be able to determine when 10ms have passed. Should I use the 1:256 prescalar for this?
The second part is to change the counter so that the count should be displayed until the button is pressed again, but the count should start from 0 each time. The count should also stop at 255 and display 255 for as long as the button is pressed after this time.
I desperately need some help on these problems.
where to start with regards to actually typing the actual syntax that needed for my program to work.
In class, we are using PIC16F877. And its about using timer 0. Would you be able to give me a head start on what to do?
I need to run a program showing the binary count on the LED's of how long the button is pressed (PORTB, bit 0). When the button is released and later pressed again, the count picks up from where it left off. When the count reaches 255, the next count should roll over to 0. My outputs would be PORTC. I need to be able to configure TIMER 0 to be able to determine when 10ms have passed. Should I use the 1:256 prescalar for this?
The second part is to change the counter so that the count should be displayed until the button is pressed again, but the count should start from 0 each time. The count should also stop at 255 and display 255 for as long as the button is pressed after this time.
I desperately need some help on these problems.