| ??? 03/04/08 08:14 Read: times |
#151857 - Delay? Responding to: ???'s previous message |
Kesav Mahesh Kumar said:
void main(void) {
//rtc requires 200ms delay to turn on
Delay(200);andvoid Delay( unsigned char x ) {
unsigned char i,j;
for(i=0;i<x;i++)
for(j=0;j<1000;j++);
}How have you confirmed that Delay(200) does actually give a delay of 200ms? Note that you cannot create reliable, accurate delays by using high-level language loops - see: http://www.8052.com/forum/read.phtml?id=149030 |
| Topic | Author | Date |
| Real Time Clock and other | 01/01/70 00:00 | |
| How to post source code | 01/01/70 00:00 | |
| post- source code | 01/01/70 00:00 | |
| internal XRAM? | 01/01/70 00:00 | |
| its not logical but | 01/01/70 00:00 | |
| modified code using UIF | 01/01/70 00:00 | |
| re | 01/01/70 00:00 | |
| UIP | 01/01/70 00:00 | |
| Will get stuck | 01/01/70 00:00 | |
| If you used _at_ instead of XBYTE .... | 01/01/70 00:00 | |
| Comments | 01/01/70 00:00 | |
| reply to coments | 01/01/70 00:00 | |
| _at_ instead of XBYTE | 01/01/70 00:00 | |
| pin assignments | 01/01/70 00:00 | |
| You still haven't answered the questions! | 01/01/70 00:00 | |
| xdata i/o | 01/01/70 00:00 | |
| just do it | 01/01/70 00:00 | |
| Default | 01/01/70 00:00 | |
| sorry i can't reply due to my ill health | 01/01/70 00:00 | |
| address | 01/01/70 00:00 | |
| perfect!! | 01/01/70 00:00 | |
| try to understand | 01/01/70 00:00 | |
yes i finally got the point | 01/01/70 00:00 | |
| Aside: Not a macro | 01/01/70 00:00 | |
| Delay? | 01/01/70 00:00 | |
| agree | 01/01/70 00:00 | |
| Keil know | 01/01/70 00:00 |



