📄 to1.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : TO1.H
** Project : LowFreqSG
** Processor : MC68HC908LV8CFA
** Beantype : TimerOut
** Version : Bean 02.147, Driver 01.27, CPU db: 2.89.060
** Compiler : CodeWarrior HC08 C Compiler
** Date/Time : 2006-9-6, 11:54
** Abstract :
** This bean implements a periodic signal generator 1:1 (Flip-Flop Output).
** The signal alternates the "0" and "1" output values in exactly
** regular intervals; that is why the time length of the "0" part
** of one pulse is equal to the "1" part of one pulse.
** Settings :
** Used output pin :
** ----------------------------------------------------
** Number (on package) | Name
** ----------------------------------------------------
** 38 | PTB4_T2CH0
** ----------------------------------------------------
**
** Timer name : TIM2 (16-bit)
** Compare name : TIM20
** Counter shared : No
** Output compare : buffered
**
** High speed mode
** Prescaler : divide-by-2
** Clock : 3997696 Hz
** Pulse width
** Xtal ticks : 328
** microseconds : 10000
** milliseconds : 10
** seconds (real) : 0.0100000
** Hz : 100
**
** Runtime setting : none
**
** Initialization:
** Output level : high
** Timer : Enabled
** Events : Enabled
**
** Timer registers
** Counter : T2CNT [$002C]
** Mode : T2SC [$002B]
** Run : T2SC [$002B]
** Prescaler : T2SC [$002B]
**
** Compare registers
** Compare : T2CH0 [$0031]
** Compare 2 : T2CH1 [$0034]
**
** Flip-flop registers
** Mode : T2SC0 [$0030]
** Contents :
** No public methods
**
** (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 __TO1
#define __TO1
/*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"
/* MODULE TO1. */
#include "Cpu.h"
void SetCV(word Val);
/*
** ===================================================================
** Method : SetPV (bean TimerOut)
**
** Description :
** The method sets prescaler of the device.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void SetPV(byte Val);
/* End of Internal methods declarations */
/*
** ===================================================================
** Method : SetCV (bean TimerOut)
**
** Description :
** The method computes and sets compare eventually modulo value
** for time measuring.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void TO1_Init(void);
/*
** ===================================================================
** Method : TO1_Init (bean TimerOut)
**
** 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 TO1. */
#endif /* ifndef __TO1 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.98 [03.80]
** for the Freescale HC08 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -