Type in the full discussion title or a part of it.
Discussion Title Created date
Simple DC-DC with wide Vin
I need to come up with as simple a DC-DC converter as I can. There are a TON of chips out there that make nice simple converters, but I my problem is high/wide input voltage and...
Thursday, 29 April 2010 - 14:42
Complete Demo code for usiung the E3 LCD Key
I've created code to drive the E3 LCD-Key using SPI. The E3 LCD-Key. http://www.e3-keys.com/english/sb.htm Is a 64x32 pixel LCD display with RGB backlighting. Tom's code for the...
Saturday, 13 March 2010 - 17:43
Preprocessor macro substitutions/calculations
I have a question regarding preprocessor directives and when math is done. Is it the preprocessor that does the math in the code, or will gcc take the substituted values and do...
Wednesday, 10 March 2010 - 17:15
Using bit shifting in an equation
I'm trying to use bit shifting to accomplish fast divition by powers of 2. But I'm getting some strange behavior. For the example code below... uint16_t var1; uint16_t var2;...
Wednesday, 23 September 2009 - 01:49
16/32-bit math and casting
Is there a tutorial on integer math, when to, when not to cast? I'm using the Tiny44 with AVR Studio 4.16, and the latest Win-AVR. I want to square a 16-bit variable. It's my 10-...
Friday, 10 July 2009 - 01:01
setting one bit and leaving others the same.
I've got a C program for a Tiny84. I have 2 ports PB0 and PB1 that I've set as outputs in the DDR. I can set control the state of each port using the following... PORTB =...
Saturday, 6 June 2009 - 22:51
Studio 4.16.638 (SP1) Slow build
I was previously using 4.16.628 with Win-avr 20090313. Building a project consisting of one C file (298 lines long) took maybe 3-4 seconds. Now, after "upgrading" to 4.16.638 (SP1...
Wednesday, 20 May 2009 - 21:30
returing a value from a routine
I have a routine I use to read different ADCs. Right now I'm storeing the result in a variable and using the variable afterwards in the Main section. uint16_t adcval = 0;...
Saturday, 24 January 2009 - 02:50
Odd ADC results.
I'm using the Tiny84. ADC clock = 125kHz PWM is 10-bit Phase correct. I have a routine that updates the ADMUX, starts a conversion, waits for it to complete, then writes the...
Thursday, 15 January 2009 - 21:46
Handling 10-bit PWM versus 8-bit
I'm working on a project using the Tiny84 AVR. I'm using 2 ADCs and PWM. I read battery voltage to calculate what PWM duty is required to give an RMS voltage equal to the user's "...
Thursday, 15 January 2009 - 18:25
Reading ADC on 2 inputs
Chip = Tiny84 I'm trying to read voltages on 2 ADC inputs (ADC2 on PA2 and ADC3 on PA3). For ADC2 I have... void initADC() // initialize and prepare ADC2 for reading { ADMUX =...
Friday, 9 January 2009 - 03:08

Pages