📄 ti1.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : TI1.H
** Project : PMSM
** Processor : 56F8013VFAE
** Beantype : TimerInt
** Version : Bean 02.119, Driver 01.24, CPU db: 2.87.089
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 2008-1-30, 下午 02:43
** 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 : TMR1 (16-bit)
** Compare name : TMR1_Compare
** Counter shared : No
**
** High speed mode
** Prescaler : divide-by-128
** Clock : 250000 Hz
** Initial period/frequency
** Xtal ticks : 800
** microseconds : 100
** seconds (real) : 0.0001000
** Hz : 10000
** kHz : 10
**
** Runtime setting : none
**
** Initialization:
** Timer : Disabled
** Events : Disabled
**
** Timer registers
** Counter : TMR1_CNTR [61461]
** Mode : TMR1_CTRL [61462]
** Run : TMR1_CTRL [61462]
** Prescaler : TMR1_CTRL [61462]
**
** Compare registers
** Compare : TMR1_CMP1 [61456]
**
** Flip-flop registers
** Mode : TMR1_SCR [61463]
** Contents :
** Enable - byte TI1_Enable(void);
** Disable - byte TI1_Disable(void);
** EnableEvent - byte TI1_EnableEvent(void);
** DisableEvent - byte TI1_DisableEvent(void);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2006
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __TI1
#define __TI1
/* MODULE TI1. */
/*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"
byte TI1_Enable(void);
/*
** ===================================================================
** Method : TI1_Enable (bean TimerInt)
**
** Description :
** Enables the bean - it starts the timer. Events may be
** generated ("DisableEvent"/"EnableEvent").
** Parameters : None
** Returns :
** --- - Error code, possible codes:
** ERR_OK - OK
** ERR_SPEED - This device does not work in
** the active speed mode
** ===================================================================
*/
byte TI1_Disable(void);
/*
** ===================================================================
** Method : TI1_Disable (bean TimerInt)
**
** Description :
** Disables the bean - it stops the timer. No events will be
** generated.
** Parameters : None
** Returns :
** --- - Error code, possible codes:
** ERR_OK - OK
** ERR_SPEED - This device does not work in
** the active speed mode
** ===================================================================
*/
byte TI1_EnableEvent(void);
/*
** ===================================================================
** Method : TI1_EnableEvent (bean TimerInt)
**
** Description :
** Enables the events.
** Parameters : None
** Returns :
** --- - Error code, possible codes:
** ERR_OK - OK
** ERR_SPEED - This device does not work in
** the active speed mode
** ===================================================================
*/
byte TI1_DisableEvent(void);
/*
** ===================================================================
** Method : TI1_DisableEvent (bean TimerInt)
**
** Description :
** Disables the events.
** Parameters : None
** Returns :
** --- - Error code, possible codes:
** ERR_OK - OK
** ERR_SPEED - This device does not work in
** the active speed mode
** ===================================================================
*/
void TI1_Init(void);
/*
** ===================================================================
** Method : TI1_Init (bean 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.
** ===================================================================
*/
void TI1_Interrupt(void);
/*
** ===================================================================
** Method : TI1_Interrupt (bean 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.
** ===================================================================
*/
/* END TI1. */
#endif /* ifndef __TI1 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.98 [03.79]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -