lpc2148 Doubt regarding button configuration

Status
Not open for further replies.

marthoma

Junior Member level 3
Joined
Oct 15, 2014
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
171
hey hiii.....in my project i have few external buttons which is used to trigger the message sending part,torch lights and few other things....so to which should i connect these buttons to cause interrupts when pressed?

should it be connected to extint0 pin or to eintx??
 

in my project i have few external buttons which is used to trigger the message sending part,torch lights and few other things....so to which should i connect these buttons to cause interrupts when pressed?

If they are inputs,you can connect them to analog/digital Input/Output(whatever they may be) to the I/O ports directly and run an interrupt service routine for each one of them,checking every device to see whether it is sending an interrupt or not.If the devices are more than the ports available,you can multiplex the sensors.Here is how :
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…