3 Replies Latest reply on Sep 6, 2017 4:50 AM by user_1377889

    Minimum initialization for a GPIO output pin

    richard.klingler_2713181

      Evnin'...

       

      I am trying to do a simple GPIO initialization in assembler right after boot loader finishes...

       

      .equPRT1_DR,0x40040100
      .equPRT1_PC,0x40040108
      .equPRT1_PC2,0x40040118
      .equPRT1_MODE,0x00180000
      .equPRT1_MODE2,0x00000040

       

      @ Blue LED is connected to P1.6, active High

       

      Init:

        ldr r0, =PRT1_PC

        ldr r1, =PRT1_MODE

        str r1, [r0]

        ldr r0, =PRT1_PC2

        ldr r1, =PRT1_MODE2

        str r1, [r0]

        ldr r0, =PRT1_DR

        movs r1, #64

        str r1, [r0]

       

      But to no joy...blue LED is not lit on the CY8KIT-049-42xx board....