problem in programming ARM-7 LPC 2129 to interface with LCD

Status
Not open for further replies.

ARAVINDHANK

Newbie level 6
Joined
Jan 23, 2013
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,353
I need to know how to access P0.16 to P0.23.
I have tried it in the following manner as suggested in the data sheet, but they doesnt work.
"FIO0PIN2 =value;" or "IO0PIN=(IO0PIN && 0xFF00FFFF) || value;".
please anybody help me.....
 

HI..
the basic is if you want to set pins from 16 to 23 then
Code:
IOSET0=0x00ff0000;
and to clear only those pins
Code:
IOSET0=0xff00ffff;
that's it.... now if value=0x55; and you want to send it on pins 16 to 23 then
IOSET0=(value<<16);

check the attached files.. there is proteus simulation too insisde it..:wink:
Hope this helps..
Regards ANJ
 

Attachments

  • lcd.zip
    98 KB · Views: 85

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…