Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: ATTiny26: Using USI as UART // Issue

2004-12-04 by David D. Rea

Thanks for the suggestions - I'm not yet comfortable with inline
assembly under C, so I doubt bit-banging is going to be feasible.

But I neglected to mention that this application doesn't need serial
functionality in production, only in development - so I'll probably dust
off one of my 90S4433 chips and use that for development, then do a
quick port over to the Tiny26 when I'm ready to burn down to the
production board...

Thanks again,
Dave

On Sat, 2004-12-04 at 15:21, alan_probandt wrote:
> I considered using the USI of the Tiny26 as a UART but abandoned the 
> idea as too complex.  It would be better to use simple 'bit-banging' 
> code for a 'softUART' that is already written.  
>   Atmel's ap note on using the USI as a UART mentioned loading the 
> start bit only into the USI serial register and transmitting it.  
> Then the eight bit data followed by the stop bit.  Three seperate 
> interrupt modes for the USI.  Then, they mentioned in passing at the 
> end, you need to first invert the order of the bits in the byte 
> because the USI transmits the most-significant bit first while a UART 
> sends the least significant bit first.
>   If you need both a UART and a SPI/I2C, then either a Tiny2313 or a 
> Mega48 might be a better alterative model than the Tiny26.  The 
> Mega48 has the ADC like the Tiny26.  Digikey has the Mega48 for 
> $1.69, the Tiny26 for $1.55, and the Tiny2313 for $1.42 each in 
> quantity 25 - DIP packages.
> 
> Alan Probandt
> Portland, Oregon
> 
> 
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.