05-09-2012 01:30 PM - edited 05-09-2012 01:31 PM
How do I set the port to output mode only? This is for an at89lp
I tried doing
;Sets outport port 3 to push pull output
mov P3M0,#00h
mov P3M1,#01h
but P3M0 and P3M1 is not defined.
05-10-2012 06:26 AM
There should be an include file that would define the ports for the device you are trying to use. You add the include at the top of your source code so it will translate the port names (easier to read) to register numbers. If you can't find it, you will need to find the regsiter number and define P3M0 and P3M1 yourself. I use only PICs but I would think the same thing applies.