文件名称:DBG_test-500009
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 106kb
- 下载次数:
- 0次
- 提 供 者:
- Shi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本应用介绍了DBG引脚的使用方法。调试模式下,DBG引脚可用作单线UART通信端口;自由运行模式下,DBG引脚可用作P12/EC0。-/******************************************************************************
F2MC-8FX Family SOFTUNE C Compiler sample startup routine,
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU LIMITED 2008
LICENSED MATERIAL- PROGRAM PROPERTY OF FUJITSU LIMITED
******************************************************************************/
/******************************************************************************
Name: MAIN.C
Function: By setting start-bit and Check with the conversion flag bit
******************************************************************************/
#include "MB95200.h"
//=====================================================================
//following code created for DBG pin usage test
#define DEBUGMODE
//set DBG pin as P12 output
void gpio_setting(void)
{
DDR1_P12 = 1 /* set P12 as output pin*/
PDR1_P12 = 0 /* pull P12 to low.*/
}
//set DBG pin as EC0 pin
void p12_as_ec0(void)
{
SYSC = 0xE3 // set P12 as EC0 pi
F2MC-8FX Family SOFTUNE C Compiler sample startup routine,
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU LIMITED 2008
LICENSED MATERIAL- PROGRAM PROPERTY OF FUJITSU LIMITED
******************************************************************************/
/******************************************************************************
Name: MAIN.C
Function: By setting start-bit and Check with the conversion flag bit
******************************************************************************/
#include "MB95200.h"
//=====================================================================
//following code created for DBG pin usage test
#define DEBUGMODE
//set DBG pin as P12 output
void gpio_setting(void)
{
DDR1_P12 = 1 /* set P12 as output pin*/
PDR1_P12 = 0 /* pull P12 to low.*/
}
//set DBG pin as EC0 pin
void p12_as_ec0(void)
{
SYSC = 0xE3 // set P12 as EC0 pi
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DBG_test-500009
...............\DBGtest.dat
...............\DBGtest.prj
...............\DBGtest.wsp
...............\Debug
...............\.....\ABS
...............\.....\...\AD_BASIC.abs
...............\.....\...\DBGtest.abs
...............\.....\DBGtest.sup
...............\.....\LST
...............\.....\...\AD_BASIC.mp1
...............\.....\...\DBGtest.mp1
...............\.....\OBJ
...............\.....\...\Main.obj
...............\.....\...\Main.stk
...............\.....\...\mb95200.obj
...............\.....\...\startup.obj
...............\.....\...\vectors.obj
...............\.....\...\vectors.stk
...............\.....\...\_f2mc8fx.obj
...............\.....\...\_f2mc8fx.stk
...............\.....\...\_f2mc8fx_a.obj
...............\.....\OPT
...............\.....\...\AD_BASIC.opa
...............\.....\...\AD_BASIC.opb
...............\.....\...\AD_BASIC.opc
...............\.....\...\AD_BASIC.opl
...............\.....\...\AD_BASIC.opv
...............\.....\...\DBGtest.opa
...............\.....\...\DBGtest.opb
...............\.....\...\DBGtest.opc
...............\.....\...\DBGtest.opl
...............\.....\...\DBGtest.opv
...............\scr
...............\...\ioreg.txt
...............\...\ioregj.txt
...............\...\ioregj_a.txt
...............\...\ioreg_a.txt
...............\...\Main.c
...............\...\mb95200.asm
...............\...\MB95200.h
...............\...\mb95200_a.inc
...............\...\readme.txt
...............\...\startup.asm
...............\...\vectors.c
...............\...\_f2mc8fx.c
...............\...\_f2mc8fx.h
...............\...\_f2mc8fx_a.asm
...............\DBGtest.dat
...............\DBGtest.prj
...............\DBGtest.wsp
...............\Debug
...............\.....\ABS
...............\.....\...\AD_BASIC.abs
...............\.....\...\DBGtest.abs
...............\.....\DBGtest.sup
...............\.....\LST
...............\.....\...\AD_BASIC.mp1
...............\.....\...\DBGtest.mp1
...............\.....\OBJ
...............\.....\...\Main.obj
...............\.....\...\Main.stk
...............\.....\...\mb95200.obj
...............\.....\...\startup.obj
...............\.....\...\vectors.obj
...............\.....\...\vectors.stk
...............\.....\...\_f2mc8fx.obj
...............\.....\...\_f2mc8fx.stk
...............\.....\...\_f2mc8fx_a.obj
...............\.....\OPT
...............\.....\...\AD_BASIC.opa
...............\.....\...\AD_BASIC.opb
...............\.....\...\AD_BASIC.opc
...............\.....\...\AD_BASIC.opl
...............\.....\...\AD_BASIC.opv
...............\.....\...\DBGtest.opa
...............\.....\...\DBGtest.opb
...............\.....\...\DBGtest.opc
...............\.....\...\DBGtest.opl
...............\.....\...\DBGtest.opv
...............\scr
...............\...\ioreg.txt
...............\...\ioregj.txt
...............\...\ioregj_a.txt
...............\...\ioreg_a.txt
...............\...\Main.c
...............\...\mb95200.asm
...............\...\MB95200.h
...............\...\mb95200_a.inc
...............\...\readme.txt
...............\...\startup.asm
...............\...\vectors.c
...............\...\_f2mc8fx.c
...............\...\_f2mc8fx.h
...............\...\_f2mc8fx_a.asm