參數(shù)資料
型號: HD40C4081
廠商: Hitachi,Ltd.
英文描述: Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
中文描述: 低電壓如同在微機(jī)芯片的A / D轉(zhuǎn)換器(帶片上的A / D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
文件頁數(shù): 125/162頁
文件大?。?/td> 482K
代理商: HD40C4081
HD404374/HD404384/HD404389/HD404082/HD404084 Series
125
ROM Addressing Modes and the P Instruction
The MCU has four ROM addressing modes, as shown in figure 76 and described below.
Direct Addressing Mode:
A program can branch to any address in the ROM memory space by executing
the JMPL, BRL, or CALL instruction. Each of these instructions replaces the 14 program counter bits
(PC
13
–PC
0
) with 14-bit immediate data.
Current Page Addressing Mode:
The MCU has 64 pages of ROM with 256 words per page. A program
can branch to any address in the current page by executing the BR instruction. This instruction replaces the
eight low-order bits of the program counter (PC
7
–PC
0
) with eight-bit immediate data. If the BR instruction
is on a page boundary (address 256n + 255), executing that instruction transfers the PC contents to the next
physical page, as shown in figure 78. This means that the execution of the BR instruction on a page
boundary will make the program branch to the next page.
Note that the HMCS400-series cross assembler has an automatic paging feature for ROM pages.
Zero-Page Addressing Mode:
A program can branch to the zero-page subroutine area located at $0000–
$003F by executing the CAL instruction. When the CAL instruction is executed, 6 bits of immediate data
are placed in the six low-order bits of the program counter (PC
5
–PC
0
), and 0s are placed in the eight high-
order bits (PC
13
–PC
6
).
Table Data Addressing Mode:
A program can branch to an address determined by the contents of four-bit
immediate data, the accumulator, and the B register by executing the TBR instruction.
P Instruction:
ROM data addressed in table data addressing mode can be referenced with the P instruction
as shown in figure 77. If bit 8 of the ROM data is 1, eight bits of ROM data are written to the accumulator
and the B register. If bit 9 is 1, eight bits of ROM data are written to the R1 and R2 port output registers. If
both bits 8 and 9 are 1, ROM data is written to the accumulator and the B register, and also to the R1 and
R2 port output registers at the same time.
The P instruction has no effect on the program counter.
Branch Destination of BR Instruction on Page Boundary:
If a BR instruction is located on a page
boundary (256n + 255), because of the hardware architecture the program counter contents will shift to the
next page when that instruction is executed. When using a BR instruction on a page boundary, therefore,
the branch destination must be set within the next page (see figure 78).
The HMCS400-series cross assembler has an automatic paging feature for ROM pages, regardless of the
model.
相關(guān)PDF資料
PDF描述
HD40A4372 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
HD40A4374 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
HD40A4382 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
HD40A4384 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
HD40A4388 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計(jì)算機(jī))
相關(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