DBG pin operation V1.0
Chapter 2 Function of DBG pin
2 Function of DBG pin
This chapter explains functions of DBG pin in different modes.
2.1 DBG pin hardware connection (debug mode)
Figure 2-1 DBG Pin Hardware Connection in Debug Mode
2.2 Performance in debug mode
DBG pin is used as 1-line UART pin when target MCU enter into debug mode. To ensure
real time communication with BGM Adapter, other functions of DBG pin are disabled.
The function of P12 is disabled. Any operation for P12 in user code is not effective.
EC0 is also disabled. Another pin can be used as EC0 pin. "1" is written to SYSC [EC0SL] to
select P04/EC0 pin as external counter clock input. Do not set P04 pin as EC0 input and
HCLK1 input at the same time.
2.3 Performance in free-run mode
1-line UART function is disabled when target MCU enter into free-run mode. P12/EC0 can
be used in user code. But DBG pin can not be set as 1-line UART pin in user code.
MCU-AN-500009-E-10 – Page 5