Added the FIFO interface to the read loop

Modified the read loop to receive the frames sent by the target
and write the first byte of each packet into a FIFO (used with
the Python script that graphs the content of the FIFO as part of
the counter demo)