RL78/G13 - 16 bit data transfer over SPI

Hi,

I am using RL78/G13 microcontroller. I need to communicate with AFE031 (powerline data transfer chip) over SPI . In AFE031 registers have read and write operations are need to transfer 16 bit data. But our controller have a 8 bit data transfer at a time .

I was tried to split data in two no of 8 bit data to send in buffer. But I can't get the expect output from the registers. I received as 255 at all time. I can't get output. 

Is that problem occurred due to the 8 bit data transfer over SPI or that is not necessary?

Is it possible to transfer 16 bit data over SPI ?

Please help to find that problem.

Thanks,

Parents Reply Children
  • Hi

    It was work's .But the problem is not depended on 16 bit transfer SPI peripheral with communicate 8 bit transfer SPI MCU. Once I sent data as 2 no of 8 bit data can success the read registers via SPI. 

    But the matter is which one 8 bit we need to send first ( I was face success when I sent MSB side 8 bit data first after I sent LSB side 8 bit data ) and in our AFE031 Chip having a three supply input pins like below DVDD , AVDD , PA_supply. We are not expect even that necessary to give a power to PA_supply for read and write operations in registers. So Once I get success when I give a power to PA_supply pin.

    Now it work on both single transfer and continuous transfer mode also

    Thanks for your support.