Type in the full discussion title or a part of it.
Discussion Title Created date
Detecting INT1 switch short vs long press
I have an attiny48 with a switch connected on INT1 pin, with internal pull-up enabled. The switch pulls INT1 to ground through an external resistor when pressed. I also have a 0....
Wednesday, 5 June 2019 - 12:18
Problems with I2C in bit-bang mode on the attiny48
I am trying to get I2C communication working between an attiny48 (master) and a slave device. My attiny48 runs on the internal oscillator at 1MHz (CKDIV8 checked) I am...
Friday, 31 May 2019 - 12:14
Reading multiple ADC channels.
Hi, I'm trying to read two consecutive analog channels on the atmega32u4. Here is my code: #define ADC8 0x20 //(100000) #define ADC9 0x21 //(100001) void ADC_setup(void) { //...
Wednesday, 6 February 2013 - 21:27
Atmega8u2 problem
Hi, I recently made pcb for an atmega8u2 in TQFP package. I assembled the board and loaded a simple LED blink code to check if its working.. #include #include int main (...
Tuesday, 1 November 2011 - 21:26
avr-objcopy ELF No such file
Hi, I'm using AVRStudio 4.19 and I cannot compile my projects, new or old ones, it doesn't matter. I get the same error: avr-objcopy: 'test.elf': No such file In my previous setup...
Friday, 30 September 2011 - 16:57
initializer element is not constant
Hi, I wrote the following code for measuring time using Timer0 interrupt. At compile time I would like to automatically calculate the time it takes for each overflow considering...
Monday, 18 July 2011 - 12:18
printf() with float type variables
Hi, I'm using avr-gcc 4.3.3 and I wrote the following code for reading the voltage present on ADC7 on ATMEGA64. int onboard_voltage; onboard_voltage = read_adc(7); // 3.3V /...
Monday, 4 July 2011 - 09:21
UART and atoi()
Hi, I'm using avr-gcc 4.3.3 and I wrote the following code for reading a string from UART, convert it to integer, then write it back on UART. If everything would go as planed if I...
Tuesday, 28 June 2011 - 22:30
temp sensor I2C + USART bug
Hi, I'm successfully reading data from a TMP275 temp sensor over I2C. I'm visualizing data in a terminal and on some lines a '0' appears giving a false reading. I can't find the...
Wednesday, 3 February 2010 - 14:26
reading data from I2C accelerometer
Hi, I'm using the MMA7455 digital output accelerometer (http://www.freescale.com/files/s...)connected to an atmega8. I'm using Peter Fleury's I2C library, 3k9 pullup resistors,...
Wednesday, 27 January 2010 - 18:28
I2C library conflicts with USART
Hi, I'm working on a project based on atmega8. I have a temperature sensor with I2C and I would like to send temperature data over USART to a terminal on the computer. So far I've...
Friday, 22 January 2010 - 22:18
ATmega64-16AU vs. ATmega64L-8AU
Hello, I currently have a board running with ATmega64-16AU running on the internal oscillator at 8 MHz , at 5 V. The question is, can I replace the 16-AU version with an L-8AU...
Wednesday, 14 October 2009 - 13:35

Pages