Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
UART/SPI on spresense
-
Sir,
How to interface UART transreceivers /SPI transreceivers to spresense ?
There are examples about Bluetooth devices, but in terms of transreceivers, how to setup the parameters like baud rate, frame, etc ?
Could you share some resources regarding the same.Thank you !
-
You can check the UART and SPI implementation on the Spresense Arduino. Arduino uses the Spresense SDK so you can see how to use it.
UART: https://github.com/sonydevworld/spresense-arduino-compatible/blob/master/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/cores/spresense/HardwareSerial.cpp
SPI: https://github.com/sonydevworld/spresense-arduino-compatible/blob/master/Arduino15/packages/SPRESENSE/hardware/spresense/1.0.0/libraries/SPI/SPI.cppYou can also check how other drivers are implemented using UART and SPI here: https://github.com/sonydevworld/spresense-nuttx/tree/64d9f015412d72da9dd85f478dd7039377391c3a/drivers
Best Regards,
Kamil Tomaszewski