.: EMICROS :.  Embedded Micro Software
Home CAN232 CANUSB I2C232 I2CUSB CanWiser Learn C
Add your text here
Contact

Email : info@emicros.com

Ordering Information

.: Ordering using our PayPal powered shopping cart (PayPal account not required).

CAN232 : $79
CANUSB : $89
I2C232 : $79

I2CUSB : $89

Click here to View Cart and check out.

 

 

 

 
The CommPortClearErrors() function looks at the overrun error and framing error bits and clears the error if one or both have occurred.

Add this function to the serial.c file and also don't forget to add the function prototype in the serial.h file.

We just need one more function in order to complete the Hello World program.

 

 

/*
// function: CommPortClearErrors( void )
// description: This function clears the 
//                          overrun or framing errors.
/*
void CommPortClearErrors( void )
{
   if( OERR )
   {
      TXEN=0;
      TXEN=1;
      CREN=0;
      CREN=1;
   }
   if( FERR )
   {
      dummy=RCREG;
      TXEN=0;
      TXEN=1;
   }
}

 
 
Copyright 2010 Embedded Micro Software. All rights reserved