Hi Keith,
Start conditions are TWI, in an UART one would talk about start bit.
Have you seen Atmel's application notes for implementing UART, TWI and
SPI with the USI? They are the canonical implementations:
http://www.atmel.com/dyn/resources/prod_documents/doc4300.pdf
http://www.atmel.com/dyn/resources/prod_documents/doc2561.pdf
http://www.atmel.com/dyn/resources/prod_documents/doc2565.pdf
http://www.atmel.com/dyn/resources/prod_documents/doc2560.pdf
http://www.atmel.com/dyn/resources/prod_documents/doc2582.pdf
Hugo
Keith Gudger wrote:
Joerg:
Thanks for your reply. When you say "generating start conditions" are you
referring to using it as a UART or SPI/TWI? Thanks.
Keith
On Wed, 22 Mar 2006, Joerg Wunsch wrote:
Keith Gudger <[EMAIL PROTECTED]> wrote:
1) Has anyone used the USI to implement I2C or SPI? Does it work as
well as the dedicated hardware? Any known problems?
I tried, but was a bit frightened when then studying the appnote for
it, and had to see that you've got a lot of ``legwork'' to do there.
Things like generating start conditions aren't done by the USI for
you, you have to pull the pins appropriately. The USI then only does
the actual bit shifting.
However, as the code is there (as usual, needs minor adaptations for
GCC), I think you could use it as a starting point.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat