SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By tz
#86577
I had trouble with Atmel's application note so I redid it. I also switched to assembly and made the SCL timing as uniform as possible. This is 400kHz (a bit faster at 10Mhz, a bit slower at 8 but works without a crystal).

And I actually commented it.

http://harleyhacking.blogspot.com/2009/ ... -good.html

Archives and test programs are at some of the other posts.

I also coded a 2Megabaud [edit:]UART output (at 10Mhz) driver so I could use my FTDI breakout to read back things without hogging the CPU.

http://harleyhacking.blogspot.com/2009/ ... roved.html
Last edited by tz on Sun Dec 06, 2009 12:48 pm, edited 1 time in total.
By stevech
#86580
nitpick: "baud" is normally used with asynchronous serial data (UART), with start/stop bits.

SPI, I2C, and other clocked data systems tend to use the term "bps"
By tz
#86583
I should clarify, the 2 Megabaud goes to my FTDI serial breakout when it is set to 2000000 baud. Yes, async - 1 start bit, 8 data bits, minimal 1 stop bit (usually somewhat longer since you have to reenter the routine and it takes a few clocks). With a 15Mhz Xtal it would be 3Mb.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]