I am designing control circuit to my new ADC prototype.
Basically I wonder what would be the best way to send data from my ADC prototype to microcontroller?
Output data from my ADC prototype is from comparator which sets 0 or 1 at each clock. Designed prototype of new ADC converter is 10 bit. So what I want to achieve is to send 10 bits to uC.
I thought about using USART as ISP but I don`t know if it isn`t better to use simple port pins? (more reliable option?)
I want my converter to work in two cases:
1. single conversion (one 10 bit word is sent to uC)
2. continuous work (continous data send to uC and to PC )
I have chosen atmega1284P as it has 3 SPI (1SPI + 2 UARTS as SPI)
One SPI for programming uC and for extra 16 bit DAC converter programmed from uC).
Second SPI (UART) for output of my ADC prototype converter.
Third UART for sending data to PC...
So how would you do it?