1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

msp430x20x3 wdt 07

4 137 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 4
Dung lượng 31,5 KB

Nội dung

//*********************************************************************** ******* // MSP430F20xx Demo - WDT+ periodic reset // // Description; Various reset intervals are configured in watchdog mode // To illustrate the speed of the reset time the LED flashes in accordance // of the selected interval // // ACLK = 32khz, MCLK = SMCLK = default DCO // // MSP430F20xx // // /|\| XIN|// | | | // |RST XOUT|// | | // | P1.0| >LED // // R B Elliott / H Grewal // Texas Instruments Inc // April 2007 // Built with IAR Embedded Workbench Version: 3.42A //*********************************************************************** ******* #include void main(void) { // WDT is clocked by fSMCLK (1MHz) WDTCTL = //WDTCTL //WDTCTL //WDTCTL WDT_MRST_32; = WDT_MRST_8; = WDT_MRST_0_5; = WDT_MRST_0_064; (32KHz) //WDTCTL = WDT_ARST_1000; //WDTCTL = WDT_ARST_250; //WDTCTL = WDT_ARST_16; //WDTCTL = WDT_ARST_1_9; P1DIR |= 0x01; P1OUT ^=0x01; // ~32ms interval (default) // ~8ms // ~0.5ms // ~0.064ms // WDT is clocked by fACLK // // // // 1000ms 250ms 16ms 1.9ms _BIS_SR(LPM0_bits + GIE); // Enter LPM3 w/interrupt } File Name Description msp430x20x2_adc10_01.c ADC10, Sample A0, Set P1.0 if A0 > 0.5*AVcc msp430x20x2_adc10_02.c ADC10, Sample A1, 1.5V Ref, Set P1.0 if A1 > 0.2V msp430x20x2_adc10_03.c ADC10, ADC10, Sample A10 Temp, Set P1.0 if Temp ++ ~2C msp430x20x2_adc10_04.c ADC10, ADC10, Sample A1, Signed, Set P1.0 if A1 > 0.5*AVcc msp430x20x2_adc10_05.c ADC10, ADC10, Sample A11, Lo_Batt, Set P1.0 if AVcc < 2.3V msp430x20x2_adc10_06.c ADC10, ADC10, Output Internal Vref on P1.4 & ADCCLK on P1.3 msp430x20x2_adc10_07.c ADC10, DTC Sample A1 32x, AVcc, Repeat Single, DCO msp430x20x2_adc10_08.c ADC10, ADC10, DTC Sample A1 32x, 1.5V, Repeat Single, DCO msp430x20x2_adc10_09.c ADC10, ADC10, DTC Sample A10 32x, 1.5V, Repeat Single, DCO msp430x20x2_adc10_10.c ADC10, ADC10, DTC Sample A3-01, AVcc, Single Sequence, DCO msp430x20x2_adc10_11.c ADC10, ADC10, Sample A1, 1.5V, TA1 Trig, Set P1.0 if > 0.5V msp430x20x2_adc10_12.c ADC10, Sample A7, 1.5V, TA1 Trig, Ultra-Low Pwr msp430x20x2_adc10_13.c ADC10, DTC Sample A1 32x, AVcc, TA0 Trig, DCO msp430x20x2_adc10_14.c ADC10, DTC Sample A1-0 16x, AVcc, Repeat Seq, DCO msp430x20x2_adc10_16.c ADC10, ADC10, DTC Sample A0 -> TA1, AVcc, DCO msp430x20x2_adc10_temp.c ADC10, Sample A10 Temp and Convert to oC and oF msp430x20x1_ca_01.c Comp_A, Output Reference Voltages on P1.1 msp430x20x1_ca_02.c Comp_A, Detect Threshold, Set P1.0 if P1.1 > 0.25*Vcc msp430x20x1_ca_03.c Comp_A, Simple 2.2V Low Battery Detect msp430x20x3_1.c Software Toggle P1.0 msp430x20x3_1_vlo.c Software Toggle P1.0, MCLK = VLO/8 msp430x20x3_clks.c Basic Clock, Output Buffered SMCLK, ACLK and MCLK/10 msp430x20xx_dco_flashcal.c DCO Calibration Constants Programmer msp430x20x3_flashwrite_01.c Flash In-System Programming, Copy SegC to SegD msp430x20x3_LFxtal_nmi.c LFXT1 Oscillator Fault Detection msp430x20x3_lpm3.c Basic Clock, LPM3 Using WDT ISR, 32kHz ACLK msp430x20x3_lpm3_vlo.c Basic Clock, LPM3 Using WDT ISR, VLO ACLK msp430x20x3_nmi.c Basic Clock, Configure RST/NMI as NMI msp430x20x3_P1_01.c Software Poll P1.4, Set P1.0 if P1.4 = msp430x20x3_P1_02.c Software Port Interrupt Service on P1.4 from LPM4 msp430x20x3_P1_03.c Poll P1 With Software with Internal Pull-up msp430x20x3_P1_04.c P1 Interrupt from LPM4 with Internal Pull-up msp430x20x3_sd16A_01.c P1.0 if > 0.3V msp430x20x3_sd16A_02.c Sensor msp430x20x3_ta_01.c ISR, DCO SMCLK msp430x20x3_ta_02.c DCO SMCLK msp430x20x3_ta_03.c SMCLK msp430x20x3_ta_04.c 32kHz ACLK msp430x20x3_ta_05.c 32kHz ACLK msp430x20x3_ta_06.c ISR, DCO SMCLK msp430x20x3_ta_07.c DCO SMCLK msp430x20x3_ta_08.c 32kHz ACLK msp430x20x3_ta_10.c SMCLK msp430x20x3_ta_11.c 32kHz ACLK msp430x20x3_ta_13.c DCO SMCLK msp430x20x3_ta_14.c 32kHz ACLK msp430x20x3_ta_16.c msp430x20x3_ta_17.c msp430x20x3_ta_19.c SMCLK msp430x20x3_ta_20.c ACLK msp430x20x3_ta_uart2400.c 32kHz ACLK msp430x20x3_usi_01.c Function, DCO SMCLK msp430x20x3_usi_02.c msp430x20x3_usi_03.c msp430x20x3_usi_04.c Registers msp430x20x3_usi_05.c msp430x20x3_usi_06.c msp430x20x3_usi_07.c msp430x20x3_usi_08.c msp430x20x3_usi_09.c msp430x20x3_wdt_01.c ISR, DCO SMCLK msp430x20x3_wdt_02.c ISR, 32kHz ACLK msp430x20x3_wdt_04.c msp430x20x3_wdt_05.c P1.0 SD16A, Sample A1+ Continuously, Set SD16, Using the Integrated Temperature Timer_A, Toggle P1.0, CCR0 Cont Mode Timer_A, Toggle P1.0, CCR0 Up Mode ISR, Timer_A, Toggle P1.0, Overflow ISR, DCO Timer_A, Toggle P1.0, Overflow ISR, Timer_A, Toggle P1.0, CCR0 Up Mode ISR, Timer_A, Toggle P1.0, CCR1 Cont Mode Timer_A, Toggle P1.0-2, Cont Mode ISR, Timer_A, Toggle P1.0-2, Cont Mode ISR, Timer_A, Toggle P1.1/TA0, Up Mode, DCO Timer_A, Toggle P1.1/TA0, Up Mode, Timer_A, Toggle P1.1/TA0, Up/Down Mode, Timer_A, Toggle P1.1/TA0, Up/Down Mode, Timer_A, PWM TA1-2, Up Mode, DCO SMCLK Timer_A, PWM TA1, Up Mode, 32kHz ACLK Timer_A, PWM TA1, Up/Down Mode, DCO Timer_A, PWM TA1, Up/Down Mode, 32kHz Timer_A, Ultra-Low Pwr UART 2400 Echo, USICNT Used as a One-Shot Timer SPI full-Duplex 3-wire Master SPI full-Duplex 3-wire Slave USI SPI Interface with HC165/164 Shift USI SPI Interface to TLC549 8-bit ADC I2C Master Receiver, single byte I2C Master Transmitter, single byte I2C Slave Receiver, single byte I2C Slave Transmitter, single byte WDT, Toggle P1.0, Interval Overflow WDT, Toggle P1.0, Interval Overflow WDT+ Failsafe Clock, DCO SMCLK Reset on Invalid Address fetch, Toggle msp430x20x3_wdt_06.c WDT+ Failsafe Clock, 32kHz ACLK msp430x20x3_dco_calib.c Basic Clock with preloaded DCO calibration constants msp430x20x3_sd16A_03.c The SD16A sample of a single sequence of channels msp430x20x3_usi_10.c I2C Master Receiver Multiple Bytes msp430x20x3_usi_11.c I2C Master Transmitter Multiple Bytes msp430x20x3_usi_12.c I2C Master Transmitter / Receiver, Multiple Bytes (no rpt st) msp430x20x3_usi_13.c I2C Slave Receiver, Multiple Bytes (to be used with usi_11) msp430x20x3_usi_14.c I2C Slave Transmitter, multiple bytes (to be used with usi_10) msp430x20x3_usi_15.c I2C Slave Receiver Universal code (to be used with usi_12) msp430x20x3_usi_16.c I2C Master Transmitter / Reciever, Repeated Start (to be used with usi_15) msp430x20x3_wdt_07.c WDT+ periodic reset ... msp430x20x3_usi_16.c I2C Master Transmitter / Reciever, Repeated Start (to be used with usi_15) msp430x20x3_wdt_07. c WDT+ periodic reset

Ngày đăng: 25/12/2017, 11:46

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w