lecNew-22-HWMul

lecNew-22-HWMul - WPI ECE2801 Foundations of Embedded...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
WPI ECE2801 Foundations of Embedded Computer Systems Lecture 22: Hardware Multiplier
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 22 Hardware Multiplier MSP430 has Add, Subtract, Increment, Decrement instructions NO Multiply or divide instructions Multiply uses HW multiplier, which is a memory-mapped peripheral Divide needs to be emulated by SW; possible but expensive.
Background image of page 2
EE2801: Foundations of Embedded Systems Lecture 22 Using the HW Multiplier Memory-mapped peripheral, not part of CPU Access through registers (memory locations): Write the first operand to register one and write the second operand to register two, then the result is magically located in the result registers.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 22 HW Multiplier Registers Address Register Name Operation 0x0130 MPY Unsigned multiply 0x0132 MPYS Signed multiply 0x0134 MAC Unsigned multiply and accumulate 0x0136 MACS Signed multiply and accumulate Address Register Name Operation 0x0138 OP2 Operand 2 Operand One : select the type of operation by loading different OP1 Address Register Name Operation 0x013A RESLO Low word of the result 0x013C RESHI High word of the result, see next page 0x013E SUMEXT Other info of the result Operand Two: loading OP2 activates the multiplier Result: the result is saved in RESLO, RESHI, and SUMEXT
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course ECE 2801 taught by Professor Jarvis during the Spring '08 term at WPI.

Page1 / 10

lecNew-22-HWMul - WPI ECE2801 Foundations of Embedded...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online