AnsweredAssumed Answered

Toggling pin help needed

Question asked by babazaroni on Jul 8, 2015
Latest reply on Aug 27, 2015 by Harshit.Gaharwar

Trying to toggle some pins on a 21489.   The docs seem clear but still can't get the pins to toggle.

 

What am I doing wrong?

 

Here is the code:

 

SRU(HIGH,PBEN06_I);

    SRU(HIGH,PBEN11_I);

    SRU(HIGH,PBEN12_I);

 

 

 

    for(;;)

    {

   int i;
   SRU(LOW,DAI_PB06_I);
   SRU(LOW,DAI_PB11_I);
   SRU(LOW,DAI_PB12_I);

 

   for (i=0;i<100;i++);

 

   SRU(HIGH,DAI_PB06_I);
   SRU(HIGH,DAI_PB11_I);
   SRU(HIGH,DAI_PB12_I);

    }

Outcomes