Pages: [1]   Go Down
Author Topic: Special Serial Port 250Kbaud at 128bit length  (Read 521 times)
0 Members and 1 Guest are viewing this topic.
Montreal
Offline Offline
Full Member
***
Karma: 0
Posts: 185
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
i got a specialize product that work in a serial fashion,
no start bit, 128 bit of data and no stop bit.
There is a trigger input and after that the device send me 128 bit in a stream at 240K baud exactly 4 microsecond per bit.

I cannot use the Asynchronous serial port because, it can probably only be program for 5 6 7 or 8 bit
any idea how i should do this?
Thanks for your help
Logged

Patgadget
Montreal

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 360
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Seeing as 128 bits is equivalent to 16 8-bit bytes, there's nothing stopping you from just reading the data with the UART.
Logged

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 129
Posts: 8593
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can't use a UART, it will strip start and stop bits.

I think you'll have to bit bang your own serial.

How to you know when the data stream starts? Is the first byte a known value or something?

EDIT: "There is a trigger input", just reread that.

The algorithm is simple enough but maintaining sync over 128 bits might need some work. You may have to resync on edges.

______
Rob
« Last Edit: December 02, 2011, 10:27:04 pm by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: