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

    Minimum initialization for a GPIO output pin




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




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



        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....