
113
8052B–AVR–09/08
ATmega4HVD/8HVD
20.8.8 BPIMSK – Battery Protection Interrupt Mask Register
• Bit 7:5 – Res: Reserved Bits
These bits are reserved and will always read as zero.
• Bit 4 – SCIE: Short-circuit Protection Activated Interrupt
The SCIE bit enables interrupt caused by the Short-circuit Protection Activated Interrupt.
• Bit 3 – DOCIE: Discharge Over-current Protection Activated Interrupt
The DOCIE bit enables interrupt caused by the Discharge Over-current Protection Activated
Interrupt.
• Bit 2 – COCIE: Charge Over-current Protection Activated Interrupt
The COCIE bit enables interrupt caused by the Charge Over-current Protection Activated
Interrupt.
• Bit 1:0 – Res: Reserved Bits
These bits are reserved and will always read as zero.
20.8.9 BPIFR – Battery Protection Interrupt Flag Register
• Bit 7:5 – Res: Reserved Bit
These bits are reserved and will always read as zero.
• Bit 4 – SCIF: Short-circuit Protection Activated Interrupt
Once Short-circuit violation is detected, SCIF becomes set. The flag is cleared by writing a
logic one to it.
• Bit 3 – DOCIF: Discharge Over-current Protection Activated Interrupt
Once Disharge Over-current violation is detected, DOCIF becomes set. The flag is cleared by
writing a logic one to it.
• Bit 2 – COCIF: Charge Over-current Protection Activated Interrupt
Once Charge Over-current violation is detected, COCIF becomes set. The flag is cleared by
writing a logic one to it.
• Bit 1:0 – Res: Reserved Bit
These bits are reserved and will always read as zero.
Bit 76543210
- - - SCIE DOCIE COCIE - - BPIMSK
Read/Write R R R R/W R/W R/W R R
Initial Value 0 0 0 0 0 0 0 0
Bit 76543210
- - - SCIF DOCIF COCIF - - BPIFR
Read/Write R R R R/W R/W R/W R R
Initial Value 0 0 0 0 0 0 0 0
Commentaires sur ces manuels