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