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...
Sat. Dec 11, 2010 - 04:01 PM
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...
Wed. Jul 7, 2010 - 02:31 AM
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...
Tue. May 18, 2010 - 09:32 PM
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,
Sun. Apr 25, 2010 - 05:34 PM
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...
Thu. Mar 11, 2010 - 10:39 PM
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...
Thu. Mar 11, 2010 - 04:24 PM
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)...
Sat. Mar 6, 2010 - 09:04 PM
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...
Sat. Jan 30, 2010 - 09:05 PM
How to read both return values from __udivmodhi4
Hi, In AVR341 application note there is an implementation of an utoa function, shown below. /************************************************************************* Function:...
Mon. Aug 17, 2009 - 04:12 AM
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...
Wed. Mar 18, 2009 - 03:12 AM
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(...
Thu. Mar 12, 2009 - 08:01 PM
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...
Wed. Mar 11, 2009 - 08:29 PM