We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
Actually, what I was really saying was that the fact that the examples are provided in assembler should not be an obstacle to you creating corresponding code in 'C' - you shouldn't need to build the examples just to be able to read & understand them.
Of course, building them may well be a useful exercise in itself, so:
"you're saying i should remove the REG51.H file"
No: I said that you can't have both the built-in definitions and the header file - you need to choose just one.
As Erik said, whether or not you choose to keep the header file depends largely on whether you think there's anything else in it that's worth having...