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
};
struct lcd_pin_map lcd;
#define lcd_pin_map lcd @ (*((volatile unsigned char *)(REG_BASE + 0x00000270)))
I basically want to connect the lcd(16*2) to port AD.
If anyone has any other nice lcd routines I'm happy to try them out.
Any help appreciated.
Cheers
Rob
/*** PTAD - Port AD I/O Register; 0x00000270 ***/typedef union { byte Byte; struct { byte PTAD0 :1; /* Port AD Bit 0 */ byte PTAD1 :1; /* Port AD Bit 1 */ byte PTAD2 :1; /* Port AD Bit 2 */ byte PTAD3 :1; /* Port AD Bit 3 */ byte PTAD4 :1; /* Port AD Bit 4 */ byte PTAD5 :1; /* Port AD Bit 5 */ byte PTAD6 :1; /* Port AD Bit 6 */ byte PTAD7 :1; /* Port AD Bit 7 */ } Bits;} PTADSTR;extern volatile PTADSTR _PTAD @(REG_BASE + 0x00000270);