serial.inc


Author: Jonathan Weaver, jonw0224@netscape.net
Date: 3/30/2005
Version: 1.0
Filename: serial.inc
Description: The transmit and recieve code for the software (bitbang) serial port.

External Variable List


;external bitCount bitCount is used internally, but must be declared in the main program
;external rxReg rxReg is used internally, but must be declared in the main program


Procedure Heading List


UART_Rx
UART_Tx


Procedure Descriptions


UART_Rx
Description:
Recieves data on an port pin in an asyncronous serial format. Must define _UART_Rx to compile subroutine
Parameters:
rxReg a register to place recieved data
bitCount an internal counting register
Returns: status code in WREG


UART_Tx
Description:
Transmits data on an port pin in an asyncronous serial format. User must define _UART_Rx to compile subroutine
Parameters:
txReg a register containing data to be transmitted
bitCount an internal counting register
Returns: status code in WREG