Tool/software: Linux
Helllo all,
As i am new to beaglebone PRU section, i am trying to explore PRU's communication via i2c,spi,etc for reading ADC.
Can anybody help in SPI communication sample code in c.
Thanks in advance.
Regards,
deepa
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.
Tool/software: Linux
Helllo all,
As i am new to beaglebone PRU section, i am trying to explore PRU's communication via i2c,spi,etc for reading ADC.
Can anybody help in SPI communication sample code in c.
Thanks in advance.
Regards,
deepa
Hello Deepa,
If you want to use the PRU to implement a SPI protocol on the PRU pins, take a look at our TI Design Flexible Interface (PRU-ICSS) Reference Design for Simultaneous, Coherent DAQ Using Multiple ADCs. The software can be found on its git repo or in the Linux Processor SDK 5.1 or later under example-applications/pru-adc-xxx
If you want to use the PRU to control another module within the processor (e.g., ADC, the I2C module, the McSPI module), our template for controlling another module from the PRU is in the Linux Processor SDK 5.1 or later under example-applications/pru-icss-xxx/examples/am335x/PRU_ADC_onChip.
Regards,
Nick