文件名称:500023-E-10_Counter_and_timer
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 351kb
- 下载次数:
- 0次
- 提 供 者:
- Shi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
概要
本文档介绍了时基定时器,看门狗定时器、计时和多功能定时器的 API。-******************************************************************************
MB95200 Series I/O register declaration file V01L02
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU MICROELECTRONICS LIMITED 2008
LICENSED MATERIAL- PROGRAM PROPERTY OF FUJITSU MICROELECTRONICS LIMITED
******************************************************************************/
#include "..\MB95200_IO\mb95200.h"
#include "Composite_Timer.h"
unsigned int zz
/******************************************************************************
NAME: main()
FUNCTION: loop main
******************************************************************************/
void main(void)
{
long i=10000
CRTH &= 0x9f
CRTH |= 0x00
CRTH_CRSEL0 = 0
CRTH_CRSEL1 = 1
//CRTH_CRSEL = 2
//SYSC = 0x03
SYSC_EC0SL = 1
SYCC2 = 0x21
DDR0_P04 = 0
DDR6_P63 = 1
PDR6_P63 = 1
//DDR0_P04 = 0 /*P04 input*/
AIDRL |= 0x10 /* disable AN04 input*/
//PDR0_P05 = 1 /* enable main clock and main CR
本文档介绍了时基定时器,看门狗定时器、计时和多功能定时器的 API。-******************************************************************************
MB95200 Series I/O register declaration file V01L02
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU MICROELECTRONICS LIMITED 2008
LICENSED MATERIAL- PROGRAM PROPERTY OF FUJITSU MICROELECTRONICS LIMITED
******************************************************************************/
#include "..\MB95200_IO\mb95200.h"
#include "Composite_Timer.h"
unsigned int zz
/******************************************************************************
NAME: main()
FUNCTION: loop main
******************************************************************************/
void main(void)
{
long i=10000
CRTH &= 0x9f
CRTH |= 0x00
CRTH_CRSEL0 = 0
CRTH_CRSEL1 = 1
//CRTH_CRSEL = 2
//SYSC = 0x03
SYSC_EC0SL = 1
SYCC2 = 0x21
DDR0_P04 = 0
DDR6_P63 = 1
PDR6_P63 = 1
//DDR0_P04 = 0 /*P04 input*/
AIDRL |= 0x10 /* disable AN04 input*/
//PDR0_P05 = 1 /* enable main clock and main CR
(系统自动生成,下载前可以参看下载内容)
下载文件列表
500023-E-10 Counter and timer\500023-E-10_Counter and timer API.wsp
.............................\Watch_Prescaler\Watch_Prescaler.wsp
.............................\...............\......API\Watch_Prescaler.dat
.............................\...............\.........\Watch_Prescaler.prj
.............................\...............\.........\src\main.c
.............................\...............\.........\...\startup.asm
.............................\...............\.........\...\vectors.c
.............................\...............\.........\...\Watch_Prescaler.h
.............................\...............\.........\src
.............................\...............\.........\MB95200_IO\ioreg.txt
.............................\...............\.........\..........\ioregj.txt
.............................\...............\.........\..........\ioregj_a.txt
.............................\...............\.........\..........\ioreg_a.txt
.............................\...............\.........\..........\mb95200.h
.............................\...............\.........\..........\mb95200_a.inc
.............................\...............\.........\..........\_f2mc8fx.c
.............................\...............\.........\..........\_f2mc8fx.h
.............................\...............\.........\..........\_f2mc8fx_a.asm
.............................\...............\.........\MB95200_IO
.............................\...............\.........\Lib\Watch_Prescaler.lib
.............................\...............\.........\Lib
.............................\...............\.........\Debug\OPT\Watch_Prescaler.opa
.............................\...............\.........\.....\...\Watch_Prescaler.opb
.............................\...............\.........\.....\...\Watch_Prescaler.opc
.............................\...............\.........\.....\...\Watch_Prescaler.opl
.............................\...............\.........\.....\...\Watch_Prescaler.opv
.............................\...............\.........\.....\OPT
.............................\...............\.........\.....\.BJ\main.obj
.............................\...............\.........\.....\...\main.stk
.............................\...............\.........\.....\...\mb95200.obj
.............................\...............\.........\.....\...\startup.obj
.............................\...............\.........\.....\...\vectors.obj
.............................\...............\.........\.....\...\vectors.stk
.............................\...............\.........\.....\...\watch_prescaler_lib.obj
.............................\...............\.........\.....\...\_f2mc8fx_a.obj
.............................\...............\.........\.....\OBJ
.............................\...............\.........\.....\LST\Watch_Prescaler.mp1
.............................\...............\.........\.....\LST
.............................\...............\.........\.....\ABS\Watch_Prescaler.abs
.............................\...............\.........\.....\ABS
.............................\...............\.........\Debug
.............................\...............\Watch_API
.............................\Watch_Prescaler
.............................\.....dog_Timer\Watchdog_Timer.wsp
.............................\..............\.........API\Watchdog_Timer.dat
.............................\..............\............\Watchdog_Timer.prj
.............................\..............\............\src\Main.c
.............................\..............\............\...\startup.asm
.............................\..............\............\...\vectors.c
.............................\..............\............\...\Watchdog_Timer.H
.............................\..............\............\src
.............................\..............\............\MB95200_IO\ioreg.txt
.............................\..............\............\..........\ioregj.txt
.............................\..............\............\..........\ioregj_a.txt
.............................\..............\............\..........
.............................\Watch_Prescaler\Watch_Prescaler.wsp
.............................\...............\......API\Watch_Prescaler.dat
.............................\...............\.........\Watch_Prescaler.prj
.............................\...............\.........\src\main.c
.............................\...............\.........\...\startup.asm
.............................\...............\.........\...\vectors.c
.............................\...............\.........\...\Watch_Prescaler.h
.............................\...............\.........\src
.............................\...............\.........\MB95200_IO\ioreg.txt
.............................\...............\.........\..........\ioregj.txt
.............................\...............\.........\..........\ioregj_a.txt
.............................\...............\.........\..........\ioreg_a.txt
.............................\...............\.........\..........\mb95200.h
.............................\...............\.........\..........\mb95200_a.inc
.............................\...............\.........\..........\_f2mc8fx.c
.............................\...............\.........\..........\_f2mc8fx.h
.............................\...............\.........\..........\_f2mc8fx_a.asm
.............................\...............\.........\MB95200_IO
.............................\...............\.........\Lib\Watch_Prescaler.lib
.............................\...............\.........\Lib
.............................\...............\.........\Debug\OPT\Watch_Prescaler.opa
.............................\...............\.........\.....\...\Watch_Prescaler.opb
.............................\...............\.........\.....\...\Watch_Prescaler.opc
.............................\...............\.........\.....\...\Watch_Prescaler.opl
.............................\...............\.........\.....\...\Watch_Prescaler.opv
.............................\...............\.........\.....\OPT
.............................\...............\.........\.....\.BJ\main.obj
.............................\...............\.........\.....\...\main.stk
.............................\...............\.........\.....\...\mb95200.obj
.............................\...............\.........\.....\...\startup.obj
.............................\...............\.........\.....\...\vectors.obj
.............................\...............\.........\.....\...\vectors.stk
.............................\...............\.........\.....\...\watch_prescaler_lib.obj
.............................\...............\.........\.....\...\_f2mc8fx_a.obj
.............................\...............\.........\.....\OBJ
.............................\...............\.........\.....\LST\Watch_Prescaler.mp1
.............................\...............\.........\.....\LST
.............................\...............\.........\.....\ABS\Watch_Prescaler.abs
.............................\...............\.........\.....\ABS
.............................\...............\.........\Debug
.............................\...............\Watch_API
.............................\Watch_Prescaler
.............................\.....dog_Timer\Watchdog_Timer.wsp
.............................\..............\.........API\Watchdog_Timer.dat
.............................\..............\............\Watchdog_Timer.prj
.............................\..............\............\src\Main.c
.............................\..............\............\...\startup.asm
.............................\..............\............\...\vectors.c
.............................\..............\............\...\Watchdog_Timer.H
.............................\..............\............\src
.............................\..............\............\MB95200_IO\ioreg.txt
.............................\..............\............\..........\ioregj.txt
.............................\..............\............\..........\ioregj_a.txt
.............................\..............\............\..........