Central processing unit(MSP430 CPU), college study notes - Central processing unit, Study notes of Computer Architecture and Organization

Online Study Notes. The RISC type architecture of the CPU is based on a short instruction set (27 instructions), interconnected by a 3-stage instruction pipeline for instruction decoding. The CPU has a 16-bit ALU, four dedicated registers and twelve working registers, which makes the MSP430 a high performance microcontroller suitable for low power applications. Central Processing Unit (MSP430 CPU), Connexions Web site. http://cnx.org/content/m23497/1.1/, May 19, 2009.

Typology: Study notes

2011/2012

Uploaded on 10/15/2012

presman
presman šŸ‡ŗšŸ‡ø

4.3

(24)

268 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Connexions module: m23497 1
Central Processing Unit (MSP430
CPU)
āˆ—
Pedro Dinis
António Espírito Santo
Bruno Ribeiro
This work is produced by The Connexions Project and licensed under the
Creative Commons Attribution License
†
1 Central Processing Unit (MSP430 CPU)
The RISC type architecture of the CPU is based on a short instruction set (27 instructions), interconnected
by a 3-stage instruction pipeline for instruction decoding. The CPU has a 16-bit ALU, four dedicated
registers and twelve working registers, which makes the MSP430 a high performance microcontroller suitable
for low power applications. The addition of twelve working general purpose registers saves CPU cycles by
allowing the storage of frequently used values and variables instead of using RAM.
The orthogonal instruction set allows the use of any addressing mode for any instruction, which makes
programming clear and consistent, with few exceptions, increasing the compiler eī˜žciency for high-level
languages such as C.
āˆ—
Version 1.1: May 19, 2009 12:22 pm GMT-5
†
http://creativecommons.org/licenses/by/3.0/
http://cnx.org/content/m23497/1.1/
pf3
pf4
pf5

Partial preview of the text

Download Central processing unit(MSP430 CPU), college study notes - Central processing unit and more Study notes Computer Architecture and Organization in PDF only on Docsity!

Central Processing Unit (MSP

CPU)

Pedro Dinis

António Espírito Santo

Bruno Ribeiro

This work is produced by The Connexions Project and licensed under the Creative Commons Attribution License †

1 Central Processing Unit (MSP430 CPU)

The RISC type architecture of the CPU is based on a short instruction set (27 instructions), interconnected by a 3-stage instruction pipeline for instruction decoding. The CPU has a 16-bit ALU, four dedicated registers and twelve working registers, which makes the MSP430 a high performance microcontroller suitable for low power applications. The addition of twelve working general purpose registers saves CPU cycles by allowing the storage of frequently used values and variables instead of using RAM. The orthogonal instruction set allows the use of any addressing mode for any instruction, which makes programming clear and consistent, with few exceptions, increasing the compiler eciency for high-level languages such as C.

āˆ—Version 1.1: May 19, 2009 12:22 pm GMT- †http://creativecommons.org/licenses/by/3.0/

MSP430 CPU block diagram.

Figure 1

http://cnx.org/content/m23497/1.1/

7 SCG1 System clock generator 0.SCG = 1 ⇒ DCO generator is turned o  if not used for MCLK or SM- CLK. 6 SCG0 System clock generator 1.SCG = 1 ⇒ FLL+ loop control is turned o. 5 OSCOFF Oscillator O.OSCOFF = 1 ⇒ turns o LFXT1 when it is not used for MCLK or SMCLK. 4 CPUOFF CPU o.CPUOFF = 1 ⇒ disable CPU core. 3 GIE General interrupt enable.GIE = 1 ⇒ enables maskable interrupts. 2 N Negative ag.N = 1 ⇒ result of a byte or word operation is nega- tive. 1 Z Zero ag.Z = 1 ⇒ result of a byte or word operation is 0. 0 C Carry ag.C = 1 ⇒ result of a byte or word operation produced a carry.

Table 2

R2/R3: Constant Generator Registers (CG1/CG2) Depending of the source-register addressing modes (As) value, six commonly used constants can be generated without a code word or code memory access to retrieve them. This is a very powerful feature, which allows the implementation of emulated instructions, for example, instead of implementing a core instruction for an increment, the constant generator is used.

Register As Constant Remarks R2 00 - Register mode R2 01 (0) Absolute mode R2 10 00004h +4, bit processing R2 11 00008h +8, bit processing R3 00 00000h 0, word processing R3 01 00001h + R3 10 00002h +2, bit processing R3 11 0FFFFh -1, word processing

Table 3

1.2.4 R4 - R15: GeneralPurpose Registers

These general-purpose registers are used to store data values, address pointers, or index values and can be accessed with byte or word instructions. Request the MSP430 Teaching ROM Materials here https://www-a.ti.com/apps/dspuniv/teaching_rom_request.asp^1

(^1) https://www-a.ti.com/apps/dspuniv/teaching_rom_request.asp