embedded - c code for receiving 8 bit data from hyperterminal to 89c51 -
i doing home automation project don’t know how enable particular pin i.e p1.0 enable when 8 bit data received description: consider, when send 10011101 hyper terminal p1.0 pin enabled when send 10111100 hyper terminal p1.1 pin enabled
please send me c code
first thing should understand is, need program 89c51 controller receive uart data. can following
- it should initialize uart baud rate in computer operating.
- write uart receive function receives uart data , writes in buffer.
- compare received data data expected.
- if matches turn on corresponding pin of micro controller.
Comments
Post a Comment