Applications

MSP50C614/MSP50P614 Initialization Codes

6.2.1File init.asm

;****************************************************************

;INIT.ASM

;Copyright: 1998 Texas Instruments, Inc. All rights reserved.

;±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±

;This Initialization Routine has the following Dependent Files.

;These should be ºincludedº once within the MAIN program .ASM file:

;

;IMPORTANT:

;Texas Instruments reserves the right to change this routine at any time

;without notice.

;±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±

;This Initialization Routine performs the following Functions:

;

;1. Disable interrupt.

;2. Zeros all accumulators.

;3. Clears memory

;4. Starts PLL with clock frequency defined by PLLMBITS. Appropriately

;sets the RTO trim bits (for C614 only). Switch to idle mode for 200ms

;for PLL to stabilize.

;5. If DAC interrupt is replaced by Timer 1 interrupt, the period of

;timer 1 is stored in TIM1 register.

;6. Zeros all system registers except R7 (STACK).

;

;Turn off TIMER 2 rather than leave it running.

;Modified to cope with 6 bit trim value. Top 5 bits go to bits

;15±11 in ClkSpdCtrl, LSB of trim goes to bit 9 in ClkSpdCtrl.

;A fairly basic but compact initialization routine for the 614.

;This sets the 614 to run at 8 MHz, 10 bit DAC at 8 kHz.

;

;****************************************************************

C614FLAG

EQU

0

;EQU 1

if MSP50C614 part

RESISTORTRIM

EQU

0x20

;Resistor trim value for MSP50P614 ONLY!

CRO_FLAG

EQU

0

;EQU

0

: for resistor±trimmed osc, RTO

 

 

 

;EQU

1

: for external crystal ref, CRO

PLLMBITS

EQU

0x7C

;For CPU clock of 8MHz

;****************************************************************

;Start off by clearing all the RAM (and tags) and then zero

;every register. The status register (STAT) must be cleared

;immediately upon power up. ;**************************************************************** init614

zac

a0

;clear a0

mov

*0x000,a0

;clear first RAM location

mov

STAT,*0x000

;clear status register

mov

STR,32±2

;set string register to loop 32 times

zacs

a0

;clear all accumulators

out

IFR,a0

;clear pending interrupts

6-5

Page 373
Image 373
Texas Instruments MSP50C614 manual File init.asm

MSP50C614 specifications

The Texas Instruments MSP50C614 is a microcontroller that belongs to the MSP430 family, renowned for its low power consumption and versatile functionality. Primarily designed for embedded applications, this microcontroller is favored in various industries, including consumer electronics, industrial automation, and healthcare devices.

One of the standout features of the MSP50C614 is its ultra-low power technology, which enables it to operate in various power modes. This makes it ideal for battery-powered applications, where energy efficiency is crucial. The MSP430 architecture allows for a flexible power management system, ensuring that energy is conserved while providing robust performance.

The MSP50C614 is equipped with a 16-bit RISC CPU that delivers high performance while maintaining low power usage. With a maximum clock frequency of 16 MHz, it can execute most instructions in a single cycle, resulting in swift operation and responsive performance. This microcontroller also comes with a generous flash memory capacity, allowing developers to store large amounts of code and data conveniently.

In terms of peripherals, the MSP50C614 is highly versatile. It features a range of digital and analog input/output options, including multiple timers, GPIO ports, and various communication interfaces like UART, SPI, and I2C. This extensive set of peripherals allows for seamless integration with other components and simplifies the design of complex systems.

The integrated 12-bit Analog-to-Digital Converter (ADC) stands out as a valuable characteristic of the MSP50C614. This feature enables the microcontroller to convert physical analog signals into digital data, making it particularly useful for sensing applications and real-time monitoring.

Another noteworthy technology employed in the MSP50C614 is its support for low-voltage operations. With a broad supply voltage range, this microcontroller can function efficiently in diverse environments and is suitable for low-power applications, enhancing its practicality.

Moreover, Texas Instruments provides software support in the form of Code Composer Studio and various libraries that make it easier for developers to program and utilize the MSP50C614 effectively.

In summary, the Texas Instruments MSP50C614 microcontroller is a powerful, low-power solution equipped with the features and technologies necessary for efficient operation in a wide array of applications. Its blend of performance, flexibility, and energy efficiency makes it a popular choice among engineers and designers looking to create innovative, sustainable designs in the rapidly evolving tech landscape.