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.

Pin Multiplexing on RMRM44L920APGET

Other Parts Discussed in Thread: HALCOGEN

Hi.

I am trying to do pin multiplexing for RM44L920APGET µC.

When I watch how to configure GIO functionality for pin 12, I go to the section "4.3.1 Output Multiplexing" and I don't see pin 12 configuration.

But if I go to the section "4.2.1.7 Controller Area Network Controllers (DCAN)", I see "Signal name: CAN3RX on pin 12 used as CAN3 receive, or as GIO".

What does it mean? Any multiplexing function for this pin? How to configure this pin as GIO?

Thanks in advance.

Fabien.

  • Hi,

     The pin12 is a dedicated pin for CAN3RX. You can use CAN3RX as a functional pin or as a GIO. If you use HalCoGen you can configure the CAN3RX as a GIO like below.

      In the below example, I have configured CAN3RX as a GIO output pin. 

    Please also refer to the DCAN TIOC and RIOC registers on how to configure the TX and RX pins as GIO pins.

  • Thank you for your answer.

    After code generation with Hal Code generator, I see in the file.dil that two fields have been changed:

    - DRIVER.CAN.VAR.CAN_3_PORT_RX_FUN.VALUE=0 that corresponding to bit 3 of  register "RIOC" (structure canBASE_t from reg_can.h)

    - DRIVER.CAN.VAR.CAN_3_PIN_MODE.VALUE=0 that corresponding to ????

  • I did a diff between the two DIL by just selecting the RX in GIO mode and both the CAN_3_PORT_RX_FUN.VALUE and CAN_3_PIN_MODE.VALUE are changed. I think CAN_3_PIN_MODE.VALUE may have the effect on the Init bit of the DCAN CTL register. But I think what you should care is the final generated code. By selecting the pin GIO mode you can use it as a GIO pin and you can read/write to the pin.
  • Thank you. I am trying this configuration in my project.

    Regards.
    Fab.