??? 03/08/04 10:14 Read: times |
#66230 - RE: Counting events Responding to: ???'s previous message |
Keil Young wrote:
------------------------------- I wanted to know, is it possible that i can use a counter in Keil uvision2(assembler), to count how many times an event has repeated itself and exit once the number of counts you set it up to is reached and continue with the rest of the program because i'm not sure. Yes it is possible. I'm new at this, so bare with me. Note! At a certain point in my program I'v written I want a certain event to repeat itself at a predetemined number and count how many times it has repeated itself and then continue with the next line of code. It's called "polling" ie put your program in a loop waiting until a number of events have passed ("number" being at least one...) Just ask yourself: 1) what is the event? 2) how will my microcontroller now that it happened? 3) how can I count this 4) how can I test my counter regards Patrick |
Topic | Author | Date |
Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events![]() | 01/01/70 00:00 |