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...
Thu. Sep 29, 2005 - 02:05 PM
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...
Tue. Sep 27, 2005 - 09:56 AM
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...
Fri. Aug 19, 2005 - 11:28 AM
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
Thu. Aug 18, 2005 - 05:23 PM
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...
Mon. Aug 15, 2005 - 01:44 PM
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...
Wed. Jul 20, 2005 - 10:44 AM
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...
Wed. Jun 29, 2005 - 01:22 PM
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...
Mon. Jun 27, 2005 - 11:19 AM
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'...
Tue. Jun 21, 2005 - 01:01 PM
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...
Thu. Jun 16, 2005 - 09:15 AM
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...
Tue. Jun 14, 2005 - 11:53 AM
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...
Tue. Jun 14, 2005 - 08:22 AM