??? 03/01/06 11:14 Read: times |
#110964 - Initial conditions Responding to: ???'s previous message |
This is really a problem of initial conditions. At power up there is no data in the UART transmitt buffer so you might expect TI should be one (to indicate it is empty) but reset sets it to zero. Strictly speaking, TI=1 indicates completion of sending a byte so at power up it is set to zero as no byte has yet been transmitted. As in all embedded systems you need to take into account what the hardware does when you write the software (whatever language you use).
Ian |
Topic | Author | Date |
putchar C51 serial communication problem | 01/01/70 00:00 | |
Keil putchar source | 01/01/70 00:00 | |
putchar() reworded | 01/01/70 00:00 | |
TI | 01/01/70 00:00 | |
thanks and here is my C code of asm... | 01/01/70 00:00 | |
should be obvious | 01/01/70 00:00 | |
To be fair | 01/01/70 00:00 | |
C gives higher performance! | 01/01/70 00:00 | |
Initial conditions | 01/01/70 00:00 | |
waiting better than uninten effcy | 01/01/70 00:00 | |
Better? | 01/01/70 00:00 | |
Math? | 01/01/70 00:00 | |
What????? | 01/01/70 00:00 | |
no work to do unitl bytes send | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
or... | 01/01/70 00:00 | |
That is better | 01/01/70 00:00 | |
i read about putchar() | 01/01/70 00:00 | |
Try \Keil\C51\LIB\getkey.c | 01/01/70 00:00 | |
Keil Library Source Files | 01/01/70 00:00 | |
ok | 01/01/70 00:00 | |
No and Yes | 01/01/70 00:00 | |
but what about AT cmd | 01/01/70 00:00 | |
No![]() | 01/01/70 00:00 |