Many thanks for the suggestion.
I connected Pin 26 to the RX of the transceiver (sn65hvd230), so once the SOF rising is incoming it runs the ISR that do the i2s_adc_enable (see code below). In this way I can get a better syncronization (even if i loose some bit at beginning).
At least it seems ...
Search found 2 matches
- Tue Dec 22, 2020 5:45 pm
- Forum: Hardware
- Topic: I2S ADC triggered with CAN data frame message
- Replies: 2
- Views: 3140
- Fri Dec 18, 2020 3:34 pm
- Forum: Hardware
- Topic: I2S ADC triggered with CAN data frame message
- Replies: 2
- Views: 3140
I2S ADC triggered with CAN data frame message
Hi All,
I am using a fast sampling ADC toghether with I2S. The goal is sampling the CAN bus (CAN_L) once a new data frame is incoming in the queue.
To get kind of syncronization I just do the i2s_adc_enable if there is a message in CAN message incoming, like reported below:
if(xQueueReceive ...
I am using a fast sampling ADC toghether with I2S. The goal is sampling the CAN bus (CAN_L) once a new data frame is incoming in the queue.
To get kind of syncronization I just do the i2s_adc_enable if there is a message in CAN message incoming, like reported below:
if(xQueueReceive ...