Texas Instruments MSP50C614 manual STR,N±2

Models: MSP50C614

1 414
Download 414 pages 24.44 Kb
Page 153
Image 153

Special Filter Instructions

theory requires). The second to last RAM location in the circular buffer is tagged using an STAG instruction. Below is an example of how to set up circu- lar buffering with FIR or COR.

When using the FIR or COR instruction with circular buffering, RAM needs to be allocated for the circular buffer and the filter coefficients. Therefore, the filter coefficient RAM locations must be loaded into RAM and the circular buffer must be cleared before the first FIR or COR instruction is executed.

;Set up for FIR filtering (N = 3)

;First clear circular buffer and set tag of second to last

;sample

zac

a0

 

 

mov

r0,circBuff

;point to circular buffer

rpt

N±2

;repeat N times

mov

*r0++,a0

;clear RAM locations in circular

 

 

;

buffer

mov

*r0,a0

;N+1 sample in buffer

mov

r5,2

;now step back one word and set tag

sub

r0,r5

;point r0 back to 2nd to last sample

 

 

;

in buffer

stag

*r0

;set tag

;Second initialize filter coeffs to proper values

;±±±±± NOTE: In this code, N must be less than 33 since

;±±±±± there are only 32 accumulator registers!

mov

STR,N±2

;set string length to N

zacs

a0

;zero out N accumulators

mov

a0,FIR_COEFFS ;point to filter coeffs

movs

a0,*a0

;get N filter coeffs

mov

r0,coeffs

;point to RAM locs. for filter coeffs

movs

*r0,a0

;put filter coeffs into RAM locs.

mov

a0,circBuff

;set up pointer to start of circular

 

 

; buffer

mov

*startOfBuff,a0

; Initialize filterSTAT_tag (THIS IS IMPORTANT!)

rovm

;This line is MANDATORY!

sxm

;Sample values are signed

mov

*filterSTAT_tag,STAT

Three more details in the above example merit an explanation. The first detail is the pointer to the start of the circular buffer (startOfBuff). This keeps track of the location of the newest or current sample in the circular buffer. It moves backwards by one location in the buffer each time the FIR or COR instruction is executed so that the oldest sample in the buffer is overwritten with the next sample. This backwards movement is also circular. For example, sup- pose that startOfBuff points to the first RAM location of the circular buffer.

Assembly Language Instructions

4-61

Page 153
Image 153
Texas Instruments MSP50C614 manual STR,N±2

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.