No standard serial data read

Hi guys
I want to read serial pulses(serial code) that is not a standard serial.each pulse wide is 2.4us.i use arduino due for my project.what's the best way to read this code?
Example code:1110101110000111100001
The code has 22bit
Each bit wide is 2.4us
Thanks.

A bit width of 2.4µsecs is the equivalent of about 400,000 baud if my maths is correct. The regular SoftwareSerial library can only manage 38,400. Even though your data is not exactly the same format I doubt that a 16MHz Arduino would be fast enough to decipher the incoming bit stream.

The usual way to send high speed data is with an accompanying clock signal that tells the receiver when to sample the data stream - e.g. I2C and SPI

...R

Dear robin
I use arduino due with 84Mhz clock
I dont want make this code
I want to read serial code with this format.

bbd556:
I use arduino due with 84Mhz clock

Pity you did not tell us that in your Original Post

I dont want make this code

Then I reckon you have a problem - unless of course it is some established standard that you have omitted to tell us about

...R

I dont want make this code

Post on the Gigs and Collaborations forum section. You may be asked to pay for the help.