Ive got a data pulse which is 20Khz. time period of 50 us. Im using digital read to read this data then I want to process it. But the arduino doesnt print the 0s and 1s on the serial at that speed . The maximum I can get is a time period of 0.5ms. How can i increase this ?