Hello,
I'm working on communicating with a Pmod CAN controller connected to the CN5 (Pmod) port of the RX72N Envision Kit. I'm currently using the SCI/SCIF Clock Synchronous Mode to send and receive messages to the Pmod CAN controller. The MCP25625 integrated in the Pmod CAN controller requires the CS pin to be LOW before initiating a SPI communication, and then to return it to HIGH when the communication ends.
The thing is, the CS pin in the MCP25625 is mapped to the pin 52 in the RX72N Envision Kit, which is set to the SS2# (Slave Select 2) function in the Pin configuration section of Smart Configurator. This raises the following question:
The direction of pin 52 is fixed to Input, which is technically incorrect since the MCP25625 requires a variable LOW/HIGH signal on its CS pin, controlled by the RX72N's pin 52. Smart Configurator does not allow changing pin 52 to Input/Output mode nor it allows setting another pin for the task SS2#.
Hello aristi,
If I am not wrong, you try to use the feature below:
Τhe issue with it is that the if you add it, the SCI channel is configured as slave for SPI operation and it makes sense the SSL to be input.
But, if I have understood correctly, you want to use the RX72N as SPI master for transmission/reception.
The PMOD connectors use SCI2 and SCI7 respectively.
Firstly, remove these features and go to the Components to choose the SCI2 or SCI7 on SPI master mode:
Αfter that, if you go to the Pins Tab, you will see the configuration below for the SCI2 channel:
Υοu will see that the SSL pin has not been assigned, because SCI Synchronous Mode doesn't need it, but if the Pmod CAN controller requires it, you can add the SSL pin as GPIO output and handle it before and after the transmission/reception.
For example, SCI2 uses P54 as SSL pin, so you can initialize it as GPIO output:
Regards,
AL_Renesas
So after this port initialization, I can use a GPIO Firmware Integration Module (FIT) to control that pin? How would I proceed to do such thing?
Thank you.
My suggestion uses Code Generator drivers, while you have attached the GPIO FIT module that offers more abstract and dynamic capabilities.
Please, study carefully the application note that you attached on how to use the GPIO FIT module.
The configuration on the Smart Configurator includes only the setting below and nothing more:
Υου don't need my previous response, if you are going to use GPIO FIT module.