junkie_
Junior Member level 2
Hello all,
I need slight help in understanding the following code, it is written in Hitech C, from what I understand is that LCD data (D4_D7) is defined at PORT A (RA0_RA3), but what I don't understand at which pin R/S and E are defined and if I want to change it to PORT B with different pin assignment how to do it?
I need slight help in understanding the following code, it is written in Hitech C, from what I understand is that LCD data (D4_D7) is defined at PORT A (RA0_RA3), but what I don't understand at which pin R/S and E are defined and if I want to change it to PORT B with different pin assignment how to do it?
Code:
struct lcd_pin_map {
unsigned DATA:4;
unsigned RS:1;
unsigned E :1;
};
struct lcd_pin_map LCD @ 0x05;