??? 09/09/10 12:19 Read: times |
#178491 - timer delay review Responding to: ???'s previous message |
is this delay program better
void delay_ms(unsigned char u) { unsigned char i; //if crystal frequency is 11.0592 MHz the delay dute to timer is about 70 ms for(i=0; i<u; i++) { TMOD = 0x01; TH0 = 0x00; TL0 = 0x00; TR0 = 1; while(!TF0); TF0 = TR0 =0; } } |
Topic | Author | Date |
Please assess the c code written by me | 01/01/70 00:00 | |
Lots of details to improve on | 01/01/70 00:00 | |
REALLY confusing | 01/01/70 00:00 | |
timer delay review | 01/01/70 00:00 | |
what about this timer program | 01/01/70 00:00 | |
Still a lot of work to do | 01/01/70 00:00 | |
I have implemented many of the suggestions | 01/01/70 00:00 | |
Still not thinking about your symbol names | 01/01/70 00:00 | |
variable name dilema | 01/01/70 00:00 |