button

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

button

615 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hubijo on Wed Jun 01 17:08:34 MST 2011
Hi all,

how can i read an on an Pin? the pin is configured as an input. but how can i check at this pin, when the button is pushed or not? with the interrupt is possible. after the interrupt, the i2c communication wouldnt run.
i will only check the input, if its logic high or low.
thanks for help
0 项奖励
回复
2 回复数

606 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hubijo on Thu Jun 02 11:30:53 MST 2011
Hei Rob,

thanks for the book tipp :-). i orderd one now.

greez, hubijo
0 项奖励
回复

606 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Thu Jun 02 00:41:03 MST 2011
Hubijo,

by reading this book (titled: 35 projects for beginners) ;)

You will not learn embedded programming from reading datasheets or a C-programming manual. Embedded systems have all kinds of little things to take care of that are different from normal C-programming for a simple command-line or windows application.
The book will teach you how to use the GPIO module, program interrupts, timers and much more.

Your problem (thanks to Larry for letting me borrow his psychic skills here :rolleyes:) has most likely to do with improper programming of the interrupt controller - something like disabling the I2C interrupt while programming the GPIO interrupt.

I also suggest to read section 8.4.1 of the lpc13xx User Manual - and while you are at it read some other sections as well ...
But if you are a beginner in the Embedded World (it surely looks like it reading your other questions) I can recommend the book (sehr empfehlenswert).

Regards, Tschüss,

Rob
0 项奖励
回复