6 Miscellaneous I/O
6.1 Mechanical buttons
The board is equipped with three mechanical buttons. The buttons (SW0:2) are
shared with LED0, LED2, and LED3. Onboard protection circuitry is added to avoid a
short when driving the port high at the same time as pushing the button, which will
short it to the ground. To be able to use both button and LED, time multiplexing has to
be used.
To be able to detect a button press, the firmware has to periodically set the I/O pin to
input with pull-up and check if it is low. When doing this fast enough, the human eye
will not see any change in the LED.
6.2 LEDs
The Atmel MEGA-1284P Xplained has four standard yellow LEDs mounted onboard,
which are connected to the Atmel ATmega1284P . The four LEDs are active low.
LED0, LED2, and LED3 are shared with the three mechanical buttons (SW0:2). When
turning an LED on, set the I/O pin to output low. When turning an LED off, set the I/O
pin as input with pull-up. The protection circuitry added to the button will make the
LED shine brighter when the button is pressed and the LED is turned on. When the
LED is off, any button press will light up the LED.
The Atmel MEGA-1284P Xplained also has one dual LED mounted near the USB
connector. This is the power and status LED, which is connected to the board
controller. This LED will be green when power is applied, and will toggle between
green and orange when communication over USB is ongoing.
6.3 Analog I/O
An RC filter, a light sensor, and an NTC are connected to ADC5, ADC6, and ADC7,
respectively. These analog sources can be used as input to the ADC. All of the
analog signals can be disconnected by cutting the cut-straps on the bottom side of
the board.
The RC filter (first-order low-pass) has an approximate 3dB cut-off frequency of
159Hz. The input to the RC filter is GPIO5 (PD5) on the ATmega1284P , which can be
configured to output a PWM signal to the RC filter. This can be used to generate a
DC voltage on the output of the RC filter, which can be measured on the ADC5 pin.
As this is a first-order filter, the ripple on the DC voltage is inversely proportional to
the input frequency. A higher input frequency will result in lower ripple on the output.
6.4 Touch
The MEGA-1284P XPLAINED kit has one Atmel QTouch button, QTB0.
Table 6-1. MEGA-1284P Xplained touch connections.
Touch sensor onboard
10
AVR364
reference
QTB0
QTB0
QTouch method pin name
SNSK0
SNS0
ATmega1284P pin
PD7
PD6
8377B-AVR-11/11
相关PDF资料
ATNGW100 KIT AVR32 NETWORK GATEWAY
ATSAM3S-EK KIT EVAL FOR ATSAM3S4C
ATSAM3X-EK EVAL KIT FOR SAM3X & SAM3A
ATSTK500 PROGRAMMER AVR STARTER KIT
ATSTK526 KIT STARTER FOR AT90USB82/162
ATSTK600 DEV KIT FOR AVR/AVR32
ATXMEGAB1-XPLD KIT EVAL FOR ATXMEGAB1
AUIR2085S IC DVR HALF-BRDG SELF OSC 8SOIC
相关代理商/技术参数
ATMEGA1284RFR2-ZF 制造商:Atmel Corporation 功能描述:2.4GHZ 128K SOC 48PIN IND 125C TRAY - Trays 制造商:Atmel Corporation 功能描述:IC MCU 8BIT 128KB FLASH 48VQFN 制造商:Atmel Corporation 功能描述:2.4GHZ 128K SOC 48pin Ind 125C Tray
ATMEGA1284RFR2-ZFR 制造商:Atmel Corporation 功能描述:2.4GHZ 128K SOC 48 PIN IND125C T&R - Tape and Reel 制造商:Atmel Corporation 功能描述:IC MCU 8BIT 128KB FLASH 48VQFN 制造商:Atmel Corporation 功能描述:2.4GHZ 128K SOC 48 pin Ind125C T&R
ATMEGA1284RFR2-ZU 制造商:Atmel Corporation 功能描述:2.4GHZ 802.15.4 128K SOC 48PIN TRAY - Trays 制造商:Atmel Corporation 功能描述:IC MCU 8BIT 128KB FLASH 48VQFN 制造商:Atmel Corporation 功能描述:2.4GHZ 802.15.4 128K SOC 48pin Tray
ATMEGA1284RFR2-ZUR 制造商:Atmel Corporation 功能描述:2.4GHZ 802.15.4 128K SOC 48PIN T&R - Tape and Reel 制造商:Atmel Corporation 功能描述:IC MCU 8BIT 128KB FLASH 48VQFN 制造商:Atmel Corporation 功能描述:2.4GHZ 802.15.4 128K SOC 48pin T&R
ATMEGA1284RZAP-AU 功能描述:开发板和工具包 - 无线 ATmega 1280V-8AU AT86RF230-ZU RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:AT32UC3L 核心:AVR32 频率: 接口类型:USB 工作电源电压:5 V
ATMEGA1284RZAP-MU 功能描述:开发板和工具包 - 无线 ATmega 1284P-MU AT86RF230-ZUU RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:AT32UC3L 核心:AVR32 频率: 接口类型:USB 工作电源电压:5 V
ATMEGA128-8AC 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with 128K Bytes In-System Programmable Flash
ATMEGA128-8AI 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit Microcontroller with 128K Bytes In-System Programmable Flash