|
From: | Hugo González Monteverde |
Subject: | Re: [avr-chat] USI |
Date: | Fri, 24 Mar 2006 17:54:42 -0600 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
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 <address@hidden> 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 address@hidden http://lists.nongnu.org/mailman/listinfo/avr-chat_______________________________________________ AVR-chat mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/avr-chat
[Prev in Thread] | Current Thread | [Next in Thread] |