Description: keil C51 non-blocking serial communication
This procedure applies to learning exchanges, read one byte (not back to the car) back to the car read into a string, send the string function test was successful.
This program can send and receive continuous string, the string output error does not occur the problem. And add a string comparison function (not case-sensitive),
Enter So2, automated response success, than to the success.
Therefore, this program uses interrupts, and sending and receiving non-blocking mode, the disadvantage is occupied by some memory, buffer size can be freely configured.
If you find BUG please send mail to: my email: bjzll520@foxmail.com
This procedure is adapted from BLOG: http://lovelytime.21ic.org program, amended its several BUG.
. Serial transceivers are online but not routine, block-style transceiver, taking too much CPU time, send and receive interrupt this program with the need to read the buffer when the data obtained
Free to modify t
To Search:
- [C51bus] - 51 Singlechip various interface bus pack
File list (Check if you may need any files):
43iprj\43i
......\43i.c
......\43i.h
......\43i.hex
......\43i.lnp
......\43i.LST
......\43i.M51
......\43i.OBJ
......\43i.Opt
......\43i.plg
......\43i.Uv2
......\43i_Opt.Bak
......\43i_Uv2.Bak
......\629788290\testc.c
......\629788290.rar
......\main.c
......\main.LST
......\main.OBJ
......\STARTUP.A51
......\STARTUP.LST
......\STARTUP.OBJ
......\string.txt
......\uart.c
......\uart.h
......\uart.LST
......\uart.OBJ
......\629788290
43iprj