![TENX TECHNOLOGY TM57PE10 Скачать руководство пользователя страница 12](http://html.mh-extra.com/html/tenx-technology/tm57pe10/tm57pe10_user-manual_1087886012.webp)
Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
12
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/19
1.5 STATUS Register
This register contains the arithmetic status of ALU and the reset status. The STATUS register can be
the destination for any instruction, as with any other register. If the STATUS register is the destination
for an instruction that affects the Z, DC or C bits, then the write to these three bits is disabled. These bits
are set or cleared according to the device logic. It is recommended, therefore, that only BCF, BSF and
MOVWF instructions are used to alter the STATUS register because these instructions do not affect
those bits.
STATUS
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Reset Value
–
0
–
0
0
0
0
0
R/W
–
R/W
–
R
R
R/W
R/W
R/W
Bit
Description
7
Not Used
6
General Purpose Bit
5
Not Used
4
TO
: Time Out
0: after Power On Reset, LVR Reset, or CLRWDT/SLEEP instruction
1: WDT time out occurs
3
PD
: Power Down
0: after Power On Reset, LVR Reset, or CLRWDT instruction
1: after SLEEP instruction
2
Z
: Zero Flag
0: the result of a logic operation is not zero
1: the result of a logic operation is zero
1
DC
: Decimal Carry Flag or Decimal /Borrow Flag
ADD instruction
SUB instruction
1: a carry from the low nibble bits of the
result occurs
0: no carry
1: no borrow
0: a borrow from the low nibble bits of the
result occurs
0
C
: Carry Flag or /Borrow Flag
ADD instruction
SUB instruction
1: a carry occurs from the MSB
0: no carry
1: no borrow
0: a borrow occurs from the MSB