I want to ask if it's possible to unload main routine form communications task and let them run in background.
For example I'm using on ARM MCU this peripherals:
When adc_start(ADC); is called, ADC start conversion in background so I don't need to wait untill ADC has finished conversion and I can go to the next istruction and later read the ADC result.
I want to ask if it's possible to do the same with communication periphericals. I2C and SPI can be fast, but since my MCU can reach 120Mhz of speed, it's a waste of MCU speed if I need to wait untill I2C have finished to trasmit at 400kHz or SPI at 20Mhz or worst with UART. Also, if I perform some tasks and I don't want to interrupt them, I need to be able to unload MCU from any interrupts form peripherals and let them recive packets, buffer them and when I need to read them.
For now I've used functions as "twi_master_write" that "will NOT return until all data has been written", I've looked and didn't found any functions to perform what I'm looking for.
Something like this is possible?
Discussion around product based on ARM Cortex M4 core.
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests