![Microchip Technology AVR-IoT Wx Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/microchip-technology/avr-iot-wx/avr-iot-wx_hardware-users-manual_1785905019.webp)
Table 4-8. MCP9808
MCP9808 Pin
ATmega4808 Pin Function
Shared Functionality
SDA
PA2
TWI0 SDA
SCL
PA3
TWI0 SCL
Alert
PC2
ASYNC External Interrupt
—
4.4.6
Light Sensor
A TEMT6000X01 light sensor is mounted on the AVR-IoT Wx board for measuring the light intensity. The sensor is a
current source that will induce a voltage across the series resistor, which in turn can be measured by the
ATmega4808 ADC. The current is exponentially relative to illuminance, from about 10 µA@20lx to 50 µA@100lx. The
series resistor has a value of 10 kΩ.
Table 4-9. Light Sensor Connection
ATmega4808 Pin
Function
Shared Functionality
PD5
ADC AIN5
—
4.4.7
LED
There are four LEDs available on the AVR-IoT Wx board that can be controlled with PWM or GPIO. The LEDs can be
activated by driving the connected I/O line to GND.
Table 4-10. LED Connections
ATmega4808 Pin
Function
Description
PD0
TCA0 WO0
Red LED
PD1
TCA0 WO1
Yellow LED
PD2
TCA0 WO2
Green LED
PD3
TCA0 WO3
Blue LED
4.4.8
Mechanical Buttons
AVR-IoT Wx contains two mechanical buttons. These are generic user-configurable buttons. When a button is
pressed, it will drive the connected I/O line to ground (GND).
Info:
There are no pull-up resistors connected to the generic user buttons. Remember to enable the
internal pull-up in the ATmega4808 to use the buttons.
Table 4-11. Mechanical Button
ATmega4808 Pin
Description
Shared Functionality
PF6
User switch 0 (SW0)
PF5
User switch 1 (SW1)
AVR-IoT Wx Hardware User Guide
Hardware User Guide
©
2020 Microchip Technology Inc.
User Guide
DS50002805B-page 19