This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EALLOW and EDIS for GpioCtrlRegs

Other Parts Discussed in Thread: CONTROLSUITE

Hi Guys,

CCS v 6.1.3.0034 (compiler version = TI v15.12.1.LTS)

TMX320F28075 Control Card

control Suite v 3.4.0

Program : controlSUITE\device_support\F2807x\v200\F2807x_examples_Cpu1\epwm_trip_zone

Accordind to the Technical Reference Manual The GPAPUD is EALLOW protected.

Then in the following function from the above mentioned example program, why is there no EALLOW and EDIS for the GPAPUD ??

void InitTzGpio(void)
{
    //
    // For External Trigger, GPIO12 as the trigger for TripZone
    //
    GpioCtrlRegs.GPAPUD.bit.GPIO12 = 0;    // Enable pull-up on GPIO12 (TZ1)

    GpioCtrlRegs.GPAQSEL1.bit.GPIO12 = 3;  // Asynch input GPIO12 (TZ1)

    EALLOW;
    InputXbarRegs.INPUT1SELECT = 12;
    EDIS;

Also if I add EALLOW and EDIS then the trip zone interrupt doesn't work. Why so?

Thanks in advance.