??? 12/27/04 13:02 Read: times |
#83927 - Yes that's correct Responding to: ???'s previous message |
Russell that's correct that you can compute the time taken by the code to execute if this is Assembly. But in case of C its not possible that you calculate the time the code takes. One solution is that we can convert all coding in the function in Assembly using inline assembly.
i can not use auto reload as i need to generate 50ms delays (possibly more deplay) and for this purpose i have to set both resgiters of timers. in auto reload i have to use one register for intial value and other register for counting. one solution that i can think of is that i use the controller to figure out the time being spend in the C function. that is in the function i set the timer register to 0 and set it running. after the code has been executed in the function i stop the timer before exiting from function. and then i display the value in LCD. if i did this i will post the code here. Shahzad Aslam |
Topic | Author | Date |
Interrupt latency calculation | 01/01/70 00:00 | |
Constant = variable | 01/01/70 00:00 | |
Yes that's correct | 01/01/70 00:00 | |
16-bit auto-reload | 01/01/70 00:00 | |
Performance Analyzer | 01/01/70 00:00 | |
Accuracy, thats the question | 01/01/70 00:00 | |
accuracy | 01/01/70 00:00 | |
A bad order | 01/01/70 00:00 | |
another alternative | 01/01/70 00:00 | |
correction Timer2 not Timer1 | 01/01/70 00:00 | |
Timer2![]() | 01/01/70 00:00 |