user595: Arduino pins can be used as UART using the SoftwareSerial.h library. Is there any alternative for AVR?
I need more than one serial port on a ATmega328P, but i don't use Arduino. 
SoftwareSerial.h is tied to Arduino.h and Arduino pins. I do not use Arduino, i use avr-gcc with atmega328p and atmega8.

user368: AVR274 describes a single-wire, half-duplex software UART.
AVR304 describes a half-duplex, interrupt-driven software UART, and AVR305 describes a polled alternative.
AVR307 describes implementing a half-duplex UART using a USI.
All code associated with each app note can be downloaded from Atmel's website.

595: <p><code>Arduino</code> pins can be used as <code>UART</code> using the <code>SoftwareSerial.h</code> library. Is there any alternative for <code>AVR</code>?</p>

<p>I need more than one serial port on a <code>ATmega328P</code>, but i don't use <code>Arduino</code>. </p>

<p><code>SoftwareSerial.h</code> is tied to <code>Arduino.h</code> and <code>Arduino</code> pins. I do not use <code>Arduino</code>, i use <code>avr-gcc</code> with <code>atmega328p</code> and <code>atmega8</code>.</p>
 368: <p><a href="http://www.atmel.com/Images/AVR274.pdf" rel="nofollow">AVR274</a> describes a single-wire, half-duplex software UART.</p>

<p><a href="http://www.atmel.com/Images/doc0941.pdf" rel="nofollow">AVR304</a> describes a half-duplex, interrupt-driven software UART, and <a href="http://www.atmel.com/Images/doc0952.pdf" rel="nofollow">AVR305</a> describes a polled alternative.</p>

<p><a href="http://www.atmel.com/Images/doc4300.pdf" rel="nofollow">AVR307</a> describes implementing a half-duplex UART using a USI.</p>

<p>All code associated with each app note can be downloaded from Atmel's website.</p>
