my_abousamra
Junior Member level 3
Hi there,
I'm working on an application that writes double blocks to sd card ,which is connected to spi-0 bus alone, every 50 ms and lasts for about 2ms and at the same time receiving interrupts from an external adc, which is connected to spi-1 bus alone, to read data every 2ms and lasts for 330us.
The sd card hangs up when it is interrupted by the adc although they are on different spi buses
why that occurs and how to prevent/overcome it?
Note that when I disable interrupts during writing to the sd card it works properly but I'll lost some data
I'm working on AT91SAM7X microcontroller based on arm7tdmi core.
Thanks,
I'm working on an application that writes double blocks to sd card ,which is connected to spi-0 bus alone, every 50 ms and lasts for about 2ms and at the same time receiving interrupts from an external adc, which is connected to spi-1 bus alone, to read data every 2ms and lasts for 330us.
The sd card hangs up when it is interrupted by the adc although they are on different spi buses
why that occurs and how to prevent/overcome it?
Note that when I disable interrupts during writing to the sd card it works properly but I'll lost some data
I'm working on AT91SAM7X microcontroller based on arm7tdmi core.
Thanks,
Last edited: