We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i am working with lpc2129 to control dc motor
i have a problem to set a port pin value to 1 and then to 0
PINSEL0_bit.P0_7 = 0x00;
i use the above code but it post an error saying that PINSEL0_bit is not defined
please help me to program using mdk arm
this is the first time i am asking thread
that why
i donot know how to stop it
come to our point
to set port pin P0_22 to 1 or 0
i am using lpc2129 controller and realviewarm software
please help me
OK, to bring it all together, here is the information that you need:
First, you need to be competent with the 'C' programming language. If you don't already know 'C', it may well be easier to start by learning it on a PC.
There are books about programming here: http://www.keil.com/books/
Next, you need to study the Documentation for your particular chip; that is, its Datasheet and/or User Manual and other supporting documentation (application notes, tutorials, examples, etc) from the manufacturer.
You also need to study the Documentation for your board, and tools.
You cannot program the chip before you understand how it works, and how the tools work!
You might also want to look at the Hitex "Insider's Guidde": www.hitex.com/index.php
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
Search for a directory named "GPIO" in the Sample Code Bundle, then study it!
But note that samples serve to illustrate things - you will need a basic foundation before you can understand the illustrations!