PINSEL0_bit.P0_7 = 0x00;//set first functionality to port
IO0DIR_bit.P0_7 = 0x01; // set P0.7 port to output
IO0SET_bit.P0_7 = 0x01; // set P0.7 port to high//
the above code is not working
please sugest ant modification in above code to set a pin value in lpc2129 controller
This makes no sense outside the context of your original thread: http://www.keil.com/forum/docs/thread16563.asp
"please sugest ant modification in above code to set a pin value in lpc2129 controller"
These have already been given in your original thread!
ok thank u
1. Please do NOT create new thread, you should keep all the related discussions/infomation at the same place (thread).
2. Please provide some infomation about your Toolchain, where do you get that source code, etc.
i got the code from lpc2129 board seller's cd
i use realview mdk arm 3
That includes not asking new questions in the duplicate thread!
Check this link: " href= "http://ics.nxp.com/support/documents/microcontrollers/zip/code.bundle.lpc213x.lpc214x.realview.zip"> ics.nxp.com/.../code.bundle.lpc213x.lpc214x.realview.zip
"i got the code from lpc2129 board seller's cd
i use realview mdk arm 3"
That information needs to be added to your original thread.
Search for a directory named "GPIO" in the Sample Code Bundle, then study it!