AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 91

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
#ifdef SCI_XONXOFF_CONTROL
#endif
MOTOROLA
// ready to receive
if(sciTxPriority == 1)
{
}
else
{
#ifdef SCI_TXE_CONTROL
#ifdef SCI_TXE_CONTROL_RX
#endif
#endif
#ifdef SCI_TXE_CONTROL
#ifdef SCI_TXE_CONTROL_RX
#endif
#endif
#ifdef SCI_TXE_CONTROL
sciTxPriority = 0;
SCDR = sciTxPriorityByte;
// any next char ?
if(txWP == txRP)
{
}
else
{
// no, disable SCTE interrupt
DisTxInt();
// yes, send another char
// turn on the line driver
SCI_TXE = SCI_TXE_ON;
// and turn off the receiver (avoid loopback)
SCI_RXE = SCI_TXE_OFF;
SCDR = txBuff[txRP++];
if(txRP == txSize)
// enable TC interrupt to detect end-of-transmission
txRP = 0;
// if this is TC interrupt...
if(_scs1 & 0x40)
{
}
// fetch the char
// turn off the line driver
SCI_TXE = SCI_TXE_OFF;
// and turn on the receiver
SCI_RXE = SCI_TXE_ON;
// no more TC interrupt needed
DisTcInt();
Wireless HC08 Modem
Source Code
AN2262/D
91

Related parts for AN2262