⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pwm_phs.h.keep

📁 freescale最新的16位单片机
💻 KEEP
字号:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : PWM0.H
**     Project   : S12X_PWM_Init_for_TFT_Project
**     Processor : MC9S12DP512BCPV
**     Beantype  : PWM
**     Version   : Bean 02.065, Driver 01.04, CPU db: 2.87.247
**     Compiler  : Metrowerks HC12 C Compiler
**     Date/Time : 27/04/2005, 16:26
**     Abstract  :
**         This bean implements a pulse-width modulation generator
**         that generates signal with variable duty and fixed cycle. 
**     Settings  :
**         Used output pin             : 
**             ----------------------------------------------------
**                Number (on package)  |    Name
**             ----------------------------------------------------
**                       4             |  PP0_MISO1_PWM0_KWP0
**             ----------------------------------------------------
**
**         Timer name                  : PWM0 [8-bit] 
**         Counter                     : PWMCNT0   [172]
**         Mode register               : PWMCTL    [165]
**         Run register                : PWME      [160]
**         Prescaler                   : PWMPRCLK  [163]
**         Compare 1 register          : PWMPER0   [180]
**         Compare 2 register          : PWMDTY0   [188]
**         Flip-flop 1 register        : PWMPOL    [161]
**
**         User handling procedure     : not specified
**
**         Output pin
**
**         Port name                   : P
**         Bit number (in port)        : 0
**         Bit mask of the port        : 1
**         Port data register          : PTP       [600]
**         Port control register       : DDRP      [602]
**
**         Runtime setting period      : none
**         Runtime setting ratio       : calculated
**         Initialization:
**              Aligned                : Left
**              Output level           : high
**              Timer                  : Enabled
**              Event                  : Enabled
**         High-speed CPU mode
**             Prescaler               : divide-by-1
**             Clock                   : 12500000 Hz
**           Initial value of            period        pulse width (ratio 50%)
**             Xtal ticks              : 4             2
**             seconds (real)          : 0.0000002     0.0000001
**
**     Contents  :
**         SetRatio16 - byte PWM0_SetRatio16(word Ratio);
**         SetDutyUS  - byte PWM0_SetDutyUS(word Time);
**         SetDutyMS  - byte PWM0_SetDutyMS(word Time);
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2002
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

#ifndef __PWM
#define __PWM

/* MODULE PWM. */

#include "9S12XDP512.h"     /* derivative information */
#pragma DATA_SEG PWM23_DATA             /* Data section for this module. */

//unsigned char Bus_Freq = 40 ; // 40MHz
//unsigned char Prescaler = 1 ;

//unsigned char TdataLigne = 176;
//unsigned char Th = 192;  
//unsigned char Freq_Prescaler_PWM ;
//unsigned char Freq ;

void PWM_Init(void);
void PWM0_Init(void);
void PWM23_Init(void);



/* END PWM0. */

#endif /* ifndef __PWM0 */
/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 03.33 for 
**     the Motorola HCS12 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

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