LPCxpresso 1114 - read input problem.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPCxpresso 1114 - read input problem.

555件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mondo90 on Wed Jun 11 13:44:39 MST 2014
Hello guys,

As the subject says I have a problem with reading input, to be honest I really don't know and didn't find any usefull informaton about reading input in my lpcxpresso 1114.

So far I run (with sucess) freertos_main.c program which flashing the diode, now I want to make some more serious but I need to know how to get and read input signals.

All i have is:
SetGPIOOut(0, 7); // ToggleGPIOBit(0, 7);
SetGPIOOut(1, 9);//Red
SetGPIOBit(1, 9);
GPIOSetDir(1,10,0);
SetGPIOIn(1,10); //input ?


I know that "SetGPIOIn" set pin 1,10 to be input but have no idea how to read input value and dectec whether ther is or not volatge.

Also, how big voltage I can pass to input ?
Which function use to read input and how to do this ?
Can I use all pins for input or only selected ?
0 件の賞賛
返信
1 返信

540件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jun 12 00:08:20 MST 2014
I'm not sure what code base you are using, but - as detailed in the LPCXpresso User Manual - the recommended example code base is LPCOpen. The version for the LPCXpresso11C24 is the one to use with your LPCXpresso1114 board.

http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc11xx-packages-0

[The only difference between these parts is the CAN peripheral on the LPC11C24.]

Regards,

LPCXpresso Support.
0 件の賞賛
返信