11 register description, 1 adcsrb – adc control and status register b – Rainbow Electronics ATtiny43U User Manual
Page 47
47
8048B–AVR–03/09
boost converter, connect pins V
BAT
and LSW to ground and provide the device with supply
directly to the V
CC
pin.
8.11
Register Description
8.11.1
ADCSRB – ADC Control and Status Register B
• Bit 7 – BS: Boost Status
The BS bit can be used to identify silent periods of the boost converter. When this bit is one the
boost converter is active and switching, i.e. it is either in Active Regulated Mode, or in the switch-
ing period of Active Low Current Mode. When this bit is zero the boost converter is not switching,
i.e. it is either in Stop Mode or in the non-switching period of Active Low Current Mode.
Alternatively, the BS bit can be programmed to return the state of the duty cycle controller, as
follows:
1.
Write 11xx xxxx to register PRR
2.
Within 3 clock cycles of the above, write 10xx xxxx to register PRR
3.
Wait (issue a single-cycle no operation)
4.
Within 5 clock cycles of first write, read the BS bit
If the BS bit now is zero the converter is operating in normal duty cycle control mode. If the bit is
one the converter is working in full duty cycle mode.
Bit
7
6
5
4
3
2
1
0
BS
ACME
–
ADLAR
–
ADTS2
ADTS1
ADTS0
ADCSRB
Read/Write
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0