Documentation:EVK1100/Push buttons
From AVRFreaks Wiki
[edit] Description
The EVK1100 provides three push buttons to design Human to Machine Interface for software developments.
Back to the Hardware Reference Page
[edit] Pinout
The push buttons inputs are low level active. (ie : the PVR register value is 0 when the button is pressed, and 1 otherwise)
The pinout is as follow :
| Push Button | GPIO Name | Alternate function used |
|---|---|---|
| PB0 | PX 16 | - |
| PB1 | PX 19 | - |
| PB2 | PX 22 | - |
see below the hardware schematic :
Back to the Hardware Reference Page
[edit] Using Interrupts
In order to use a push button, two ways are available :
- Polling on the GPIO Port Value Register,
- Using GPIO interrupts to get state changes.
Using GPIO interrupt needs to:
- Register an interrupt handler for the input (depending on the compiler you are using),
- Set the GPIO control bit for the input,
- Set the GPIO glitch filter bit for the input,
- Configure the GPIO interrupt mask bit for the input to act either on rising edge, falling edge or input change,
- Set the GPIO interrupt enable bit for the input.
Back to the Hardware Reference Page


