Type in the full discussion title or a part of it.
Discussion Title Created date
ISR __zero_reg__ optimization
So I have a nice ISR like so, ISR(TIMER2_OVF_vect) { uint8_t cycle = SSTART_CYCLE; cycle--; if (~cycle) { uint8_t tempduty = TEC_DUTY; tempduty++; uint8_t tempvTEC =...
Wed. Feb 27, 2008 - 10:14 PM
warning: pointer targets ....... differ in signedness
Compiling some code I get the following error. ../Humidor.c:633: warning: pointer targets in passing argument 1 of 'serlcdPrintData' differ in signedness that line contains...
Fri. Jun 22, 2007 - 05:35 PM
AVR -> LCD via three wires
Having found this about serial control of character LCDs using a 74HC164D shift register, I decided to use it in my project to cut down on cable size and pin usage. To do that I...
Wed. Jun 20, 2007 - 02:29 AM
#define question
I'm trying to do #define LEDPIN PORTB,1 #define SETBIT(reg,bit) (reg |= (1<<bit)) { SETBIT(LEDPIN); } But it gives me an error saying "macro "SETBIT" requires 2...
Fri. Jun 15, 2007 - 10:49 AM
Show flash, ram, etc usage
I just upgraded AVR Studio from a rather old version and it no longer tells me my flash, ram and eeprom usage after a compile (with avr gcc). I am pretty sure that this has been...
Thu. Jun 14, 2007 - 07:45 AM
SMT caps vertical through hole
Anyone tried putting SMT caps/resistors vertically through a dual layer PCB (obviously without the hole being plated)? Looking at my 0603 caps they seem the perfect size, the end-...
Tue. Jun 5, 2007 - 08:07 AM
signed = unsigned - unsigned
say I have 2 unsigned ints, var1 and var2, both are larger than can fit in a signed int. Now I have a signed int result. so lets say; unsigned int var1 = 45678; unsigned int...
Mon. Jun 4, 2007 - 05:26 AM
General code structure for temp control/display/logging
So I was hoping I could get some help with my first serious project. My project is a temp controlled humidor which uses ADC inputs from several temp sensors and a humidity sensor...
Sat. May 19, 2007 - 12:18 AM
Hardware design check please
So, I think I have completed the hardware design for my temperature controlled humidor but since it's my first electronics project since 1998 and my first ever uC project I would...
Fri. Apr 27, 2007 - 01:52 AM
Underflow catching
I want to do something similar to if ((current-array_size)
Tue. Nov 7, 2006 - 04:49 AM
Loop optomization Q
I currently have this code: int l_ob_cold = object-cold; int l_ob_set = object-setpoint; int l_hot_amb = hot-ambient; for (int i = 0; i...
Fri. Sep 22, 2006 - 04:26 AM
Watch ADCSRA bit 6 (ADSC) or bit 4 (ADIF)?
Is there any benefit of one over the other? while ((ADCSRA & 0x10)==0); ADCSRA|=0x10; do_stuff() compared to... while ((ADCSRA & 0x40)!=0); do_stuff() and could that be...
Wed. Sep 20, 2006 - 09:48 PM

Pages