iamdink
Newbie level 4
I'd like to use timer driven interrupts for some of my peripheral components. I need to update 4 DAC on an I2C bus and also 2 gain values for PGA on SPI bus. I need to receive 2 ADC updates on an SPI interface.
I figured I'd move I2C in one low time interrupt. No need to worry about devices writing to same bus as only one..
For SPI I have to make semaphore or mutex. This is if I choose to go down multithreaded implementation.
So my question. Is it more effective to implement independent SPI write/read operations in different interrupts. I mean is it faster than keeping them under one interrupt?
I figured I'd move I2C in one low time interrupt. No need to worry about devices writing to same bus as only one..
For SPI I have to make semaphore or mutex. This is if I choose to go down multithreaded implementation.
So my question. Is it more effective to implement independent SPI write/read operations in different interrupts. I mean is it faster than keeping them under one interrupt?