I am using Keil 2 to run a program (a servo driven robotic arm) for the 87C552, I downloaded an example for the PWM usage from Keil.com, in C which works grand, but the compiler does not recognise any PWM refernces in assemblly. Why is this ? Is there any way around it?
If you mean that the assembler doesn't recognise the SFR names associated with PWM then you haven't included the appropriate include file for the device.
Um, hello? Assembly does not use includes. Assembly is where the problem is. not the C!
"Um, hello? Assembly does not use includes. Assembly is where the problem is. not the C!" I wonder what that 'INCLUDE' control does, and what all those files with the extension .inc do then?
"Assembly does not use includes." Looks like that's where you're going wrong, then: you should be using some includes - specifically, the includes that tell the Assembler about the PWM registers!