AVR CONFIG. BITS / FUSES
Posted: Sun Oct 04, 2009 5:40 am
Dear All:
I’m a PIC user for 2 years, now, I m testing FLOWCODE for AVR (demo) and it work excellent, but I have 2 questions:
Question A: configurations bits are structured in 3 pars (ATMega32) High, Low and Extended Fuses (showed in HEX format) I read the datasheet for this Chip from ATMEL, but It is not clear for me, if I’m am correct, the fuses are formed whit this parameters, when they are joined then become a binary number when is converted to a Hex number, it is the configuration right?
HIGH FUSE
OCDEN, JTAGEN, SPIEN, CKOPT, EESAVE, BOOTSZ1, BOOTSZ0, BOOTRST
LOW FUSE
BODLEVEL, BODEN, SUT1, SUT0, CKSEL3, CKSEL2, CKSEL1, CKSEL0
EXTENDES FUSE
7,6, BOOTLOCK12, BOOTLOCK11, BOOTLOCK02. BOOTLOCK01, LOCK2, LOCK1
I suppose that the CKOPT must to be selection (0) for Clock configuration and CLSEL3,2,1,0 in (1) for Cristal operation (19.66MHz), but I not sure, What is the right configuration for XT, and Watchdog off for a reliable operation, (I used to use this configuration for PIC), the test that I like to use is a simple ADC reader and it show into a LCD
Question B:
For accident I locked 2 AVR, when I try to erase them, the programmer show an error, and They are not erased, Do you know how can I make a Hard reset, to clear al fuses and registers to be able to re-reset ant erase chips
Thanks
I’m a PIC user for 2 years, now, I m testing FLOWCODE for AVR (demo) and it work excellent, but I have 2 questions:
Question A: configurations bits are structured in 3 pars (ATMega32) High, Low and Extended Fuses (showed in HEX format) I read the datasheet for this Chip from ATMEL, but It is not clear for me, if I’m am correct, the fuses are formed whit this parameters, when they are joined then become a binary number when is converted to a Hex number, it is the configuration right?
HIGH FUSE
OCDEN, JTAGEN, SPIEN, CKOPT, EESAVE, BOOTSZ1, BOOTSZ0, BOOTRST
LOW FUSE
BODLEVEL, BODEN, SUT1, SUT0, CKSEL3, CKSEL2, CKSEL1, CKSEL0
EXTENDES FUSE
7,6, BOOTLOCK12, BOOTLOCK11, BOOTLOCK02. BOOTLOCK01, LOCK2, LOCK1
I suppose that the CKOPT must to be selection (0) for Clock configuration and CLSEL3,2,1,0 in (1) for Cristal operation (19.66MHz), but I not sure, What is the right configuration for XT, and Watchdog off for a reliable operation, (I used to use this configuration for PIC), the test that I like to use is a simple ADC reader and it show into a LCD
Question B:
For accident I locked 2 AVR, when I try to erase them, the programmer show an error, and They are not erased, Do you know how can I make a Hard reset, to clear al fuses and registers to be able to re-reset ant erase chips
Thanks