English
Language : 

FMS7401 Datasheet, PDF (49/80 Pages) Fairchild Semiconductor – Digital Power Controller
PRODUCT SPECIFICATION
FMS7401/7401L
Carry/Borrow (C)
The carry flag is set if the arithmetic logic unit (ALU) performs a carry or borrows during an arithmetic operation and by its
special inherent instructions—set carry (SC), load carry (LDC) and invert carry (INVC). The rotate instructions—rotate right/
left through carry (RRC/RLC)—operate with and through the carry bit to facilitate multiple-word shift operations. The RC,
SC, INVC, LDC and STC (store carry) instructions facilitate direct bit manipulation using the carry flag.
Half Carry (H)
The half carry flag indicates whether an overflow has taken place on the boundary between the two nibbles in the accumulator.
It is primarily used for Binary Coded Decimal (BCD) arithmetic calculation. The RC and SC instructions facilitate direct bit
manipulation of the half carry flag.
Zero (Z)
The zero flag is set if the result of an arithmetic, logic, or data manipulation operation is zero. Otherwise, the zero flag is
cleared.
Negative (N)
The result from an arithmetic, logic, or data manipulation operation is negative if the MSB is one, therefore setting the negative
flag. Otherwise, the negative flag is cleared.
Global Interrupt Mask (G)
The global interrupt bit (G) is a global mask that disables all maskable interrupt sources. If G is cleared, interrupts can become
pending but the operation of the core continues uninterrupted (even if the individual interrupts are enabled). However, if G is
set when an interrupt becomes pending the core will be interrupted and execute the appropriate interrupt service routine.
After a reset, G is defaulted to zero and can only be set by a software instruction. When an interrupt is recognized, G is auto-
matically cleared after the program counter value is stacked and the interrupt vector addressing the interrupt service routine is
fetched. Once the interrupt is serviced, a return-from-interrupt (RETI) instruction is normally executed to restore the program
counter to the value before the interrupt occurred. G is the restored to one after the return from interrupt is executed. Although
G can be set within an interrupt service routine, “nesting” interrupts in this way should only be done when there is a clear
understanding of latency and of the arbitration mechanism.
Table 23. Interrupt Priority Sequence
Priority (5 highest, 1 lowest)
5
4
3
2
1
Software
MIW
Timer 0
PWM Timer 1
ADC
Interrupt
(INTR)
(EDGEI)
(TMRI0)
(TMRI1)
(ADCI)
REV. 1.0.2 6/23/04
49