ADC output to UART format

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
f.elskamp@group57.nl
Offline
Last seen: 2 years 5 months ago
Joined: 2019-06-19 20:08
ADC output to UART format

How to transfer output (either serial or parallel) from ADC into UART format (no parity, 8 bits, 1 stop bit) at baudrate (example: 9600 baud)?

MSbit or LSbit leading doesn't matter.

Are there any examples?

Keywords: 
Device: 
Device Number: 
46620
olehs
Offline
Last seen: 1 year 7 months ago
Staff
Joined: 2018-02-07 11:40
f.elskamp@group57.nl, 

f.elskamp@group57.nl

Thank you for your question, ADC has the possibility to send serial data directly from its output see the attached file, but it order to convert these data you need to use external MCU, which receives the data and convert  it according to UART protocol. 

Best regards, 

Oleh Sapiha

Attachment: 
f.elskamp@group57.nl
Offline
Last seen: 2 years 5 months ago
Joined: 2019-06-19 20:08
Dear Oleh Sapiha, thats the

Dear Oleh Sapiha, thats the easiest solution if there is a CPU (isn't). I have seen examples where UART data being received by adding extra start bit and stop bit. Something like that should be possible for sending data, I think. Maybe transfer to parallel data (using the SPI parallel output block) and then shift bits out (adding the extra bits). Any idea or example? regards Fred

olehs
Offline
Last seen: 1 year 7 months ago
Staff
Joined: 2018-02-07 11:40
f.elskamp@group57.nl, 

f.elskamp@group57.nl

I came up with an idea just now, ADC data can be converted to parallel code using SPI block, then create parallel to serial converter using DFFs and LUTs (see link https://www.dialog-semiconductor.com/greenpak-cookbook/parallel-serial). After generate a START bit, then send the data through parallel to serial converter and then generate STOP bit. This approach can should work, but unfortunalety we don't have any examples on it. If you want to create these converter, I will support you during the process. 

Best regards, 

Oleh Sapiha