I want to move data on LCD pin which connected on pin number 12,13 and 15 portB

Status
Not open for further replies.

kushal nandanwar

Full Member level 3
Joined
Jun 9, 2013
Messages
177
Helped
6
Reputation
12
Reaction score
6
Trophy points
18
Activity points
1,258
I want to move data on LCD pin which connected on pin number 12,13 and 15 portB, Will give logic will work portB have pin 0 to 7 and then 12 to 15 pin. I am using p24fj64gc010 controller

Code:
void dis_data (unsigned char dataout)
{
unsigned int dataout1;
dataout1 = (dataout << 4 ) & 0xF00;
data(dataout1);
delay_ms(10);
dataout1 = (dataout << 8 ) & 0xF00; 
data(dataout1);
delay_ms(10);
}
 

The attached code is useless in regard to the issue, there isn't any reference to any pin/port there.
Moreover the question itself is unclear at all, you did not specify the map from/to for the pins to change.
 

If you are expecting some help, take a time to elaborate the question.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…