Type in the full discussion title or a part of it.
Discussion Title Created date
huge state machine
This is not GCC, but a general programming question. What do you use for huge finite state machines? I've wrote this huge state machine with about 20 states (it will probably grow...
Saturday, 11 December 2010 - 16:01
FT232 fails to enumerate with ferrite bead
All images in this post are avaiable in my Picasa album with full size. I'm finishing up a PCB that uses a FT232, with power supplied by it's ous regulator. In the middle of...
Wednesday, 7 July 2010 - 02:31
Magically repair AVR chips
Just saw this on hackaday.com. It's a "ATmega fusebit doctor" that sets the fuses to a safe state using HVPP. It claims to do it to a broad range of AVRs. Should help all the...
Tuesday, 18 May 2010 - 21:32
PCB layout review
I've just mede the layout for my IV-18 VFD project. The result is attached, including the schematic. All components are on the top side. Any hints on how to improve it? Thank you,
Sunday, 25 April 2010 - 17:34
GCC optmizing out code
I'm doing a state machine to receive commands from the UASRT and this one case (code below) isn't working. Inspecting the lss output, it seems that GCC is optimizing out the...
Thursday, 11 March 2010 - 22:39
GCC code efficiency
Looks like GCC is generating code more efficiently than the code in the avr-libc library, at least in this case (isdigit from ). Nice! if (isdigit(uart_tmp)) 40c: 48 2f...
Thursday, 11 March 2010 - 16:24
Switch statement
Here is a fragment os a code i've written, all part of a big state machine. All cases below (except the default one), there are some calculations, conversions to ascii (sprintf)...
Saturday, 6 March 2010 - 21:04
Symmetric (Complementary) square wave outputs
Is there an easy way of generating symmetric outputs from a timer on a Mega168? I'm using timer0 at ctc mode to generate a symmetric 100 kHz output at OC0A and OC0B. I just can't...
Saturday, 30 January 2010 - 21:05
How to read both return values from __udivmodhi4
Hi, In AVR341 application note there is an implementation of an utoa function, shown below. /************************************************************************* Function:...
Monday, 17 August 2009 - 04:12
Philips bench multimeter
I was browsing ebay looking for a Fluke 8050A bench multimeter when I stumbled with this Philps PM2525 bench multimeter. It has slightly better DC accuracy against the 8050A (0.03...
Wednesday, 18 March 2009 - 03:12
Using assembler to access a union
How can I access individual bytes of the union below in assembler? volatile union { uint32_t Counts; uint16_t ints[2]; uint8_t bytes[4]; } foo Can I just use lo8(foo), hi8(...
Thursday, 12 March 2009 - 20:01
Passing pin to a function
Is there a way to tell a function which pin I want to use so I can change it's state inside of the function? Basically, I want to mimic BASCOMs SOUND function. It is defined in...
Wednesday, 11 March 2009 - 20:29

Pages