I am using an ATTiny13A MCU. I am confused about selecting the frequency of the device. I want it to be the least possible. I know that there is an internal clock of 128kHz and I plan to use that. I know that in order to select the 128kHz clock, I need to modify the low bit of the CKSEL fuse to make the last component 11 in binary.
1. Now where exactly is CKDIV8 located?
According to this page: This Page
We have to change the value of the Fuse Low byte from 0x69 to 0x79 which results in binary value changing from 01101001 to 01111001 (bit number 4 is modified)
Now according to **broken link removed**, the bit number 4 is SUT0 and not CKDIV8. I am confused.
2. Is CKSEL the same for every device?
3. Moreover, if CKDIV8 is not disabled, and I also choose a prescaler value of 1024, will the frequency become (128000/8)/1024 = 15.625?
1. Now where exactly is CKDIV8 located?
According to this page: This Page
Basically, the 0x79 is assembled from the datasheet. The default value of
CKSEL and CKDIV8 yields you an oscillator of 9.6 MHz, using an initial
clock prescaler of 8, resulting in 1.2 MHz. The initial value of the low
fuse byte (lfuse) ix 0x6a. You have to change two things: 1) flip the
CKSEL bits from 10 to 01, resulting in 0x69, and 2) disable the CKDIV8
bit, resulting in 0x79.
We have to change the value of the Fuse Low byte from 0x69 to 0x79 which results in binary value changing from 01101001 to 01111001 (bit number 4 is modified)
Now according to **broken link removed**, the bit number 4 is SUT0 and not CKDIV8. I am confused.
2. Is CKSEL the same for every device?
3. Moreover, if CKDIV8 is not disabled, and I also choose a prescaler value of 1024, will the frequency become (128000/8)/1024 = 15.625?
Last edited: