On Fri, 2015-01-02 at 03:06 +0000, Jan Zumwalt wrote: > How do you access the 8051 on chip ports? > ASM uses P0.0..P0.7, P1.0..P1.7 > > I need to access P1... > > I have tried > P1.7 = 1; //Does not seem to work
Hi, You will find the correct notation in the header file for your used microcontroller. And then it is just a matter of writing to or reading from that register. And as always : read the user manual for your microcontroller. roelof ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user