avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] atmega48


From: Hanns-Konrad Unger
Subject: [avr-chat] atmega48
Date: Sat, 25 Mar 2006 18:04:14 +0100

>Hi,
>
>does anybody know if it is possible to prototype it on a breadboard, or=20
>is the routing critical?
>
>Is it critical to use an ATmega8? I have tried an ATmega48, without=20
>success. I only had to change a single row in timer.h to make it compile.=
>
I tried it with the ATmega48 (works with 3.3V at 12Mhz too):
   1) I got the latest version of the usb-driver from www.obdev.at
              PowerSwitch.2006-03-14.tar.gz
      and updated firmware/usbdrv/*
   2) changed clock.h:
              #ifdef __AVR_ATmega8__
              #define TCCR0B  TCCR0
              #endif
              
              /* set prescaler to 64 */
              #define clockInit()  TCCR0B = (1 << CS01) | (1 << CS00);
   3) changed Makefile:
              TARGET = atmega48
              :
              :
              fuses:
                    avrdude -c usbasp -p atmega48 -u -U lfuse:w:0xff:m
                    avrdude -c usbasp -p atmega48 -u -U hfuse:w:0xdd:m
The result works more reliable than the original from www.fischl.de.
But writing data into the MCU became slow.
2 Min. for 4KB, is it dog slow? The original needs 3 seconds.
Reading is still fast.

Hanns-Konrad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]