Zurück (C) Christof Ermer, Regensburg
Gästebuch (public. sonst besser Email)


Gratis Counter 12.04.2013

 

MSP430G2231 Ultra-Low-Power MCU


https://www.digikey.com/product-highlights/us/en/texas-instruments-msp430g2231-mcu/2871

FeaturesApplications
  • 16-bit timer_A with two capture/compare registers
  • Universal serial interface (USI) supporting SPI and I²C
  • Brownout detector
  • 10-Bit 200 ksps A/D converter with internal reference, sample-and-hold, and autoscan
  • Serial onboard programming, no external programming voltage needed, and programmable code protection by security fuse
  • Controlled baseline
  • One assembly/test site
  • One fabrication site
  • Extended product life cycle

MSP430G2231 is an ultra-low-power microcontroller featuring different sets of peripherals targeted for various applications.
The architecture combines with five low-power modes, and features a powerful 16-bit RISC CPU, 16-bit registers,
 and constant generators that contribute to maximum code efficiency.
The digitally-controlled oscillator (DCO) allows wake-up from low-power modes to active mode in less than 1 µs




//***************************************************************************************

Programmbeispiel
//  MSP430 Blink the LED Demo - Software Toggle P1.0
//
//  Description; Toggle P1.0 by xor'ing P1.0 inside of a software loop.
//  ACLK = n/a, MCLK = SMCLK = default DCO
//
//                MSP430x5xx
//             -----------------
//         /|\|              XIN|-
//          | |                 |
//          --|RST          XOUT|-
//            |                 |
//            |             P1.0|-->LED
//
//  J. Stevenson
//  Texas Instruments, Inc
//  July 2011
//  Built with Code Composer Studio v5
//***************************************************************************************

#include <msp430.h>               

int main(void) {
    WDTCTL = WDTPW | WDTHOLD;        // Stop watchdog timer
    P1DIR |= 0x01;                    // Set P1.0 to output direction

    for(;;) {
        volatile unsigned int i;    // volatile to prevent optimization

        P1OUT ^= 0x01;                // Toggle P1.0 using exclusive-OR

        i = 10000;                    // SW Delay
        do i--;
        while(i != 0);
    }
   
    return 0;
}