This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial Communication

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.

Parents
  • 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

Reply
  • 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

Children