AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 69

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
#elif SCI_CLOCK_HZ==32000000
#define SCI_SCBR_38400
#define SCI_SCBR_19200
#define SCI_SCBR_9600
#define SCI_SCBR_4800
#define SCI_SCBR_2400
#define SCI_SCBR_1200
#else
#error “SCI: baudrate not defined”
#endif /* SCI_CLOCK_HZ==xxx */
#else
#error “SCI: SCI_CLOCK_HZ not defined”
#endif /* #ifdef SCI_CLOCK_HZ */
////////////////////////////////////////////////////
// global variables
#pragma DATA_SEG SHORT MY_ZEROPAGE
extern BYTE sciRxLen;
#ifdef SCI_XONXOFF_CONTROL
extern BYTE sciTxPriorityByte;
#endif
#pragma DATA_SEG DEFAULT
/////////////////////////////////////////////////////
// shared functions
#ifdef SCI_FIXED_BUFFS
// no parameters if we use fixed buffers
void SCI_InitTx(void);
void SCI_InitRx(void);
#else
// parameters required if we use runtime-defined buffers
void SCI_InitTx(BYTE* buff, BYTE size);
void SCI_InitRx(BYTE* buff, BYTE size);
#endif
MOTOROLA
/* SCI_CLOCK_HZ==xxx */
/* #ifdef SCI_CLOCK_HZ */
0x30
0x31
0x32
0x33
0x34
0x35
// SCI clock 32000000
// 38462
// 19230
// 9615
// 4807
// 2403
// 1201
/* SCI transmitter: XONXOFF control priority byte */
Wireless HC08 Modem
Source Code
AN2262/D
69

Related parts for AN2262