AnsweredAssumed Answered

Global Pin Control Low Register

Question asked by David XY Zhou on Apr 7, 2016
Latest reply on Apr 11, 2016 by David XY Zhou

Hi,

I have K60 120M Tower. PORTB is configured as Alternative 2 as

  /* PORTB_PCR10: ISF=0,MUX=2 */

  PORTB_PCR10 = (uint32_t)((PORTB_PCR10 & (uint32_t)~(uint32_t)(

                 PORT_PCR_ISF_MASK |

                 PORT_PCR_MUX(0x05)

                )) | (uint32_t)(

                 PORT_PCR_MUX(0x02)

                ));

 

I have problem with toggling the PIN using Global Pin Control Low Register:

    PORTB_GPCLR = 0x4000400;    //(1<<26) | (1<<10);
   _time_delay(1);
   PORTB_GPCLR = 0x4000000;    //(1<<26) | (0<<10);

 

The pin is not toggling. Why?

If Pin is configured as GPIO, I can toggle it using gpio register.

 

Thank you,

David Zhou

Outcomes