ST6246 STMICROELECTRONICS [STMicroelectronics], ST6246 Datasheet - Page 58

no-image

ST6246

Manufacturer Part Number
ST6246
Description
8-BIT OTP/EPROM MCU WITH LCD DRIVER, EEPROM AND A/D CONVERTER
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
ST62T46B/E46B
INSTRUCTION SET (Cont’d)
Conditional Branch. The branch instructions
achieve a branch in the program when the select-
ed condition is met.
Bit Manipulation Instructions. These instruc-
tions can handle any bit in data space memory.
One group either sets or clears. The other group
(see Conditional Branch) performs the bit test
branch operations.
Table 24. Conditional Branch Instructions
Notes
b.
e.
ee. 8 bit signed displacement in the range -126 to +129
Table 25. Bit Manipulation Instructions
Notes:
b.
rr.
Table 26. Control Instructions
Notes:
1.
*.
Table 27. Jump & Call Instructions
Notes:
abc. 12-bit address;
* .
58/72
394
JRC e
JRNC e
JRZ e
JRNZ e
JRR b, rr, ee
JRS b, rr, ee
SET b,rr
RES b,rr
NOP
RET
RETI
STOP (1)
WAIT
CALL abc
JP abc
.
3-bit address
5 bit signed displacement in the range -15 to +16<F128M>
3-bit address;
Data space register;
This instruction is deactivated<N>and a WAI T is automatically executed instead of a STOP if the watchdog function is selected.
Affected
Not Affected
Not Affected
Instruction
Instruction
:
Instruction
Instruction
C = 1
C = 0
Z = 1
Z = 0
Bit = 0
Bit = 1
Bit Direct
Bit Direct
Inherent
Inherent
Inherent
Inherent
Inherent
Extended
Extended
Addressing Mode
Addressing Mode
Addressing Mode
Branch If
Bytes
Bytes
Bytes
Bytes
2
2
1
1
1
1
3
3
1
1
2
2
1
1
1
Control Instructions. The control instructions
control the MCU operations during program exe-
cution.
Jump and Call. These two instructions are used
to perform long (12-bit) jumps or subroutines call
inside the whole program space.
rr.
* .
* . Not<M> Affected
. Affected. The tested bit is shifted into carry.
Data space register
Not Affected
Cycles
Cycles
Cycles
Cycles
4
4
2
2
2
2
5
5
4
4
2
2
2
2
2
Z
Z
Z
Z
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Flags
Flags
Flags
Flags
C
C
C
C
*
*
*
*
*
*
*
*
*
*
*
*

Related parts for ST6246