paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] Reply to"Re: PPM encoders with non-blinking LED (Simon


From: Chris
Subject: [Paparazzi-devel] Reply to"Re: PPM encoders with non-blinking LED (Simon Wilks)"
Date: Mon, 10 Jan 2011 15:38:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

Hi.
Here is the possible problem:

The first batch of PPM encoders used the mega 168 which use the internal rc oscillator.
The right fuses then are:
LOW_FUSE_168 = 0xC2
HIGH_FUSE_168 = 0xDC
EXTENDED_FUSE_168 = 0xF8
LOCK_FUSE_168 = 0xFF

Programmed = write 0 or check the corresponding fuse check box in the avr studio Unprogrammed = write 0 or check the corresponding fuse check box in the avr studio
When a fuse is set to "1" then it is unprogrammed (inactive)
Basically you need to unprogram the CKDIV8 (write "1") and BODLEVEL2 fuse and program (write "0")
the BODLEVEL1, BODELEVEL0  and BOOTRST fuses.
In AVR studio just select BODLEVEL = 4.3V, check the BOOTRST fuse and uncheck the CKDIV8 fuse.
All other fuses remain at default values

When the Mega328p is used with a crystal like the newer version then the fuses must be
LOW_FUSE_328 = 0xDF
HIGH_FUSE_328 = 0xD8
EXTENDED_FUSE_328 = 0xFC
LOCK_FUSE_328 = 0xFF

Again the CKDIV8 fuse must be unprogrammed (write "1")
The BOOTRST fuse must be programmed (write "0")
The clock fuses must be set:
CKSEL0,1,2,3 and SUT0 fuses must be unprogrmmed (write "1")
SUT1 fuse must be programmed (write "0")
The BODLEVEL must be set:
Unprogram (write "1") the BODLEVEL2  fuse and program (write "0")
the BODLEVEL1 and  BODELEVEL0 fuses.
In AVR studio just select BODLEVEL = 4.3V, uncheck the CKDIV8 fuse and select the clock source to be "Low power crystal oscillator" or "Full swing crystal oscillator" with a range of 8 to 16 Mhz and brown out enabled if you see this option in the drop down box.
Chris






reply via email to

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