📄 fc161.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : FC161.H
** Project : Capture
** Processor : MC9S12DG128BCPV
** Beantype : FreeCntr16
** Version : Bean 02.051, Driver 01.09, CPU db: 2.87.280
** Compiler : Metrowerks HC12 C Compiler
** Date/Time : 2008-3-5, 上午 09:25
** Abstract :
** This device "FreeCntr16" implements 16-bit Free Running Counter
** Settings :
** Timer name : ECT (16-bit)
** Compare name : TC0
** Counter shared : Yes
**
** High speed mode
** Prescaler : divide-by-32
** Clock : 250000 Hz
** Resolution of timer
** Xtal ticks : 1600
** microseconds : 100
** seconds (real) : 0.0001000
** Hz : 10000
** kHz : 10
**
** Initialization:
** Timer : Enabled
**
** Timer registers
** Counter : TCNT [68]
** Mode : TIOS [64]
** Run : TSCR1 [70]
** Prescaler : TSCR2 [77]
**
** Compare registers
** Compare : TC0 [80]
** Contents :
** Reset - byte FC161_Reset(void);
** GetTimeUS - byte FC161_GetTimeUS(word *Time);
** GetTimeMS - byte FC161_GetTimeMS(word *Time);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2005
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __FC161
#define __FC161
/* MODULE FC161. */
#include "Cpu.h"
#pragma CODE_SEG FC161_CODE
byte FC161_Reset(void);
/*
** ===================================================================
** Method : FC161_Reset (bean FreeCntr16)
**
** Description :
** Clears the counter.
** Parameters : None
** Returns :
** --- - Error Code
** ===================================================================
*/
byte FC161_GetTimeUS(word *Time);
/*
** ===================================================================
** Method : FC161_GetTimeUS (bean FreeCntr16)
**
** Description :
** Returns the time (as a 16-bit unsigned integer) in microseconds
** since the last resetting after the last reset.
** Parameters :
** NAME - DESCRIPTION
** * Time - A pointer to the returned 16-bit value
** in microseconds
** Returns :
** --- - Error code, possible codes:
** ERR_OK - OK
** ERR_SPEED - This device does not work in
** the active speed mode
** ERR_OVERFLOW - Software counter overflow
** ERR_MATH - Overflow during evaluation
** ===================================================================
*/
byte FC161_GetTimeMS(word *Time);
/*
** ===================================================================
** Method : FC161_GetTimeMS (bean FreeCntr16)
**
** Description :
** Returns the time (as a 16-bit unsigned integer) in milliseconds
** since the last resetting after the last reset.
** Parameters :
** NAME - DESCRIPTION
** * Time - A pointer to the returned 16-bit value
** in milliseconds
** Returns :
** --- - Error code, possible codes:
** ERR_OK - OK
** ERR_SPEED - This device does not work in
** the active speed mode
** ERR_OVERFLOW - Software counter overflow
** ERR_MATH - Overflow during evaluation
** ===================================================================
*/
void FC161_Init(void);
/*
** ===================================================================
** Method : FC161_Init (bean FreeCntr16)
**
** 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.
** ===================================================================
*/
#pragma CODE_SEG __NEAR_SEG NON_BANKED
__interrupt void FC161_Interrupt(void);
#pragma CODE_SEG FC161_CODE
/*
** ===================================================================
** Method : FC161_Interrupt (bean FreeCntr16)
**
** 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.
** ===================================================================
*/
#pragma CODE_SEG DEFAULT
/* END FC161. */
#endif /* ifndef __FC161 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.96 [03.76]
** for the Freescale HCS12 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -