I need to communicate between an RS232 and the UART of an 80C2051 microcontroller in order to program another 8051 chip. I have configured the correct settings for the UART set up, all I would really like to do is send a character from RS232 and view it in hyperterminal, writing the software in C language as opposed to Assembly. does any one know the correct way to do this? I have looked at many code examples and they dont really give much as to how this is done for example sending the character '$' and how it is recieved on UART, and how you can check this is correct using Hyperterminal.
there are two methods 1) if you are happy with the definitions for the old steam driven original '51 do not include a "SFR definition file" and the 'default' will be there. 2) if you want a specific set of SFR defs do like this
$NOMOD51 ;;// this removes the 'standard defs' $INCLUDE (cyf120.h)
Erik
Thanks a lot guys, you've been a great help :D