Page 1
Fujitsu Microelectronics (Shanghai) Co., Ltd MCU-AN-500009-E-10 Application Note F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H/210H SERIES HOW TO USE DBG PIN APPLICATION NOTE...
To obtain up-to-date information and/or specifications, contact your Fujitsu sales representative or Fujitsu authorized dealer. 2. Fujitsu will not be liable for infringement of copyright, industrial property right, or other rights of a third party caused by the use of information or drawings described in this manual.
DBG pin operation V1.0 Chapter 1 Introduction 1 Introduction This application note describes how to use DBG pin. The DBG pin can be used as 1-line UART communication port in debug mode and can be used as P12/EC0 in free-run mode. MCU-AN-500009-E-10 –...
DBG pin operation V1.0 Chapter 2 Functions of DBG pin 2 Functions of DBG pin THE 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 If target MCU enter into debug mode, DBG pin performs as 1-line UART pin.
DBG pin operation V1.0 Chapter 3 How to Use DBG Pin 3 How to Use DBG Pin EXAMPLES FOR DBG PIN SETTING IN DIFFERENT MODE 3.1 Used as 1-line UART pin / P12 pin In Debug mode, DBG pin is used as 1-line UART pin automatically. Then DBG pin keeps high when UART is in idle status.
DBG pin operation V1.0 Chapter 4 Precautions in using DBG pin 4 Precautions in using DBG pin 1. The peripheral circuit connected to DBG pin shouldn’t influence the 1-line UART communication if using BGM Adapter to do debug. Please refer to figure 2-1 when design user board.
Chapter 5 Sample code 5 Sample code Start.asm //================================================================== // F2MC-8L Family SOFTUNE C Compiler sample startup routine, //ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU LIMITED 1986 // LICENSED MATERIAL - PROGRAM PROPERTY OF FUJITSU LIMITED //================================================================== //Sample code for initialization //----------------------------------------------------------------------- .PROGRAM start .TITLE...
Page 9
DBG pin operation V1.0 Chapter 5 Sample code //Begin of actual code section //======================================================== //The Mode Byte is defined at the beginning of the start.asm .SECTION RESVECT, CONST, LOCATE=H'FFFD .DATA.B .DATA.W __start ; code area .SECTION CODE, CODE, ALIGN=1 __start: ;...
Page 10
DBG pin operation V1.0 Chapter 5 Sample code vector.c /******************************vector.c*********************************/ THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR ELIGIBILITY FOR ANY PURPOSES. /********************************************************************/ VECTORS.C Interrupt level (priority) setting...
Page 11
DBG pin operation V1.0 Chapter 5 Sample code //=================================================================== //extern unsigned int delay_timer; __interrupt void DefaultIRQHandler (void); Vector definition // Use following statements to define vectors. // All resource related vectors are predefined. Remaining software interrupts can be added hereas well. #pragma intvect DefaultIRQHandler 0 //IRQ0: external interrupt ch4...