[sdiy] More AVR code
patchell
patchell at silcom.com
Sun Sep 30 21:44:33 CEST 2001
I just posted the Recieve UART interrupt code, for those who are
interrested...
I had a much more difficult time getting the code to work, but, it
was because the first code I wrote had a typo I missed. When I tried to
transmit just one character, all heck would break loose. I kept
checking and rechecking the code, made little changes trying to track
down the problem. I finally looked in the assembly output, and found
the problem there. The function Disable() (which disables global
interrupts) was implemented like this:
SREG &= ~80
Instead of like this:
SREG &= ~0x80
(I have reposted the original code with the correction). It makes a
heck of a lot of difference in the way the code works...also one of my
most common typos....
Anyway, that will probably be all for today...time to go operate on
the LA&SL RR...
--
-Jim
------------------------------------------------
* Visit:http://www.silcom.com/~patchell/
*-----------------------------------------------
*I'm sure glad Merry Christmas comes just once a year
* -Yogi Yorgensen
------------------------------------------------
More information about the Synth-diy
mailing list