Post Created date
How heavily optamized are the ATMega's?
This program could use some more descriptive variable names. Anyway, I see a few possible pitfalls... 1. Your interrupt routine sets TS only if C0 was low and Temp0 was set. This...
Thursday, 19 November 2009 - 16:27
Interrupt not executing all code?
ThEThInG wrote: if(~PINC2) Check what exactly PINC2 is defined as. I suspect it's simply the constant 2 - and you meant something like if(!(PINC&_BV(PINC2))).
Thursday, 15 October 2009 - 18:51
Attiny and cheap programmer
I'll have to agree that this is a rather bad way to go. You're not saving much on resistors (and a 74hc244) when you're frying your microcontroller. The reset pin should be the...
Friday, 30 March 2007 - 15:43
The USI doesn't implement a UART - but it does implement a bit shifter, an important part of a UART. Essentially you can use it for that part by feeding it a clock internally, by...
Thursday, 27 July 2006 - 22:40
Problems with program, SPI/UART transmitter
Glancing at your code, the problem suddenly becomes clear. clk_wait() accesses TCNT1, while time_init() uses CS00 to start a timer - so you're waiting for timer 1 to reach a value...
Tuesday, 25 July 2006 - 09:42
Problems with program, SPI/UART transmitter
I'm fond of letting the peripherals do as much of the work as they can. In this case, you want an evenly timed wakeup from timer1. This could be achieved by storing your loop...
Monday, 24 July 2006 - 10:49
PC keyboard simulator
I'm working on an Amiga to AT keyboard converter, which will include code like this. Unfortunately my hard drive crashed, so I'll have to rewrite it.
Tuesday, 18 July 2006 - 22:24
16*2 lcd initiation, why does not my code work?
The intialization for 4-bit mode looks a bit funny. The lower bits don't matter, as the command to switch to 4-bit mode only needs the upper 4. However, you first want to send the...
Monday, 17 April 2006 - 22:42
problem with interrupt
Several status bits in the AVR are designed to be either polled or trigger an interrupt. The interrupt automatically clears the bit, but it's the status bit triggering the...
Saturday, 1 April 2006 - 23:54
AVR circuit design for Dummies
I'm about to wire a similar display to my tiny2313, and the connection shown is actually already saving pins. The R/W wired to ground means the read commands are unavailable, so...
Saturday, 1 April 2006 - 23:39