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 =... |
Wednesday, 27 February 2008 - 22:14 |
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... |
Friday, 22 June 2007 - 17:35 |
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... |
Wednesday, 20 June 2007 - 02:29 |
#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... |
Friday, 15 June 2007 - 10:49 |
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... |
Thursday, 14 June 2007 - 07:45 |
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-... |
Tuesday, 5 June 2007 - 08:07 |
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... |
Monday, 4 June 2007 - 05:26 |
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... |
Saturday, 19 May 2007 - 00:18 |
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... |
Friday, 27 April 2007 - 01:52 |
Underflow catching I want to do something similar to if ((current-array_size) |
Tuesday, 7 November 2006 - 04:49 |
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... |
Friday, 22 September 2006 - 04:26 |
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... |
Wednesday, 20 September 2006 - 21:48 |