Type in the full discussion title or a part of it.
Discussion Title Created date
Watchdog in mega48
I'm cutting down my power consumption in my mega48 gcc program. One thing I have to implement is a delay. The 64ms watchdog option looks interesting. Can you point me to any code...
Thursday, 29 September 2005 - 14:05
STK500 failure
Hope you can help me out with this one: In three different STK500 boards I have been unable to read the signature byte from the attached MCU. Fuses and flash programming are also...
Tuesday, 27 September 2005 - 09:56
RC oscillator and UART in mega48
For a new design I'm currently using the 3.686MHz oscillator on the STK500. But on the board there's no space for a low-frequency crystal. The only timing critical part of my...
Friday, 19 August 2005 - 11:28
Decoupling atmega48
What is the recomended decoupling scheme for the atmega48? I'm running the smallest package of the chip at 4MHz or below. Regards, Børge
Thursday, 18 August 2005 - 17:23
Compiler options
Hi, after I compile my project I get the message below. Which of these lines must I watch when I try to make it fit in a 4kB MCU (mega48)? Is there debug information compiled...
Monday, 15 August 2005 - 13:44
interrupt before sei
I have a question about sei. What happens if an external interrupt occurs before sei has been called? In my program I do the following: 1 - Enable the interrupt generation in a...
Wednesday, 20 July 2005 - 10:44
2-wire behaves strangely
I'm trying to hook up a 2-wire connection using the method on page 183 in the mega 16 data sheet. (Setting/clearing and polling the TWINT bit.) I get some very strange results...
Wednesday, 29 June 2005 - 13:22
printf() fails
I'm using a lot of printf()s in my code to debug via an UART interface. This works perfectly well for most of the printf()s. But some of them fail to produce any output! These are...
Monday, 27 June 2005 - 11:19
printf() and portable code
I use printf_P today. Will that function compile in GCC for other MCUs? And will it compile in other compilers like Keil and IAR? If it will not, how should I rather do my printf'...
Tuesday, 21 June 2005 - 13:01
Timers/counters
I'm using a timer to wait for a predefined time. This works great in assembly, but how do I do this in C? 1 - Set up timer 2 - Enable timer interrupt 3 - Sleep 4 - Interrupt...
Thursday, 16 June 2005 - 09:15
printf problem
Hi, I'm trying to print out hex codes with a preceding "0x" and always using two bytes after that. What is the correct switch to use in printf? printf_P (PSTR ("\r\n'%02x'\r\n...
Tuesday, 14 June 2005 - 11:53
Getting started with AVR GCC
Hi, I've been programming AVRs in assembly for four years, but now my boss wants the code to be in a high-level customer-readable language. What do I need to set up AVR GCC? I...
Tuesday, 14 June 2005 - 08:22

Pages