I need your advice concerning design (serial SPI, USART)

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You want to send the data to another micro, but you don't describe that micro. Is it also 1284? If the other micro only has a UART, then you might want to just use a UART.