Hello everyone ,
I was just having a Renesas TargetBoard RX65N and I decided that I wanted to learn the basic task of the microcontroller in the first place, basic tasks, managing ports SPI and so on, with this microcontroller. The periphery I would like to explore is the RSPI2 periphery module. The development system I work with is e2Studio and Smart Configurator are configured with peripherals as : general-purpose ports, input and output, SCI1 module as UART in Rx/Tx mode. They work too. However, RSPI2 peripherals do not work. In the Smart configurator I set RSPI2 Master Rx/Tx to send and receive the three "wired modes", and I treat the Chip Select terminal as output from GPIO at the right time before SPI communication, and then reset it to high level at the end of the day. In the relevant settings of RSPI2, I set that the buffer pair for sending and receiving is 8 bits wide, and the focus of the data to be sent is 8 bits as well. The slave unit is an Ethernet module of WizNet5500 , W5500 and the communication frame is as follows: selected register address upper part of byte ,designated register address byte lower part ,control byte , and data byte itself. The task with the RSI peripheral is to send a single byte of data through the RSPI according to this communication framework and read it back from the Slave unit. The module is well connected to targetBoard RX65N. What should be set in the Smart Configurator to make communication work? In advance I struggle very nicely for help !
I'm looking for a specific, very simple sample source code, so I'm interested in practice source code, so which applies to RSPI peripherals: sending / receiving data. Of course, the theory of this periphery is also very important, not least ., It is a very simple question that could be built on in the sense that the task could be further developed. . Because a sample project would be the tipping point ,so that I can die for my task. Everyoneneek In advance very much Thank you again for your help !
Sincerely, L e n g y e l Joseph , Hungary ,Central Europe
joseph-L said:I was just having a Renesas TargetBoard RX65N and I decided that I wanted to learn the basic task of the microcontroller in the first place, basic tasks, managing ports SPI and so on, with this microcontroller. The periphery I would like to explore is the RSPI2 periphery module. The development system I work with is e2Studio and Smart Configurator are configured with peripherals as : general-purpose ports, input and output, SCI1 module as UART in Rx/Tx mode. They work too. However, RSPI2 peripherals do not work. In the Smart configurator I set RSPI2 Master Rx/Tx to send and receive the three "wired modes", and I treat the Chip Select terminal as output from GPIO at the right time before SPI communication, and then reset it to high level at the end of the day. In the relevant settings of RSPI2, I set that the buffer pair for sending and receiving is 8 bits wide, and the focus of the data to be sent is 8 bits as well. The slave unit is an Ethernet module of WizNet5500 , W5500 and the communication frame is as follows: selected register address upper part of byte ,designated register address byte lower part ,control byte , and data byte itself. The task with the RSI peripheral is to send a single byte of data through the RSPI according to this communication framework and read it back from the Slave unit. The module is well connected to targetBoard RX65N. What should be set in the Smart Configurator to make communication work? In advance I struggle very nicely for help ! I'm looking for a specific, very simple sample source code, so I'm interested in practice source code, so which applies to RSPI peripherals: sending / receiving data. Of course, the theory of this periphery is also very important, not least ., It is a very simple question that could be built on in the sense that the task could be further developed. . Because a sample project would be the tipping point ,so that I can die for my task. Everyoneneek In advance very much Thank you again for your help !
To get RSPI2 working on your RX65N with a W5500, verify Smart Configurator settings (master mode, 3-wire, clock, data format,TellTheBell) manually control the CS pin, and use the provided sample code, ensuring you replace placeholder pin definitions and match W5500's SPI requirements from its datasheet.