Hi to all.
I am porting some code from a PIC to a HCS12 micro. I want to use the
same lcd routines on the new micro. I seem to have it mostly figured out
but I,m not sure how to "map" the lcd structure onto the hcs12 port(Port AD I/O Register; address 0x00000270)
I'm fairly new to this sort of stuff and am a bit stuck.
Ive tried this , but it does not work. It compiles but the outputs don't work.
My lack of "C" knowledge is letting me down here I think :0(
Code:
struct lcd_pin_map
{
char unused :1;
char enable :1;
char rs :1; // access to the LCD pins.
char rw :1;
char data :4; // The bits are allocated from
};
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
Posted: Fri Apr 25, 2008 5:32 am
Depending on what C Compiler you use for that platform there are a number of possibilities. This a PIC forum not HCS12 and what works in CCS may or may not work for whatever compiler you are using for the HCS12. You need to ask in that forum to get the best information.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum