Help to understand GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help to understand GPIO

538 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ivitro on Tue Oct 18 07:59:55 MST 2011
Hello guy I newer on LPCxpresso 1114, and I have some questions

I try change the example blink code,

what I does was,

configure 5 output in port2:

    GPIOSetDir(2, 4, 1);
    GPIOSetDir(2, 5, 1);
    GPIOSetDir(2, 6, 1);
    GPIOSetDir(2, 7, 1);
    GPIOSetDir(2, 8, 1);

but when I do example GPIOSetValue(2, 4, 1); or GPIOSetValue(2, 4, 0); noting happen pin4 continue in hight state but led continue blinky...


Second question is, how can I change clock?

it comes by default 48Mhz, but I want it run 2Mhz.

So, I grateful for help.

regards
0 Kudos
Reply
1 Reply

530 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Tue Oct 18 14:54:44 MST 2011
Hello,

I recommend you better read the data sheet, for example GPIO2_4 is on pin 19 (LQFP48 package).


Quote:
Second question is, how can I change clock?



Do a search on the forum, this topic has been discussed several times.

And if you have more questions back here.
0 Kudos
Reply