User manual

5. Embedded Debugger Implementation
ATtiny104 Xplained Nano contains a Mini Embedded Debugger (mEDBG) that can be used to program
the ATtiny104 using Tiny Program Interface (TPI). The mEDBG also include a Virtual Com port interface
over UART. Atmel Studio can be used as a front end for the Mini Embedded Debugger.
5.1. Tiny Program Interface
The Tiny Program Interface (TPI) uses two pins to communicate with the target. For further information on
how to use the programming capabilities of the mEDBG, see Mini Embedded Debugger.
Table 5-1. TPI Connections
ATtiny104 pin Function Shared functionality
PA0 TPI clock mEDBG
PA1 TPI data mEDBG
5.2. Virtual COM Port
The Embedded Debugger acts as a Virtual Com Port gateway by using one of the ATtiny104 UARTs. For
further information on how to use the Virtual COM port, see Mini Embedded Debugger.
Table 5-2. Virtual COM Port Connections
ATtiny104 pin Function Shared functionality
PB2 UART TXD (ATtiny104 TX line) mEDBG CDC RX
PB3 UART RXD (ATtiny104 RX line) mEDBG CDC TX
Atmel ATtiny104 Xplained Nano [USER GUIDE]
Atmel-42671A-ATtiny104-Xplained-Nano_User Guide-02/2016
11