參數(shù)資料
型號(hào): HD40L4816
廠商: Hitachi,Ltd.
英文描述: 4-Bit Single-Chip Microcomputer(4位單片微計(jì)算機(jī))
中文描述: 4位單片機(jī)(4位單片微計(jì)算機(jī))
文件頁(yè)數(shù): 72/98頁(yè)
文件大?。?/td> 621K
代理商: HD40L4816
HD404818 Series
72
Addressing Modes
RAM Addressing Modes
As shown in figure 39, the MCU has three RAM addressing modes: register indirect addressing, direct
addressing, and memory register addressing.
Register Indirect Addressing Mode:
The W register, X register, and Y register contents (10 bits total) are
used as the RAM address.
Direct Addressing Mode:
A direct addressing instruction consists of two words, with the word (10 bits)
following the opcode used as the RAM address.
Memory Register Addressing Mode:
The memory registers (16 digits from $040 to $04F) are accessed
by executing the LAMR and XMRA instructions.
ROM Addressing Modes and the P Instruction
The MCU has four kinds of ROM addressing modes as shown in figure 40.
Direct Addressing Mode:
The program can branch to any address in ROM memory space by executing
the JMPL, BRL, or CALL instruction. These instructions replace the 14 program counter bits (PC
13
to PC
0
)
with 14-bit immediate data.
Current Page Addressing Mode:
The MCU has 32 pages of ROM with 256 words per page. By executing
the BR instruction, the program can branch to an address in the current page. This instruction replaces the
lower eight bits of the program counter (PC
7
to PC
0
) with 8-bit immediate data.
When the BR instruction is on a page boundary (256n + 255) (figure 41), executing it transfers the PC
contents to the next page according to the hardware architecture. Consequently, the program branches to
the next page when the BR instruction is used on a page boundary. The HMCS400 series cross
macroassembler has an automatic paging facility for ROM pages.
Zero-Page Addressing Mode:
By executing the CAL instruction, the program can branch to the zero-page
subroutine area, which is located at $0000–$003F. When the CAL instruction is executed, 6-bit immediate
data is placed in the lower six bits of the program counter (PC
5
to PC
0
) and 0s are placed in the higher eight
bits (PC
13
to PC
6
).
Table Data Addressing Mode:
By executing the TBR instruction, the program can branch to the address
determined by the contents of the 4-bit immediate data, accumulator, and B register.
P Instruction:
ROM data addressed by table data addressing can be referenced by the P instruction (figure
42). When bit 8 in the referred ROM data is 1, eight bits of ROM data are written into the accumulator and
B register. When bit 9 is 1, eight bits of ROM data is written into the R1 and R2 port output registers.
When both bits 8 and 9 are 1, ROM data is written into the accumulator and B register, and also to the R1
and R2 port output registers at the same time.
相關(guān)PDF資料
PDF描述
HD40L4818 4-Bit Single-Chip Microcomputer(4位單片微計(jì)算機(jī))
HD404816 4-Bit Single-Chip Microcomputer(4位單片微計(jì)算機(jī))
HD404814FS 16-digit LCD driver
HD4074899 16-digit LCD driver
HD404814H 16-digit LCD driver
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HD40L4818H 制造商:Renesas Electronics Corporation 功能描述:
HD40-M 制造商:Tamura Corporation of America 功能描述:
HD40WS/EHOOD/PLUG 制造商:Lapp 功能描述:HD 40 way side entry assembled plug 制造商:Lapp Group 功能描述:HD 40 way side entry assembled plug
HD-41494-1 功能描述:環(huán)形MIL規(guī)格工具、五金與附件 RoHS:否 制造商:Amphenol Industrial MIL 類型:MIL-DTL-5015 系列:97 產(chǎn)品類型:Dummy Receptacles 用于:97 Series Plugs
HD4-15530/883 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Encoder/Decoder