drive1.c

来自「TI的digital motor control lib的源代码。了解TI的编程」· C语言 代码 · 共 34 行

C
34
字号
/* ==================================================================================
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.0                                                   */
/*----------------------------------------------------------------------------*/
/*                           T A B L E      1                                 */
/*----------------------------------------------------------------------------*/
/*     Function Name    |    Applicability                                    */
/*----------------------------------------------------------------------------*/
/*                      |      F240 | F241| F243 | LF2402 | LF2406 | LF2407   */
/*                      |           |     |      |        |        |          */
/* F24xx_drive_drv_init |           |     |  Y   |   Y    |   Y    |    Y     */
/*----------------------------------------------------------------------------*/
#include "..\include\regs240x.h"
#include "..\include\drive.h"
#include "..\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 + =
减小字号Ctrl + -
显示快捷键?