3.1 Mini Embedded Debugger

The ATtiny104 Xplained Nano contains the Mini Embedded Debugger (mEDBG) for on-board programming. The mEDBG is a composite USB device of two interfaces: a debugger and a virtual COM port.

Together with Atmel Studio, the mEDBG debugger interface can program the ATtiny104. On ATtiny104 Xplained Nano, the TPI interface is connected between the mEDBG and the ATtiny104.

The virtual COM port is connected to a UART on the ATtiny104 and provides an easy way to communicate with the target application through the terminal software. It offers variable baud rate, parity, and Stop bit settings.
Note: The settings on the ATtiny104 must match the settings given in the terminal software.
Info: The virtual COM port in the mEDBG requires the terminal software to set the Data Terminal Ready (DTR) signal to enable the UART pins connected to the ATtiny104. If the DTR signal is not enabled the UART pins on the mEDBG are kept in high-z (tri-state), rendering the COM port unusable. The DTR signal is automatically set by some terminal software, but it may have to be manually enabled in the target terminal.

The mEDBG controls one status LED on the ATtiny104 Xplained Nano. The table below shows how the LED is controlled in different operation modes.

Table 3-1. mEDBG LED Control
Operation ModeStatus LED
Power-upLED is briefly lit
Normal operationLED is not lit
ProgrammingActivity indicator; the LED flashes when programming/debugging with the mEDBG