4.3.2 Mechanical Buttons

ATmega4809 Xplained Pro has two mechanical buttons. Both buttons are connected to I/O-pins on the ATmega4809 and can be used as general purpose buttons in the application. When a button is pressed, it will drive the I/O line to GND.

Button SW1 can also be used as a reset button if PF6 is configured as the RESET pin in the ATmega4809. PF6 is configured as a RESET pin by writing fuses. For more information, see the ATmega4809 data sheet.

Info: There is no pull-up resistor connected to the generic user button SW0. Remember to enable the internal pull-up in the ATmega4809 to use the button. There is an external pull-up resistor connected to SW1 connected to PF6.
Table 4-7. Mechanical Buttons
ATmega4809 PinSilkscreen TextShared Functionality
PB2SW0EXT2, DGI GPIO0
PF6SW1/RESETEXT2, DEBUG, EDBG