ATtiny 2313 Fuse Programming CS423 Dick Steflik Whats
- Slides: 10
ATtiny 2313 Fuse Programming CS-423 Dick Steflik
Whats a Fuses are used to hold important configuration information for the MPU Not really a fuse, just a few really important bytes of memory 1 means unprogrammed, 0 means programmed unlike a fuse they can be reprogrammed on the ATtiny 2313 there are 3 fuse bytes low byte (lbyte) high byte (hbyte) extended byte (ebyte)
Low Byte 7 (0) – CKDIV 8 – Divide Clock by 8 6 (1) – CKOUT – Output clock on CKOUT pin 5 (1) – SUT 1 – Select start-up time 4 (0) – SUT 0 – Select start-up time 3 (0) – CKSEL 3 – Select clock source 2 (1) – CKSEL 2 – Select clock source 1 (0) – CKSEL 1 – Select clock source 0 (0) – CKSEL 0 – Select clock source
Note: Default Low Byte value is 0 x 64 Divide clock by 8 Internal RC Oscillator (8 MHz) This means default speed is 1 MHz
Select Start-up time Default value (1 0) results in Maximum start-up time
Clocking Options- CKSEL 3. . 0 0000 – External Clock 0010 – Internal RC Oscillator (4 Mhz) 0100 – Internal RC Oscillator (8 Mhz) 0110 – Watchdog Oscillator (128 KHz) 1000 -1111 – External Chrystal/Ceramic Resonator 0001, 0011, 0101, 0111 - Reserved
High Byte 7 (1) – DWEN – debug. WIRE Enable 6 (1) – EESAVE – EEPROM is preserved during chip erase 5 (0) – SPIEN – SPI Enable 4 (1) – WDTON – Watchdog timer always on 3 (1) – BODLEVEL 2 – brownout detector trig level 2 (1) – BODLEVEL 1 – brownout detector trig level 1 (1) – BODLEVEL 0 – brownout detector trig level 0 (1) – RSTDISBL – External Reset disable
Brownout Detection Trigger Level The ATtiny 2313 has an On-chip Brown-out Detection circuit that monitors Vcc to fixed trigger levels Programmed by BODLEVEL 2. . 0 Fuses 111 110 101 100 BOD disabled 1. 8 v 2. 7 v 4. 3 v
Extended Byte 7 (1) – not used 6 (1) – not used 5 (1) – not used 4 (1) – not used 3 (1) – not used 2 (1) – not used 1 (1) – not used 0 (1)– SELFPRGEN – Self programming Enable
Fuse Programming Can be done through the Studio GUI if you are using the Atmel programmer AVRDUDE & Parallel Port programmer Use the -U option as follows: Avrdude -p Attiny 2313 -c dapa -v -U lfuse: w: 0 x. E 4