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

  1. it should initialize uart baud rate in computer operating.
  2. write uart receive function receives uart data , writes in buffer.
  3. compare received data data expected.
  4. if matches turn on corresponding pin of micro controller.

you can find related information here , here


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -