📄 pwm_a.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : PWM_A.H
** Project : bldc_zc_8013
** Processor : 56F8013VFAE
** Beantype : Init_PWM
** Version : Bean 01.199, Driver 01.14, CPU db: 2.87.068
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 23.5.2005, 11:21
** Abstract :
** This "Init_PWM" Peripheral Inspector implements the
** Puls Width Modulator module (PWM), basic initialization
** and settings.
** Settings :
** PWM module : PWM_Timer
**
** Clock setting
** PWM prescaler : 1
** Counter modulo : 1600
** Dead time value : 32
** Reload frequency : 1
** PWM frequency : 20 kHz
** PWM period : 50 us
** PWM deadtime : 1 us
**
** Interrupts
** Reload interrupt : Enabled
** ISR name : IsrPWMReload
** Interrupt name : INT_PWM_Reload
** Priority : 1
**
** ISR name : IsrPWMFault
** Interrupt name : INT_PWM_Fault
** Priority : 1
**
** HW acceleration : Enabled
** Load mode : Write to value reg 0 also writes 1-5
** Swap PWM channels 0 & 1 : no
** Swap PWM channels 2 & 3 : no
** Swap PWM channels 4 & 5 : no
**
** Correction
** Method : Manual correction or no correction
** Internal current ctrl.0 : IS pin
** Internal current ctrl.1 : IS pin
** Internal current ctrl.2 : IS pin
**
** Channel settings
** Alignment : Edge-aligned mode
** Channels 0-1
** Mode of PWM : Independent
** Top output polarity : Positive
** Bottom output polar. : Positive
** Channels 2-3
** Mode of PWM channels : Independent
** Top output polarity : Positive
** Bottom output polar. : Positive
** Channels 4-5
** Mode of PWM channels : Independent
** Top output polarity : Positive
** Bottom output polar. : Positive
**
** Write protect : no
** Output pads : Disabled
** Half cycle reload : no
**
** Channel 0
** PWM Pin : GPIOA0_PWM0
** Enable software control : no
** Channel masked : no
**
** Channel 1
** PWM Pin : GPIOA1_PWM1
** Enable software control : no
** Channel masked : no
**
** Channel 2
** PWM Pin : GPIOA2_PWM2
** Enable software control : no
** Channel masked : no
**
** Channel 3
** PWM Pin : GPIOA3_PWM3
** Enable software control : no
** Channel masked : no
**
** Channel 4
** PWM Pin : GPIOA4_PWM4_FAULT1_T2
** Enable software control : no
** Channel masked : no
**
** Channel 5
** PWM Pin : GPIOA5_PWM5_FAULT2_T3
** Enable software control : no
** Channel masked : no
** Contents :
** Init - void PWM_A_Init(void);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2004
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __PWM_A
#define __PWM_A
/* MODULE PWM_A. */
#include "Cpu.ch"
/*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 inherited beans */
#include "Cpu.h"
extern void IsrPWMReload(void);
extern void IsrPWMFault(void);
void PWM_A_Init(void);
/*
** ===================================================================
** Method : PWM_A_Init (bean Init_PWM)
**
** Description :
** This method initializes registers of the PWM module
** according to this Peripheral Initialization Bean settings.
** Call this method in the user code to initialize the
** module. By default, the method is called by PE
** automatically; see "Call Init method" property of the
** bean for more details.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
/* END PWM_A. */
#endif /* ifndef __PWM_A */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.96 [03.65]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -