serial interface (USART / RS232 / RS485) functions are provided in the libraries

LIB/usart_lib.bas
LIB/usart_int_lib.bas


 
connections 16f628 --- MAX232 --- DB9 connections
USART_disable_TX_interrupt disable USART transmiter interrupt
USART_enable_TX_interrupt enable USART transmiter interrupt
USART_disable_RX_interrupt disable USART receiver interrupt
USART_enable_RX_interrupt enable USART receiver interrupt
USART_enable_TX enable USART transmiter hardware
USART_disable_TX disable USART transmiter hardware
USART_enable_RX enable USART receiver hardware
USART_disable_RX disable USART receiver hardware
USART_TX_shift_register_empty check if USART transmiter shift register is empty
USART_TX_empty check if USART transmit buffer is empty
USART_RX_full check if USART receive buffer is full
USART_init initalise USART hardware
USART_send_poll send byte via USART (simple polled version)
USART_read_poll read byte via USART (simple polled version)
USART_send_str_poll send string via USART (from RAM, simple polled version)
USART_send_str_poll_code send string via USART (from code memory, simple polled version)
interrupt driven
 
 
USART_send send byte via USART (interrupt driven version)
USART_read read byte via USART (interrupt driven version)
USART_send_str send string via USART (from RAM, interrupt driven version)
USART_send_str_code send string via USART (from code memory, interrupt driven version)
USART_service_RX service receiver (part of USART interrupt handler)
USART_service_TX service transmiter (part of USART interrupt handler)