MC68HC705BD3 FREESCALE [Freescale Semiconductor, Inc], MC68HC705BD3 Datasheet - Page 85

no-image

MC68HC705BD3

Manufacturer Part Number
MC68HC705BD3
Description
High-density complementary metal oxide semiconductor (HCMOS) microcontroller unit
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC705BD32B
Manufacturer:
MOT
Quantity:
57
Part Number:
MC68HC705BD3P
Manufacturer:
MOTOROLA
Quantity:
2 852
Part Number:
MC68HC705BD3P
Manufacturer:
MOT
Quantity:
5 173
9.3.8
The relative addressing mode is only used in branch instructions. In relative addressing, the
contents of the 8-bit signed byte (the offset) following the opcode are added to the PC if, and only
if, the branch conditions are true. Otherwise, control proceeds to the next instruction. The span of
relative addressing is from –126 to +129 from the opcode address. The programmer need not
calculate the offset when using the Motorola assembler, since it calculates the proper offset and
checks to see that it is within the span of the branch.
9.3.9
In the bit set/clear addressing mode, the bit to be set or cleared is part of the opcode. The byte
following the opcode specifies the address of the byte in which the specified bit is to be set or
cleared. Any read/write bit in the first 256 locations of memory, including I/O, can be selectively
set or cleared with a single two-byte instruction.
9.3.10
The bit test and branch addressing mode is a combination of direct addressing and relative
addressing. The bit to be tested and its condition (set or clear) is included in the opcode. The
address of the byte to be tested is in the single byte immediately following the opcode byte (EA1).
The signed relative 8-bit offset in the third byte (EA2) is added to the PC if the specified bit is set
or cleared in the specified memory location. This single three-byte instruction allows the program
to branch based on the condition of any readable bit in the first 256 locations of memory. The span
of branch is from –125 to +130 from the opcode address. The state of the tested bit is also
transferred to the carry bit of the condition code register.
MC68HC05BD3
Relative
Bit set/clear
Bit test and branch
Address bus high
Address bus high
EA2 = PC+3+(PC+2); PC
EA = PC+2+(PC+1); PC
CPU CORE AND INSTRUCTION SET
otherwise EA = PC
EA1 = (PC+1); PC
EA = (PC+1); PC
otherwise PC
0; Address bus low
0; Address bus low
EA if branch taken;
EA2 if branch taken;
PC+3
PC+2
PC+2
PC+2
(PC+1)
(PC+1)
TPG
9-13
9

Related parts for MC68HC705BD3