Serial data read with arduino due

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.

Did you try attachInterrupt() to detect this pattern (1110101110000111100001) ?

Yes.i use interrupt with a pin seperately.
But i dont know how to read this data.
How can i wait 2.4us or less and read the data code.

The issue with 2.4 us = 2400 ns is that 2400 / 11.9 is not an integer. At 84 MHz, the duration of a clock cycle is 11.9 ns.

BUT, at 80 MHz, the duration of a clock cycle is 12.5 ns, and 2400 / 12.5 = 192.

Providing you set the DUE clock at 80 MHz instead of the default 84 MHz, you will be able to initialize a timer to trigger an interrupt every 192 clock cycle to read the input pin with PIO_PDSR.

Compare the last 22 inputs to the pattern you are looking for and you are done.