AVR Half Duplex Software UART (9600 bps, 8N1)
/*********************************************
This program was produced using
CodeVision AVR V1.23.6b Standard
© Copyright 1998-2002 HP InfoTech s.r.l.
http://www.hpinfotech.ro
e-mail:office@hpinfotech.ro , hpinfotech@xnet.ro
Project : UART3: Half Duplex Software UART (9600 bps, 8N1)
Version : 1.3
Date : October 2002
Author : Radu Hristea (radu.hristea@aptrans-group.com; transeast@programmer.net)
Company : TransEast s.r.l.
Comments: Total size = 321 words (including the demo program)
The receive line is buffered (the user can modify the buffer size).
The receive routine detects and rejects the frame errors.
Chip type : ATmega128
Program type : Application
Clock frequency : 4.000000 MHz
Memory model : Small
Internal SRAM size : 4096
External SRAM size : 0
Data Stack size : 1024
*********************************************/
#include
#include "defs.h "
// UART3 Global Registers
byte u3_buffer ; // serial buffer
byte u3_bit_nbr; // bit counter
byte u3_status ; // status register
// UART3 Receiver buffer
byte rx_buffer3[RX_BUFFER_SIZE3];
byte rx_wr_index3, rx_rd_index3, rx_counter3;
// This flag is set on UART3 Receiver buffer overflow
bit rx_buffer_overflow3;



Recent Comments