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.

RM44L520: Using GIOB[2] functionality with 100-Pin PZ Package of RM44L520

Part Number: RM44L520
Other Parts Discussed in Thread: HALCOGEN

Hello,

I would like to detect rising edge of a digital input signal. I usually detect edges with through GIOA port functionnality. 

I use the RM44L520 in 100-Pin PZ Package version. Table 4-24 of the datasheet SPNS229C indicates that pin 38 can be used for GPIO[2], and Table 4-38 shows that setting to 1 the bit 18 of register PINMMR9 (Pin Multiplexing) would allow to connect pin38 to GPIO[2] function. However, the MCU refuses to set bit 18 to 1. Setting of bits (16,17 and 19) is possible be not the bit 18.

Does this MCU version is really able to use GPIO[2] ?

best regards,

JDM

  • Hi JDM,

    As mentioned in datasheet, the GIO output functionality is not supported on pin_55 and only GIO input functionality is available.

    If you are using HALCoGen then you can enable this input functionality by checking on the below configuration:

    Once you did this then you can see the GIOB2 input functionality is enabled on pin_55.

    --
    Thanks & regards,
    Jagadish.

  • Hello Jadadish,

    I thank you for your answer.

    I use the RM44L520 in the 100-pin PZ package and I try to use the pin 38 as GIOB[2] input.

    I try the your above HalCoGen setup but it does not solve. 

    The generated code seems correct, but when debbugging and running the following instruction step-by-step, bit 18 of PINMMR9 cannot be set to 1 with this target device : 

      pinMuxReg->PINMMR9 = ((~(pinMuxReg->PINMMR9 >> 18U) & 0x00000001U ) << 18U) | PINMUX_PIN_37_HET1_31 | PINMUX_PIN_38_GIOB_2;

    I would like to detect falling edge on pin 38 using the GIO peripheral, in particular by polling the GIOFLG register do detect falling edge on GIOB[2] pin setup as an input.

    Does pin 38 is connected to GIO port B peripheral on RM44L520 in the 100-pin PZ package ?

    Best regards,

    JDM

  • Hi JDM,

    On my RM46 board also i could not set the PINMMR9[18], give me some more time to debug further and update you.

    Does pin 38 is connected to GIO port B peripheral on RM44L520 in the 100-pin PZ package ?

    You are right, if you are using 100-pin package then pin 38 will be GIOB[2]

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    Finally, I choose to use the N2HET2_PIN_nDIS functionality instead of GIOB[2] on the pin 38 of the PZ version. From my point of view, GIOB[2] is not available on the  PZ version of RM44L520.

    Best regards,

    JDM

  • Finally, I choose to use the N2HET2_PIN_nDIS functionality instead of GIOB[2] on the pin 38 of the PZ version. From my point of view, GIOB[2] is not available on the  PZ version of RM44L520.

    understood.