28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

M•CORE M210 Central Processor Unit (CPU)<br />

Programming Model<br />

6.5 Programming Model<br />

Figure 6-2 shows the M•CORE programming model. The model is<br />

defined differently for supervisor and user privilege modes. By<br />

convention, in both modes R15 serves as the link register for subroutine<br />

calls. R0 is typically used as stack pointer.<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

R0<br />

R1<br />

R2<br />

R3<br />

R4<br />

R5<br />

R6<br />

R7<br />

R8<br />

R9<br />

R10<br />

R11<br />

R12<br />

R13<br />

R14<br />

R15<br />

PC<br />

C<br />

USER PROGRAMMER’S<br />

MODEL<br />

R0<br />

R1<br />

R2<br />

R3<br />

R4<br />

R5<br />

R6<br />

R7<br />

R8<br />

R9<br />

R10<br />

R11<br />

R12<br />

R13<br />

R14<br />

R15<br />

PC<br />

R0’<br />

ALTERNATE FILE<br />

C * BIT 0 OF PSR<br />

SUPERVISOR PROGRAMMER’S<br />

MODEL<br />

Figure 6-2. Programming Model<br />

PSR<br />

VBR<br />

EPSR<br />

FPSR<br />

EPC<br />

FPC<br />

SS0<br />

SS1<br />

SS2<br />

SS3<br />

SS4<br />

GCR<br />

GSR<br />

CR0<br />

CR1<br />

CR2<br />

CR3<br />

CR4<br />

CR5<br />

CR6<br />

CR7<br />

CR8<br />

CR9<br />

CR10<br />

CR11<br />

CR12<br />

The user programming model consists of 16 general-purpose 32-bit<br />

registers (R[15:0]), the 32-bit PC, and the C bit. The C bit is implemented<br />

as bit 0 of the processor status register (PSR) and is the only portion of<br />

the PSR accessible in the user model.<br />

<strong>MMC2107</strong> – Rev. 2.0<br />

Technical Data<br />

MOTOROLA M•CORE M210 Central Processor Unit (CPU) 147<br />

For More Information On This Product,<br />

Go to: www.freescale.com

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

Saved successfully!

Ooh no, something went wrong!