/* * Serial communication using FPGA. */ /*---------------------------------------------------------------------------*/ #pragma SMALL #include /*---------------------------------------------------------------------------*/ unsigned char xdata DATA_REG _at_ 0xff00; unsigned char xdata ACK_REG _at_ 0xff01; /*---------------------------------------------------------------------------*/ void main(void) { char message[] = "Message to be sent."; int i; while( 1 ) { for(i=0; i