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

inportb and outportb

I have problems with the the two functions inportb and outportb. They don't function and I don't find them in any headerfile.
I want to program the serial interface 0 of the 80C537.
I have the evaluation software from Keil.

Can you help me?
Do I only need an extra headerfile?

Thanks

Parents
  • I presume you're used to PC/x86 compilers?

    The x86 has separate "Port" and "Memory" address spaces, so compiler writers came up with inportb, outportb, etc to allow access from 'C'.

    The 8051 architecture is different - you need to read the Manuals for the implementation-specific details.

    You should probably start with the uVision Getting Started guide, and work through the examples in it; these will show you how to access the 8051's ports, SFRs, etc

Reply
  • I presume you're used to PC/x86 compilers?

    The x86 has separate "Port" and "Memory" address spaces, so compiler writers came up with inportb, outportb, etc to allow access from 'C'.

    The 8051 architecture is different - you need to read the Manuals for the implementation-specific details.

    You should probably start with the uVision Getting Started guide, and work through the examples in it; these will show you how to access the 8051's ports, SFRs, etc

Children
No data