timer.h

来自「基于NEC单片的机的程序源码,关于PWM输出的程序.」· C头文件 代码 · 共 43 行

H
43
字号
/*
*******************************************************************************
**
**  This device driver was created by Applilet for the 78K0S/KB1+, 78K0S/KA1+,
**  78K0S/KY1+,78K0S/KU1+ 8-Bit Single-Chip Microcontrollers
**
**  Copyright(C) NEC Electronics Corporation 2002-2006
**  All rights reserved by NEC Electronics Corporation.
**
**  This program should be used on your own responsibility.
**  NEC Electronics Corporation  assumes no responsibility for any losses
**  incurred by customers or third parties arising from the use of this file.
**
**  Filename :	timer.h
**  Abstract :	This file implements device driver for the timer module.
**  APIlib:	NEC78K0SKX1+.lib V1.70 [7 Dec. 2006]
**
**  Device :	uPD78F9234
**
**  Compiler :	NEC/CC78K0
**
*****************************************************************************
*/

#ifndef _MDTIMER_
#define _MDTIMER_
#define	TM_TMH1_CLOCK	0x1
#define	TM_TMH1_INTERVALVALUE	0xc7
#define	TM_TMH1_SQUAREWIDTH	0xc7
#define	TM_TMH1_PWMCYCLE	0xc7
#define	TM_TMH1_PWMDELAY	0x00


/* timer00, 80, H1 configurator initiation */
void TMH1_Init( void );

/* timer start */
void TMH1_Start( void );

/* timer stop */
void TMH1_Stop( void );
#endif		/* _MDTIMER_*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?