/**************************** get_buffers ************************* * * gathers 1 frame (defined by FRAMESIZE ) from porta using programmed io * provided a positive going clock is applied to portc lsb. * *************************************************************************/ get_buffers() { int word=0; while( word <= FRAMESIZE ) { if ( inp(portc) ) /* leading clock edge */ { while( inp(portc) ) /* lagging clock edge */ { ; } A_frame[ word ] = inpw(porta); word++; } } return(0); }