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

📄 drive1.c

📁 TI 的DSP2407A的无速度传感器永磁同步电机FOC控制程序
💻 C
字号:
/* ==================================================================================
File name:       DRIVE1.C
                    
Originator:	Digital Control Systems Group
			Texas Instruments
Description:                                   
This file contains source for the implementing the gate enable and
disable of PWM signals on DMC1500 inverter.         
Applicability of these functions is indicated in the Table 1

=====================================================================================
History:
-------------------------------------------------------------------------------------
 04-09-2001 Release	Rev 1.00                                                   */
/*----------------------------------------------------------------------------*/
/*                           T A B L E      1                                 */
/*----------------------------------------------------------------------------*/
/*     Function Name    |    Applicability                                    */
/*----------------------------------------------------------------------------*/
/*                      |      F240 | F241| F243 | LF2402 | LF2406 | LF2407   */
/*                      |           |     |      |        |        |          */
/* F24xx_drive_drv_init |           |     |  Y   |   Y    |   Y    |    Y     */
/*----------------------------------------------------------------------------*/
#include <regs240x.h>
#include <drive.h>
#include <override.h>

void F24xx_drive_drv_init(DRIVE *p)
{
        MCRA=MCRA&0x0AFFF;          /* Set up the IOPB4&6 pins to primary functions */
        PBDATDIR=PBDATDIR|0x05050;  /* Set up IOPB4&6 as output pins and set them to high */
                                    /* Output pin of "1" is to disable drive */  
}                                    
                                    

⌨️ 快捷键说明

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