hit counter script
Fujitsu MB95210H Series Application Note
Fujitsu MB95210H Series Application Note

Fujitsu MB95210H Series Application Note

8-bit microcontroller, how to use dbg pin
Hide thumbs Also See for MB95210H Series:

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading

Summary of Contents for Fujitsu MB95210H Series

  • 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...
  • Page 2: Revision History

    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.
  • Page 3: Table Of Contents

    DBG pin operation V1.0 Contents Contents REVISION HISTORY ......................2 CONTENTS .......................... 3 1 INTRODUCTION......................4 2 FUNCTIONS OF DBG PIN....................5 DBG pin hardware connection (debug mode)............5 Performance in debug mode ................... 5 Performance in free-run mode................. 5 3 HOW TO USE DBG PIN....................
  • Page 4: Introduction

    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 –...
  • Page 5: Functions Of Dbg Pin

    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.
  • Page 6: How To Use Dbg 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.
  • Page 7: Precautions In Using Dbg Pin

    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.
  • Page 8: Sample Code

    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...
  • Page 12 DBG pin operation V1.0 Chapter 5 Sample code //set DBG pin as EC0 pin void p12_as_ec0(void) SYSC = 0xE3; // set P12 as EC0 pin, disable HCLK1 T00CR0 = 0x71; // interval timer, external clock source. TMCR0 = 0x43; // 8bit mode, output timer00. T00DR = 0x08;...

This manual is also suitable for:

Mb95200h seriesF2mc-8fx series

Table of Contents