freescale
来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 107 行
TXT
107 行
/** ###################################################################
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : timer_125us.H
** Project : Buzzer_Ctrl
** Processor : MC9S08JM60CLHE
** Component : TimerInt
** Version : Component 02.157, Driver 01.18, CPU db: 3.00.046
** Compiler : CodeWarrior HCS08 C Compiler
** Date/Time : 2010-1-10, 20:30
** Abstract :
** This bean "TimerInt" implements a periodic interrupt.
** When the bean and its events are enabled, the "OnInterrupt"
** event is called periodically with the period that you specify.
** TimerInt supports also changing the period in runtime.
** The source of periodic interrupt can be timer compare or reload
** register or timer-overflow interrupt (of free running counter).
** Settings :
** Timer name : TPM1 (16-bit)
** Compare name : TPM10
** Counter shared : No
**
** High speed mode
** Prescaler : divide-by-1
** Clock : 48000000 Hz
** Initial period/frequency
** Xtal ticks : 1500
** microseconds : 125
** seconds (real) : 0.000125
** Hz : 8000
** kHz : 8
**
** Runtime setting : none
**
** Initialization:
** Timer : Enabled
** Events : Enabled
**
** Timer registers
** Counter : TPM1CNT [$0021]
** Mode : TPM1SC [$0020]
** Run : TPM1SC [$0020]
** Prescaler : TPM1SC [$0020]
**
** Compare registers
** Compare : TPM1C0V [$0026]
**
** Flip-flop registers
** Mode : TPM1C0SC [$0025]
** Contents :
** No public methods
**
** Copyright : 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved.
**
** http : www.freescale.com
** mail : support@freescale.com
** ###################################################################*/
#ifndef __timer_125us
#define __timer_125us
/* MODULE timer_125us. */
/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "Cpu.h"
__interrupt void timer_125us_Interrupt(void);
/*
** ===================================================================
** Method : timer_125us_Interrupt (component TimerInt)
**
** Description :
** The method services the interrupt of the selected peripheral(s)
** and eventually invokes the beans event(s).
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void timer_125us_Init(void);
/*
** ===================================================================
** Method : timer_125us_Init (component TimerInt)
**
** Description :
** Initializes the associated peripheral(s) and the beans
** internal variables. The method is called automatically as a
** part of the application initialization code.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* END timer_125us. */
#endif /* ifndef __timer_125us */
/*
** ###################################################################
**
** This file was created by Processor Expert 3.07 [04.34]
** for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?