21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CPUMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERCentral Processing Unit (CPU)The CPU has a total of 13 registers shown in Figure 1.5.1. Seven of these registers (R0, R1, R2, R3, A0,A1, and FB) come in two sets; therefore, these have two register banks.R1 (Note)b15 b8 b7 b0LHb15 b8 b7 b0HLPCb19b0Program counterR0 (Note) b15b0R2 (Note)DataregistersINTBb19HLb0Interrupt tableregisterb15b0USPb15b0<strong>User</strong> stack pointerR3 (Note) b15b0A0 (Note)ISPb15b0Interrupt stackpointerb15b0A1 (Note) AddressregistersSBb15b0Static baseregisterb15b0FB (Note) Frame baseregistersFLGb15b0Flag register IPLU I O B S Z D CNote: These registers consist of two register banks.Figure 1.5.1. Central processing unit register(1) Data registers (R0, R0H, R0L, R1, R1H, R1L, R2, and R3)Data registers (R0, R1, R2, and R3) are configured with 16 bits, and are used primarily for transfer andarithmetic/logic operations.Registers R0 and R1 each can be used as separate 8-bit data registers, high-order bits as (R0H/R1H),and low-order bits as (R0L/R1L). In some instructions, registers R2 and R0, as well as R3 and R1 canuse as 32-bit data registers (R2R0/R3R1).(2) Address registers (A0 and A1)Address registers (A0 and A1) are configured with 16 bits, and have functions equivalent to those of dataregisters. These registers can also be used for address register indirect addressing and address registerrelative addressing.In some instructions, registers A1 and A0 can be combined for use as a 32-bit address register (A1A0).12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!