MSP430F438_439 Mixed Signal Microcontroller

合集下载

msp430f449简介

msp430f449简介
msp430f449简介
1、低工作电压:1.8~3.6V 2、超低功耗: 活动模式:280UA(1MHZ,2.2V) 待机模式 : 1.1UA 掉电模式 :(RAM数据保持)0.1UA 3、有5种节电模式 4、从待机到唤醒的响应时间不超过6us 5、12位A/D转换器 (8通道、带有内部参考源、采样保持) 6、16位精简指令结构(RISC),150ns指令周期 7、带有3个捕获/比较器结构的16位定时器 8、串行通信可软件选择UART/SPI两种模式 9、可在线串行编程,不需要外部编程电压 10、驱动液晶能力为160段 11、FLASH存储器为60KB,RAM为2KB
3、如何选择 XT2CLK作为MCLK: void clk_initial() { do { IFG1&=~OFIFG; //清除振荡器的失效标志 __delay_cycles(200); } while((IFG1&OFIFG)!=0); //如果振荡器的失效标志存在 FLL_CTL1=SELM1; //选择XT2CLK作为MCLK } 4、如何选择 DCOCLK作为MCLK:计算(121+1)*2*32768=7.995MHZ void CLK_initial() { SCFI0|=FN_4; //选择DCO频率调整范围为2.8~26.6MHZ SCFQCTL=249; //倍频倍数,最高位为DCO+调制器的控制位 FLL_CTL0=DCOPLUS+OSCCAP_1; //选择DCO作为MCLK前分频 }
三、基本操作:
1、所有P口都可作为通用IO口使用 2、所有P口都可进行字节操作和位操作 按字节操作: 例 P1DIR=0xff; //将P1口作为输出口 PIOUT=0x20; // P1口输出0x20 P1DIR=0x00; //将P1口作为输入口 data=P1IN //读取P1口外部输入值 按位操作: 例 P1DIR=BIT0; //将P1.0作为输出口 P1OUT|=BIT0; //P1.0输出1 P1OUT&=~BIT0; //P1.0输出0 P1DIR&=~BIT0; //将P1.0口作为输入 data=P1IN&BIT0; //读取P1.0口外部输入值

msp430各功能模块的介绍

msp430各功能模块的介绍

各个时钟信号源介绍如下:1、LFXT1CLK:低频/高频时钟源。

可以外接32768Hz的时钟芯片或频率为450KHz~8MHz的标准警惕或共振器。

2、XT2CLK:高频时钟源。

需要外接两个震荡电容器。

可以外接32768Hz的时钟芯片或频率为450KHz~8MHz的标准警惕或共振器和外部时钟输入。

较常用的晶体是8MHz的。

3、DCOCLK:内部数字可控制的RC振荡器。

MSP430单片机时钟模块提供3个时钟信号以供给片内各部分电路使用,这3个时钟信号分别是:(1)ACLK:辅助时钟信号。

ACLK是从LFXT1CLK信号由1/2/4/8分频器分频后得到的。

由BCSCTL1寄存器设置DIV A相应位来决定分频因子。

ACLK可提供给CPU外围功能模块做时钟信号使用。

(2)MCLK:主时钟信号。

MCLK是由3个时钟源所提供的。

它们分别是:LFXT1CLK、XT2CLK、和DCO时钟源信号。

MCLK主要用于MCU和相关模块做时钟。

同样可设置相关寄存器来决定分频因子及相关设置。

(3)SMCLK:子系统时钟。

SMCLK由2个时钟源信号提供,他们分别是XT2CLK 和DCO。

如果是F11或F11X1系列单片机,则由LFXT1CLK代替XT2CLK。

同样可设置相关寄存器来决定分频因子及相关的设置。

低频振荡器LFXT1:LFXT1支持超低功耗,它在低频模式下使用一个32768Hz的晶体。

不需要任何电容因为在低频模式下内部集成了电容。

低频振荡器也支持高频模式和高速晶体,但连接时每端必须加电容。

电容的大小根据所接晶体频率的高低来选择。

低频振荡器在低频和高频模式下都可以选择从XIN引脚接入一个外部输入时钟信号,但所接频率必须根据所设定的工作模式来选择,并且OSCOFF位必须复位。

高频振荡器LFXT2:LFXT2作为MSP430的第二晶体振荡器。

与低频相比,其功耗更大。

高频晶体真大气外接在XIN2和XOUT2两个引脚,并且必须外接电容。

基于MSP430FG439的心率测量仪设计

基于MSP430FG439的心率测量仪设计
(2)低频特性
人体心电信号的频率比较低,频谱范围为0.05~250Hz。
(3)不稳定性
人体与外界有密切的联系,内部各器官间存在相互影响,所以,无论来自外部或内部的刺激,都会使使人体心电信号发生相应的变化。因此,在对心电信号进行测量、分析和处理时,应该注意到它是随时间变化的信号,应按其频谱特性,选择适当的放大系数和显示记录装置。
1.1.2
通过做该课题可以学习掌握心率测量的原理、方法、实现过程;掌握嵌入式系统的设计调试过程;学会相关EDA软件开发工具、专用集成开发平台的使用;能较全面融合电路、电子技术、信号采集与处理、程序设计等大学四年所学知识。这有助于我电气自动化知识的深入理解、巩固电子学基础,同时能理论联系实际提高自己的动手能力。
用体表电极测量的心电信号幅度值范围为10uV-4mV(典型值1mV),频率范围为0.05Hz-250Hz。不同导联方式会记录到不同的心电图,在波形上也有所不同,但基本上都包括一个P波、一个QRS波群和一个T波,有时候在T波后,还出现一个小的U波。P波代表左右两心房去极化过程的电变化波形,历时0.08-0.11s,波幅不超过0.25mV。QRS波群代表左右两心室去极化过程的电位变化。典型的QRS波群,包括三个紧密相连的电位波动,第一个向下的波为Q波,以后是高而尖峭的向上的R波,最后是一个向下的S波。在不同的导联中,这三个波不一定都出现。正常的QRS波群历时约0.06s-0.10s,代表心室肌兴奋扩散所需的时间,各波波幅在不同导联中变化较大。T波反映心室复极化过程中电位变化,波幅为0.1-0.8mV,历时0.05s-0.25s。对正常人的心电图进行频谱分析,得到QRS波的80Hz-100Hz的谐波分量总和在在幅度上仅仅占R波幅值的3%以下,100Hz以上的谐波分量更微弱。QRS的中心频率在12Hz-18Hz范围内。

msp430f437

msp430f437

D Wake-Up From Standby Mode in Less Than 6 µsD 16-Bit RISC Architecture,125-ns Instruction Cycle Time D 12-Bit A/D Converter With Internal Reference, Sample-and-Hold and Autoscan FeatureD 16-Bit Timer_B With Three † or Seven ‡Capture/Compare-With-Shadow Registers D 16-Bit Timer_A With Three Capture/Compare Registers D On-Chip ComparatorDSerial Communication Interface (USART),Select Asynchronous UART or Synchronous SPI by Software:− Two USARTs (USART0, USART1)†− One USART (USART0)‡D Brownout DetectorD Supply Voltage Supervisor/Monitor With Programmable Level Detection DSerial Onboard Programming,No External Programming Voltage Needed Programmable Code Protection by Security Fuse512B RAM− MSP430F436, MSP430F4361§:24KB+256B Flash Memory,1KB RAM− MSP430F437, MSP430F4371§:32KB+256B Flash Memory,1KB RAM− MSP430F447:32KB+256B Flash Memory,1KB RAM− MSP430F448, MSP430F4481§:48KB+256B Flash Memory,2KB RAM− MSP430F449, MSP430F4491§:60KB+256B Flash Memory,2KB RAMDFor Complete Module Descriptions, See The MSP430x4xx Family User’s Guide ,Literature Number SLAU056†MSP430F43x, and MSP430F43x1 devices ‡MSP430F44x, and MSP430F44x1 devices§The MSP430F43x1 and MSP430F44x1 devices are identical to the MSP430F43x and MSP430F44x devices, respectively − with the exception that the ADC12 module is not implemented.descriptionThe T exas Instruments MSP430 family of ultralow power microcontrollers consists of several devices featuring different sets of peripherals targeted for various applications. The architecture, combined with five low-power modes, is optimized to achieve extended battery life in portable measurement applications. The devices feature 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 6 µs.This integrated circuit can be damaged by ESD. Texas Instruments recommends that all integrated circuits be handled with appropriate precautions. Failure to observe proper handling and installation procedures can cause damage. ESD damage can range from subtle performance degradation to complete device failure. Precision integrated circuits may be more susceptible to damage because very small parametric changes could cause the device not to meet its published specifications. These devices have limited built-in ESD protection.PRODUCTION DATA nformat on s current as of publ cat on date.Products conform to specifications per the terms of Texas Instruments standard warranty. Production processing does not necessarily include testing of all parameters.Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.description (continued)The MSP430x43x(1) and the MSP430x44x(1) series are microcontroller configurations with two built-in 16-bit timers, a fast 12-bit A/D converter (not implemented on the MSP430F43x1 and MSP430F44x1 devices), one or two universal serial synchronous/asynchronous communication interfaces (USART), 48 I/O pins, and a liquid crystal driver (LCD) with up to 160 segments.Typical applications include sensor systems that capture analog signals, convert them to digital values, and process and transmit the data to a host system, or process this data and display it on a LCD panel. The timers make the configurations ideal for industrial control applications such as ripple counters, digital motor control, EE-meters, hand-held meters, etc. The hardware multiplier enhances the performance and offers a broad code and hardware-compatible family solution.AVAILABLE OPTIONS{PACKAGED DEVICES}T A PLASTIC 80-PIN QFP(PN)PLASTIC 100-PIN QFP(PZ)−40°C to 85°CMSP430F435IPNMSP430F436IPNMSP430F437IPNMSP430F4351IPNMSP430F4361IPNMSP430F4371IPNMSP430F435IPZMSP430F436IPZMSP430F437IPZMSP430F4351IPZMSP430F4361IPZMSP430F4371IPZMSP430F447IPZMSP430F448IPZMSP430F449IPZMSP430F4481IPZMSP430F4491IPZ†For the most current package and ordering information, see the Package OptionAddendum at the end of this document, or see the TI web site at .‡Package drawings, thermal data, and symbolization are available at/packaging.DEVELOPMENT TOOL SUPPORTAll MSP430 microcontrollers include an Embedded Emulation Module (EEM) allowing advanced debugging and programming through easy to use development tools. Recommended hardware options include the following:D Debugging and Programming Interface−MSP-FET430UIF (USB)−MSP-FET430PIF (Parallel Port)D Debugging and Programming Interface with Target Board−MSP-FET430U100 (PZ package)D Stand-Alone Target Board−MSP-TS430PZ100 (PZ package)D Production Programmer−MSP-GANG430pin designation, MSP430x4351IPN, MSP430x4361IPN, MSP430x4371IPNP1.7/CA1P2.0/TA2P2.1/TB0P2.2/TB1P2.3/TB2P2.4/UTXD0P2.5/URXD0DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P3.0/STE0/S31P3.1/SIMO0/S30P3.2/SOMI0/S29DV CC1P6.3P6.4P6.5P6.6P6.7/SVSIN ReservedXIN XOUT DV SS DV SS P5.1/S0P5.0/S1P4.7/S2P4.6/S3P4.5/S4P4.4/S5P4.3/S6P4.2/S7P4.1/S8PN PACKAGE (TOP VIEW)T D O /T D I P 6.1P 6.0R S T /N M I T C K T M S P 2.6/C A O U T /S 19S 21S 15S 16S 17P 4.0/S 9X T 2O U T S 22S 23P 3.7/S 24P 3.6/S 25P 1.0/T A 0P 1.1/T A 0/M C L K P 1.2/T A 1P 1.3/T B O U T H /S V S O U TP 3.5/S 26P 3.4/S 27P 1.4/T B C L K /S M C L K P 1.5/T A C L K /A C L K T D I /T C L K X T 2I N P 1.6/C A 0S 10S 20P 3.3/U C L K 0/S 28S 11S 12S 13S 14P 2.7/S 18P 6.2S S 1D V C C A V S SA Vpin designation, MSP430x4351IPZ, MSP430x4361IPZ, MSP430x4371IPZ1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25767778798818283848586878889991929394959697989917574737271706968676665646362616059585756555453525154948474645444342414393837363534333231329282726P1.7/CA1P6.1P6.RST/NMIXT2INXT2OUTP1.3/TBOUTH/SVSOUTP1.4/TBCLK/SMCLKP1.5/TACLK/ACLKP1.6/CAP2.3/TB2S14S15S16S17S18S2S25S26S27S28S29S31P4.7/S34S3PZ PACKAGE(TOP VIEW)P1./TATDI/TCLKTDO/TDIS21SS1DVP6.2P1.2/TA1S24P4.6/S35DV CC1P6.3P6.4P6.5P6.6 P6.7/SVSIN ReservedXINXOUTDV SSDV SSP5.1/S0P5.0/S1S2S3S4S5S6S7S8S9S10S11S12S13P2.4/UTXD0P2.5/URXD0P2.6/CAOUTP2.7P3.0/STE0P3.1/SIMO0P3.2/SOMI0P3.3/UCLK0P3.4P3.5P3.6P3.7P4.0P4.1DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P4.2/S39 S19S22S23S33S32P4.5/S36P4.4/S37P4.3/S38CCAVSSAVTCKTMSP1.1/TA/MCLKP2./TA2P2.1/TBP2.2/TB1MSP430F4351IPZMSP430F4361IPZMSP430F4371IPZpin designation, MSP430x435IPN, MSP430x436IPN, MSP430x437IPNP1.7/CA1P2.0/TA2P2.1/TB0P2.2/TB1P2.3/TB2P2.4/UTXD0P2.5/URXD0DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P3.0/STE0/S31P3.1/SIMO0/S30P3.2/SOMI0/S29DV CC1P6.3/A3P6.4/A4P6.5/A5P6.6/A6P6.7/A7/SVSINVREF+XIN XOUT VeREF+VREF−/VeREF−P5.1/S0P5.0/S1P4.7/S2P4.6/S3P4.5/S4P4.4/S5P4.3/S6P4.2/S7P4.1/S8PN PACKAGE (TOP VIEW)T D O /T D I P 6.1/A 1P 6.0/A 0R S T /N M I T C K T M S P 2.6/C A O U T /S 19S 21S 15S 16S 17P 4.0/S 9X T 2O U T S 22S 23P 3.7/S 24P 3.6/S 25P 1.0/T A 0P 1.1/T A 0/M C L K P 1.2/T A 1P 1.3/T B O U T H /S V S O U TP 3.5/S 26P 3.4/S 27P 1.4/T B C L K /S M C L K P 1.5/T A C L K /A C L K T D I /T C L K X T 2I N P 1.6/C A 0S 10S 20P 3.3/U C L K 0/S 28S 11S 12S 13S 14P 2.7/A D C 12C L K /S 18P 6.2/A 2S S 1D V C C A V S SA Vpin designation, MSP430x435IPZ, MSP430x436IPZ, MSP430x437IPZ1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25767778798818283848586878889991929394959697989917574737271706968676665646362616059585756555453525154948474645444342414393837363534333231329282726P1.7/CA1P6.1/A1P6./ARST/NMIXT2INXT2OUTP1.3/TBOUTH/SVSOUTP1.4/TBCLK/SMCLKP1.5/TACLK/ACLKP1.6/CAP2.3/TB2S14S15S16S17S18S2S25S26S27S28S29S31P4.7/S34S3PZ PACKAGE(TOP VIEW)P1./TATDI/TCLKTDO/TDIS21SS1DVP6.2/A2P1.2/TA1S24P4.6/S35DV CC1P6.3/A3P6.4/A4P6.5/A5P6.6/A6 P6.7/A7/SVSINVREF+XINXOUTVeREF+ VREF−/VeREF−P5.1/S0P5.0/S1S2S3S4S5S6S7S8S9S10S11S12S13P2.4/UTXD0P2.5/URXD0P2.6/CAOUTP2.7/ADC12CLKP3.0/STE0P3.1/SIMO0P3.2/SOMI0P3.3/UCLK0P3.4P3.5P3.6P3.7P4.0P4.1DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P4.2/S39 S19S22S23S33S32P4.5/S36P4.4/S37P4.3/S38CCAVSSAVTCKTMSP1.1/TA/MCLKP2./TA2P2.1/TBP2.2/TB1MSP430F435IPZMSP430F436IPZMSP430F437IPZpin designation, MSP430x4481IPZ, MSP430x4491IPZ1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25767778798818283848586878889991929394959697989917574737271706968676665646362616059585756555453525154948474645444342414393837363534333231329282726P1.7/CA1P6.1P6.RST/NMIXT2INXT2OUTP1.3/TBOUTH/SVSOUTP1.4/TBCLK/SMCLKP1.5/TACLK/ACLKP1.6/CAP2.3/TB2S14S15S16S17S18S2S25S26S27S28S29S31P4.7/S34S3PZ PACKAGE(TOP VIEW)P1./TATDI/TCLKTDO/TDIS21SS1DVP6.2P1.2/TA1S24P4.6/S35DV CC1P6.3P6.4P6.5P6.6 P6.7/SVSIN ReservedXINXOUTDV SSDV SSP5.1/S0P5.0/S1S2S3S4S5S6S7S8S9S10S11S12S13P2.4/UTXD0P2.5/URXD0P2.6/CAOUTP2.7P3.0/STE0P3.1/SIMO0P3.2/SOMI0P3.3/UCLK0P3.4/TB3P3.5/TB4P3.6/TB5P3.7/TB6P4.0/UTXD1P4.1/URXD1DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P4.2/STE1/S39 S19S22S23S33S32P4.5/UCLK1/S36P4.4/SOMI1/S374.3/SIMO1/S38CCAVSSAVTCKTMSP1.1/TA/MCLKP2./TA2P2.1/TBP2.2/TB1MSP430F4481IPZMSP430F4491IPZpin designation, MSP430x447IPZ, MSP430x448IPZ, MSP430x449IPZ1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25767778798818283848586878889991929394959697989917574737271706968676665646362616059585756555453525154948474645444342414393837363534333231329282726P1.7/CA1P6.1/A1P6./ARST/NMIXT2INXT2OUTP1.3/TBOUTH/SVSOUTP1.4/TBCLK/SMCLKP1.5/TACLK/ACLKP1.6/CAP2.3/TB2S14S15S16S17S18S2S25S26S27S28S29S31P4.7/S34S3PZ PACKAGE(TOP VIEW)P1./TATDI/TCLKTDO/TDIS21SS1DVP6.2/A2P1.2/TA1S24P4.6/S35DV CC1P6.3/A3P6.4/A4P6.5/A5P6.6/A6 P6.7/A7/SVSINVREF+XINXOUTVeREF+ VREF−/VeREF−P5.1/S0P5.0/S1S2S3S4S5S6S7S8S9S10S11S12S13P2.4/UTXD0P2.5/URXD0P2.6/CAOUTP2.7/ADC12CLKP3.0/STE0P3.1/SIMO0P3.2/SOMI0P3.3/UCLK0P3.4/TB3P3.5/TB4P3.6/TB5P3.7/TB6P4.0/UTXD1P4.1/URXD1DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P4.2/STE1/S39 S19S22S23S33S32P4.5/UCLK1/S36P4.4/SOMI1/S374.3/SIMO1/S38CCAVSSAVTCKTMSP1.1/TA/MCLKP2./TA2P2.1/TBP2.2/TB1MSP430F447IPZMSP430F448IPZMSP430F449IPZMSP430x43x1 functional block diagramDV CC1/2DV SS1/2AV CC AV SSRST/NMI MSP430x43x functional block diagramDV CC1/2DV SS1/2AV CC AV SSRST/NMIMSP430x44x1 functional block diagramDV CC1/2DV SS1/2AV CCAV SSRST/NMIXT2IN XT2OUTMSP430x44x functional block diagramDV CC1/2DV SS1/2AV CCAV SSRST/NMIXT2IN XT2OUTMSP430x43x1 Terminal FunctionsTERMINALPN PZ I/ONAME NO.I/ONAME NO.DESCRIPTIONDV CC11DV CC11Digital supply voltage, positive terminal.P6.32I/O P6.32I/O General-purpose digital I/O P6.43I/O P6.43I/O General-purpose digital I/O P6.54I/O P6.54I/O General-purpose digital I/O P6.65I/O P6.65I/O General-purpose digital I/OP6.7/SVSIN 6I/O P6.7/SVSIN 6I/O General-purpose digital I/O / input to brownout, supply voltage supervisorReserved 7Reserved 7Reserved, do not connect externallyXIN 8I XIN 8I Input port for crystal oscillator XT1. Standard or watch crystals can be connected.XOUT 9O XOUT 9O Output terminal of crystal oscillator XT1DV SS 10I DV SS 10I Connect to DV SS DV SS 11I DV SS 11I Connect to DV SSP5.1/S012I/O P5.1/S012I/O General-purpose digital I/O / LCD segment output 0P5.0/S113I/O P5.0/S113I/O General-purpose digital I/O / LCD segment output 1P4.7/S214I/O S214O General-purpose digital I/O / LCD segment output 2P4.6/S315I/O S315O General-purpose digital I/O / LCD segment output 3P4.5/S416I/O S416O General-purpose digital I/O / LCD segment output 4P4.4/S517I/O S517O General-purpose digital I/O / LCD segment output 5P4.3/S618I/O S618O General-purpose digital I/O / LCD segment output 6P4.2/S719I/O S719O General-purpose digital I/O / LCD segment output 7P4.1/S820I/O S820O General-purpose digital I/O / LCD segment output 8P4.0/S921I/O S921O General-purpose digital I/O / LCD segment output 9S1022O S1022O LCD segment output 10S1123O S1123O LCD segment output 11S1224O S1224O LCD segment output 12S1325O S1325O LCD segment output 13S1426O S1426O LCD segment output 14S1527O S1527O LCD segment output 15S1628O S1628O LCD segment output 16S1729O S1729O LCD segment output 17P2.7/S1830I/O S1830O General-purpose digital I/O / LCD segment output 18P2.6/CAOUT/S1931I/O S1931O General-purpose digital I/O / Comparator_A output / LCD segment output 19S2032O S2032O LCD segment output 20S2133O S2133O LCD segment output 21S2234O S2234O LCD segment output 22S2335O S2335O LCD segment output 23P3.7/S2436I/O S2436O General-purpose digital I/O / LCD segment output 24P3.6/S2537I/O S2537O General-purpose digital I/O / LCD segment output 25P3.5/S2638I/O S2638O General-purpose digital I/O / LCD segment output 26P3.4/S2739I/O S2739O General-purpose digital I/O / LCD segment output 27MSP430x43x1 Terminal Functions (Continued)TERMINALPN PZ NAME NO.I/O NAMENO.I/O DESCRIPTIONP3.3/UCLK0/S2840I/O S2840O General-purpose digital I/O / ext. clock i/p—USART0/UART or SPI mode, clock o/p—USART0/SPI mode / LCD segment output 28P3.2/SOMI0/S2941I/O S2941O General-purpose digital I/O / slave out/master in of USART0/SPI mode / LCD segment output 29P3.1/SIMO0/S3042I/O S3042O General-purpose digital I/O / slave out/master out of USART0/SPI mode / LCD segment output 30P3.0/STE0/S3143I/OS3143O General-purpose digital I/O / slave transmit enable-USART0/SPI mode / LCD segment output 31S3244O LCD segment output 32S3345O LCD segment output 33P4.7/S3446I/O General-purpose digital I/O / LCD segment output 34P4.6/S3547I/O General-purpose digital I/O / LCD segment output 35P4.5/S3648I/O General-purpose digital I/O / LCD segment output 36P4.4/S3749I/O General-purpose digital I/O / LCD segment output 37P4.3/S3850I/O General-purpose digital I/O / LCD segment output 38P4.2/S3951I/O General-purpose digital I/O / LCD segment output 39COM044O COM052O COM0−3 are used for LCD backplanes.P5.2/COM145I/O P5.2/COM153I/O General-purpose digital I/O / common output, COM0−3 are used for LCD backplanes.P5.3/COM246I/O P5.3/COM254I/O General-purpose digital I/O / common output, COM0−3 are used for LCD backplanes.P5.4/COM347I/O P5.4/COM355I/O General-purpose digital I/O / common output, COM0−3 are used for LCD backplanes.R0348I R0356I Input port of fourth positive (lowest) analog LCD level (V5)P5.5/R1349I/O P5.5/R1357I/O General-purpose digital I/O / input port of third most positive analog LCD level (V4 or V3)P5.6/R2350I/O P5.6/R2358I/O General-purpose digital I/O / input port of second most positive analog LCD level (V2)P5.7/R3351I/OP5.7/R3359I/OGeneral-purpose digital I/O / output port of most positive analog LCD level (V1)DV CC252DV CC260Digital supply voltage, positive terminal.DV SS253DV SS261Digital supply voltage, negative terminal.P4.162I/O General-purpose digital I/O P4.063I/O General-purpose digital I/O P3.764I/O General-purpose digital I/O P3.665I/O General-purpose digital I/O P3.566I/O General-purpose digital I/O P3.467I/O General-purpose digital I/OP3.3/UCLK068I/O General-purpose digital I/O / external clock input—USART0/UART or SPI mode, clock output—USART0/SPI modeP3.2/SOMI069I/O General-purpose digital I/O / slave out/master in of USART0/SPI mode P3.1/SIMO070I/O General-purpose digital I/O / slave in/master out of USART0/SPI mode P3.0/STE071I/O General-purpose digital I/O / slave transmit enable USART0/SPI mode P2.772I/O General-purpose digital I/OP2.6/CAOUT73I/O General-purpose digital I/O / Comparator_A outputP2.5/URXD054I/OP2.5/URXD074I/O General-purpose digital I/O / receive data in—USART0/UART modeMSP430x43x1 Terminal Functions (Continued)TERMINALPN PZ NAME NO.I/O NAME NO.I/O DESCRIPTIONP2.4/UTXD055I/O P2.4/UTXD075I/O General-purpose digital I/O / transmit data out—USART0/UART mode P2.3/TB256I/O P2.3/TB276I/O General-purpose digital I/O / Timer_B3 CCR2.Capture: CCI2A/CCI2B input, compare: Out2 output P2.2/TB157I/O P2.2/TB177I/O General-purpose digital I/O / Timer_B3 CCR1.Capture: CCI1A/CCI1B input, compare: Out1 output P2.1/TB058I/O P2.1/TB078I/O General-purpose digital I/O / Timer_B3 CCR0.Capture: CCI0A/CCI0B input, compare: Out0 output P2.0/TA259I/O P2.0/TA279I/O General-purpose digital I/O / Timer_ACapture: CCI2A input, compare: Out2 output P1.7/CA160I/O P1.7/CA180I/O General-purpose digital I/O / Comparator_A input P1.6/CA061I/O P1.6/CA081I/O General-purpose digital I/O / Comparator_A inputP1.5/TACLK/ACLK 62I/O P1.5/TACLK/ACLK 82I/O General-purpose digital I/O / Timer_A, clock signal TACLK input / ACLK output (divided by 1, 2, 4, or 8)P1.4/TBCLK/SMCLK 63I/O P1.4/TBCLK/SMCLK 83I/O General-purpose digital I/O / input clock TBCLK—Timer_B3 / submain system clock SMCLK outputP1.3/TBOUTH/SVSOUT 64I/O P1.3/TBOUTH/SVSOUT 84I/O General-purpose digital I/O / switch all PWM digital output ports to high impedance—Timer_B3 TB0 to TB2 / SVS: output of SVS comparator P1.2/TA165I/O P1.2/TA185I/O General-purpose digital I/O / Timer_A, Capture: CCI1A input,compare: Out1 outputP1.1/TA0/MCLK 66I/O P1.1/TA0/MCLK 86I/O General-purpose digital I/O / Timer_A. Capture: CCI0B input / MCLK output. Note: TA0 is only an input on this pin / BSL receiveP1.0/TA067I/O P1.0/TA087I/O General-purpose digital I/O / Timer_A. Capture: CCI0A input,compare: Out0 output / BSL transmit XT2OUT 68O XT2OUT 88O Output terminal of crystal oscillator XT2XT2IN 69I XT2IN 89I Input port for crystal oscillator XT2. Only standard crystals can be connected.TDO/TDI 70I/O TDO/TDI 90I/O Test data output port. TDO/TDI data output or programming data input terminalTDI/TCLK 71I TDI/TCLK 91I Test data input or test clock input. The device protection fuse is connected to TDI/TCLK.TMS 72I TMS 92I Test mode select. TMS is used as an input port for device programming and test.TCK 73I TCK 93I Test clock. TCK is the clock input port for device programming and test.RST/NMI 74I RST/NMI 94I General-purpose digital I/O / reset input or nonmaskable interrupt input portP6.075I/O P6.095I/O General-purpose digital I/O P6.176I/O P6.196I/O General-purpose digital I/O P6.277I/OP6.297I/OGeneral-purpose digital I/OAV SS 78AV SS 98Analog supply voltage, negative terminal. Supplies SVS, brownout,oscillator, comparator_A, port 1, and LCD resistive divider circuitry.DV SS179DV SS199Digital supply voltage, negative terminal.AV CC80AV CC100Analog supply voltage, positive terminal. Supplies SVS, brownout,oscillator, comparator_A, port 1, and LCD resistive divider circuitry;must not power up prior to DV CC1/DV CC2.MSP430x43x Terminal FunctionsTERMINALPN PZ I/ONAME NO.I/ONAME NO.DESCRIPTIONDV CC11DV CC11Digital supply voltage, positive terminal.P6.3/A32I/O P6.3/A32I/O General-purpose digital I/O / analog input a3—12-bit ADC P6.4/A43I/O P6.4/A43I/O General-purpose digital I/O / analog input a4—12-bit ADC P6.5/A54I/O P6.5/A54I/O General-purpose digital I/O / analog input a5—12-bit ADC P6.6/A65I/O P6.6/A65I/O General-purpose digital I/O / analog input a6—12-bit ADCP6.7/A7/SVSIN 6I/O P6.7/A7/SVSIN 6I/O General-purpose digital I/O / analog input a7—12-bit ADC, analog /input to brownout, supply voltage supervisorV REF+7O V REF+7O Output of positive terminal of the reference voltage in the ADC XIN 8I XIN 8I Input port for crystal oscillator XT1. Standard or watch crystals can be connected.XOUT 9O XOUT 9O Output terminal of crystal oscillator XT1Ve REF+10I Ve REF+10I Input for an external reference voltage to the ADCV REF−/Ve REF−11I V REF−/Ve REF−11I Negative terminal for the ADC’s reference voltage for both sources, the internal reference voltage, or an external applied reference voltage.P5.1/S012I/O P5.1/S012I/O General-purpose digital I/O / LCD segment output 0P5.0/S113I/O P5.0/S113I/O General-purpose digital I/O / LCD segment output 1P4.7/S214I/O S214O General-purpose digital I/O / LCD segment output 2P4.6/S315I/O S315O General-purpose digital I/O / LCD segment output 3P4.5/S416I/O S416O General-purpose digital I/O / LCD segment output 4P4.4/S517I/O S517O General-purpose digital I/O / LCD segment output 5P4.3/S618I/O S618O General-purpose digital I/O / LCD segment output 6P4.2/S719I/O S719O General-purpose digital I/O / LCD segment output 7P4.1/S820I/O S820O General-purpose digital I/O / LCD segment output 8P4.0/S921I/O S921O General-purpose digital I/O / LCD segment output 9S1022O S1022O LCD segment output 10S1123O S1123O LCD segment output 11S1224O S1224O LCD segment output 12S1325O S1325O LCD segment output 13S1426O S1426O LCD segment output 14S1527O S1527O LCD segment output 15S1628O S1628O LCD segment output 16S1729O S1729O LCD segment output 17P2.7/ADC12CLK/S1830I/O S1830O General-purpose digital I/O / conversion clock—12-bit AD C / LCD segment output 18P2.6/CAOUT/S1931I/O S1931O General-purpose digital I/O / Comparator_A output / LCD segment output 19S2032O S2032O LCD segment output 20S2133O S2133O LCD segment output 21S2234O S2234O LCD segment output 22S2335O S2335O LCD segment output 23P3.7/S2436I/O S2436O General-purpose digital I/O / LCD segment output 24P3.6/S2537I/O S2537O General-purpose digital I/O / LCD segment output 25P3.5/S2638I/O S2638O General-purpose digital I/O / LCD segment output 26P3.4/S2739I/OS2739OGeneral-purpose digital I/O / LCD segment output 27。

msp430f449简介

msp430f449简介

6、中断应用程序举例(外部中断):
void interrupt_initial() { P1DIR&=~BIT7; //P1.7为输入 P1IE|=0x80; //P1.7中断允许 P1IES|=0x00; //P1.7上升沿触发 P1IFG=0; //P1.7中断标志清除,对于多源中断必须先清中断标志再打开中断 _EINT(); //总中断允许 } #pragma vector=PORT1_VECTOR __interrupt void Port_1(void) { P1IFG&=~BIT7; //P1.7中断标志清除 /*在此写中断服务子程序*/ }
关闭局部中断一般是给想关的特殊功能寄存器相关位置0 同样以P1口外部中断为例: 关闭局部中断: P1IE&=~BIT0;//关闭P1.0外部中断 2、打开、关闭全局中断: _EINT();//打开总中断,相当于51的EA=1; _DINT();//关闭总中断,相当于51的EA=0; 3、各中断向量Interrupt Vectors:
四、MCLK应用举例:
1、在默认情况下,MCLK来自于DCOCLK其频率为1.048576MHZ 其计算方法:MCLK=(31+1)*32768 2、如何选择ACLK作为MCLK: void clk_initial() { do { IFG1&=~OFIFG; //清除振荡器的失效标志 __delay_cycles(200); } while((IFG1&OFIFG)!=0); //如果振荡器的失效标志存在 FLL_CTL1=SELM1+SELM0; //选择ACLK作为MCLK }
msp430f449简介
1、低工作电压:1.8~3.6V 2、超低功耗: 活动模式:280UA(1MHZ,2.2V) 待机模式 : 1.1UA 掉电模式 :(RAM数据保持)0.1UA 3、有5种节电模式 4、从待机到唤醒的响应时间不超过6us 5、12位A/D转换器 (8通道、带有内部参考源、采样保持) 6、16位精简指令结构(RISC),150ns指令周期 7、带有3个捕获/比较器结构的16位定时器 8、串行通信可软件选择UART/SPI两种模式 9、可在线串行编程,不需要外部编程电压 10、驱动液晶能力为160段 11、FLASH存储器为60KB,RAM为2KB

毕业设计 MSP430混合信号微控制器 外文文献及翻译

毕业设计 MSP430混合信号微控制器  外文文献及翻译

本科毕业设计外文文献及译文文献、资料题目:MPS430 Mixed Signal Microcontroller 文献、资料来源:期刊(著作、网络等)文献、资料发表(出版)日期:2005.3.25学院:信息与电气工程学院专业:通信工程班级:通信姓名:学号:2006081060指导教师:翻译日期:2010.4.8外文文献:MSP430 MIXED SIGNAL MICROCONTROLLER _ Low Supply-Voltage Range, 1.8 V . . . 3.6 V_ Ultralow-Power Consumption:− Active Mode: 330μA at 1 MHz, 2.2 V− Standby Mode: 1.1μA− Off Mode (RAM Retention): 0.1μA_ Five Power-Saving Modes_ Wake-Up From Standby Mode in less than 6μs_ 16-Bit RISC Architecture, 125-ns Instruction Cycle Time_ Three-Channel Internal DMA_ 12-Bit A/D Converter With InternalReference, Sample-and-Hold and Autoscan Feature_ Dual 12-Bit D/A Converters With Synchronization_ 16-Bit Timer_A With Three Capture/Compare Registers_ 16-Bit Timer_B With Three or Seven Capture/Compare-With-Shadow Registers _ On-Chip Comparator_ Serial Communication Interface (USART0), Functions as Asynchronous UART or Synchronous SPI or I2CTM Interface_ Serial Communication Interface (USART1), Functions as Asynchronous UART or Synchronous SPI Interface_ Supply Voltage Supervisor/Monitor With Programmable Level Detection_ Brownout Detector_ Bootstrap Loader_ Serial Onboard Programming, No External Programming Voltage Needed Programmable Code Protection by SecurityFuse_ Family Members Include:− MSP430F155:16KB+256B Flash Memory512B RAM− MSP430F156:24KB+256B Flash Memory1KB RAM− MSP430F157:32KB+256B Flash Memory,1KB RAM− MSP430F167:32KB+256B Flash Memory,1KB RAM− MSP430F168:48KB+256B Flash Memory,2KB RAM− MSP430F169:60KB+256B Flash Memory,2KB RAM− MSP430F1610:32KB+256B Flash Memory5KB RAM− MSP430F1611:48KB+256B Flash Memory10KB RAM− MSP430F1612:55KB+256B Flash Memory5KB RAM_ Available in 64-Pin Quad Flat Pack (QFP) and 64-pin QFN (see Available Options) _ For Complete Module Descriptions, See the MSP430x1xx Family User’s Guide, Literature Number SLAU049descriptionThe Texas Instruments MSP430 family of ultralow power microcontrollers consist of several devices featuring different sets of peripherals targeted for various applications. The architecture, combined with five low power modes is optimized to achieve extended battery life in portable measurement applications. The device features a powerful 16-bit RISC CPU, 16-bit registers, and constant generators that attribute to maximum code efficiency.The digitally controlled oscillator (DCO) allows wake-up from low-power modes to active mode in less than 6μs.The MSP430x15x/16x/161x series are microcontroller configurations with two built-in 16-bit timers, a fast 12-bitA/D converter, dual 12-bit D/A converter, one or two universal serial synchronous/asynchronous communication interfaces (USART), I2C, DMA, and 48 I/O pins. In addition, the MSP430x161x series offersextended RAM addressing for memory-intensive applications and large C-stack requirements. Typical applications include sensor systems, industrial control applications, hand-held meters, etc.MSP430F169 MIXED SIGNAL MICROCONTROLLERshort-form descriptionCPUThe MSP430 CPU has a 16-bit RISC architecture that is highly transparent to the application. All operations, other than program-flow instructions, are performed as register operations in conjunction with seven addressing modes for source operand and four addressing modes for destination operand.The CPU is integrated with 16 registers that provide reduced instruction execution time. The register-to-register operation execution time is one cycle of the CPU clock.Four of the registers, R0 to R3, are dedicated as program counter, stack pointer, status register, and constant generator respectively. The remaining registers are general-purpose registers. Peripherals are connected to the CPU using data, address, and control buses, and can be handled with all instructions.instruction setThe instruction set consists of 51 instructions with three formats and seven address modes. Each instruction can operate on word and byte data.operating modesThe MSP430 has one active mode and five software selectable low-power modes of operation. An interrupt event can wake up the device from any of the five low-power modes, service the request and restore back to the low-power mode on return from the interrupt program.The following six operating modes can be configured by software:_ Active mode AM;− All clocks are active_ Low-power mode 0 (LPM0);− CPU is disabledACLK and SMCLK remain active. MCLK is disabled_ Low-power mode 1 (LPM1);− CPU is disabledACLK and SMCLK remain active. MCLK is disabledDCO’s dc-generator is disabled if DCO not used in active mode_ Low-power mode 2 (LPM2);− CPU is disabledMCLK and SMCLK are disabledDCO’s dc-generator remains enabledACLK remains active_ Low-power mode 3 (LPM3);− CPU is disabledMCLK and SMCLK are disabledDCO’s dc-generator is disabledACLK remains active_ Low-power mode 4 (LPM4);− CPU is disabledACLK is disabledMCLK and SMCLK are disabledDCO’s dc-generator is disabledCrystal oscillator is stoppedinterrupt vector addressesThe interrupt vectors and the power-up starting address are located in the address range 0FFFFh − 0FFE0h.The vector contains the 16-bit address of the appropriate interrupt-handler instruction sequence special function registersMost interrupt and module-enable bits are collected in the lowest address space. Special-function register bits not allocated to a functional purpose are not physically present in the device. This arrangement provides simple software access.interrupt enable 1 and 2WDTIE: Watchdog timer interrupt enable. Inactive if watchdog mode is selected.Active if watchdog timer is configured as general-purpose timer.OFIE: Oscillator-fault-interrupt enableNMIIE: Nonmaskable-interrupt enableACCVIE: Flash memory access violation interrupt enableURXIE0: USART0: UART and SPI receive-interrupt enableUTXIE0: USART0: UART and SPI transmit-interrupt enableURXIE1 : USART1: UART and SPI receive-interrupt enableUTXIE1 : USART1: UART and SPI transmit-interrupt enableURXIE1 and UTXIE1 are not present in MSP430x15x devices.interrupt flag register 1 and 2WDTIFG: Set on watchdog-timer overflow (in watchdog mode) or security key violation Reset on VCC power-on, or a reset condition at the RST/NMI pin in reset mode OFIFG: Flag set on oscillator faultNMIIFG: Set via RST/NMI pinURXIFG0: USART0: UART and SPI receive flagUTXIFG0: USART0: UART and SPI transmit flagURXIFG1 : USART1: UART and SPI receive flagUTXIFG1 : USART1: UART and SPI transmit flagmodule enable registers 1 and 2URXE0: USART0: UART mode receive enableUTXE0: USART0: UART mode transmit enableUSPIE0: USART0: SPI mode transmit and receive enableURXE1 : USART1: UART mode receive enableUTXE1 : USART1: UART mode transmit enableUSPIE1 : USART1: SPI mode transmit and receive enableURXE1, UTXE1, and USPIE1 are not present in MSP430x15x devices.flash memoryThe flash memory can be programmed via the JTAG port, the bootstrap loader, or in-system by the CPU. The CPU can perform single-byte and single-word writes to the flash memory. Features of the flash memory include:_ Flash memory has n segments of main memory and two segments of information memory (A and B) of 128 bytes each. Each segment in main memory is 512 bytes in size._ Segments 0 to n may be erased in one step, or each segment may be individually erased._ Segments A and B can be erased individually, or as a group with segments 0−n. Segments A and B are also called information memory._ New devices may have some bytes programmed in the information memory (needed for test during manufacturing). The user should perform an erase of the information memory prior to the first use.peripheralsPeripherals are connected to the CPU through data, address, and control busses and can be handled using all instructions. For complete module descriptions, see the MSP430x1xx Family Use r’s Guide, literature number SLAU049.DMA controllerThe DMA controller allows movement of data from one memory address to another without CPU intervention.For example, the DMA controller can be used to move data from the ADC12 conversion memory to RAM. Using the DMA controller can increase the throughput of peripheral modules. The DMA controller reduces system power consumption by allowing the CPU to remain in sleep mode without having to awaken to move data to or from a peripheral.oscillator and system clockThe clock system in the MSP430x15x and MSP430x16x(x) family of devices is supported by the basic clock module that includes support for a 32768-Hz watch crystal oscillator, an internal digitally-controlled oscillator (DCO) and a high frequency crystal oscillator. The basic clock module is designed to meet the requirements of both low system cost and low-power consumption. The internal DCO provides a fast turn-on clock source and stabilizes in less than 6 s. The basic clock module provides the following clock signals:_ Auxiliary clock (ACLK), sourced from a 32768-Hz watch crystal or a high frequency crystal. _ Main clock (MCLK), the system clock used by the CPU._ Sub-Main clock (SMCLK), the sub-system clock used by the peripheral modules. brownout, supply voltage supervisorThe brownout circuit is implemented to provide the proper internal reset signal to the device during power on and power off. The supply voltage supervisor (SVS) circuitry detects if the supply voltage drops below a user selectable level and supports both supply voltage supervision (the device is automatically reset) and supply voltage monitoring (SVM, the device is not automatically reset). The CPU begins code execution after the brownout circuit releases the device reset. However, VCC may not have ramped to VCC(min) at that time. The user must insure the default DCO settings are not changed until VCC reaches VCC(min). If desired, the SVS circuit can be used to determine when VCC reaches VCC(min).digital I/OThere are six 8-bit I/O ports implemented—ports P1 through P6:_ All individual I/O bits are independently programmable._ Any combination of input, output, and interrupt conditions is possible._ Edge-selectable interrupt input capability for all the eight bits of ports P1 and P2._ Read/write access to port-control registers is supported by all instructions.watchdog timerThe primary function of the watchdog timer (WDT) module is to perform a controlled system restart after a software problem occurs. If the selected time interval expires, a system reset is generated. If the watchdog function is not needed in an application, the module can be configured as an interval timer and can generate interrupts at selected time intervals.hardware multiplier (MSP430x16x/161x Only)The multiplication operation is supported by a dedicated peripheral module. The module performs 16_16, 16_8, 8_16, and 8_8 bit operations. The module is capable of supporting signed and unsigned multiplication as well as signed and unsigned multiply and accumulate operations. The result of an operation can be accessed immediately after the operands have been loaded into the peripheral registers. No additional clock cycles are required.peripheralsPeripherals are connected to the CPU through data, address, and control busses and can be handled using all instructions. For complete module descriptions, see the MSP430x1xx Family User’s Guide, literature number SLAU049.DMA controllerThe DMA controller allows movement of data from one memory address to another without CPU intervention.For example, the DMA controller can be used to move data from the ADC12 conversion memory to RAM. Using the DMA controller can increase the throughput of peripheral modules. The DMA controller reduces system power consumption by allowing the CPU to remain in sleep mode without having to awaken to move data to or from a peripheral.oscillator and system clockThe clock system in the MSP430x15x and MSP430x16x(x) family of devices is supported by the basic clock module that includes support for a 32768-Hz watch crystal oscillator, an internal digitally-controlled oscillator (DCO) and a high frequency crystal oscillator. The basic clock module is designed to meet the requirements of both low system cost and low-power consumption. The internal DCO provides a fast turn-on clock source and stabilizes in less than6μs. The basic clock module provides the following clock signals:_ Auxiliary clock (ACLK), sourced from a 32768-Hz watch crystal or a high frequency crystal. _ Main clock (MCLK), the system clock used by the CPU._ Sub-Main clock (SMCLK), the sub-system clock used by the peripheral modules. brownout, supply voltage supervisorThe brownout circuit is implemented to provide the proper internal reset signal to the device during power on and power off. The supply voltage supervisor (SVS) circuitry detects if the supply voltage drops below a user selectable level and supports both supply voltage supervision(the device is automatically reset) and supply voltage monitoring (SVM, the device is not automatically reset).The CPU begins code execution after the brownout circuit releases the device reset. However, VCC may not have ramped to VCC(min) at that time. The user must insure the default DCO settings are not changed until VCC reaches VCC(min). If desired, the SVS circuit can be used to determine when VCC reaches VCC(min).digital I/OThere are six 8-bit I/O ports implemented—ports P1 through P6:_ All individual I/O bits are independently programmable._ Any combination of input, output, and interrupt conditions is possible._ Edge-selectable interrupt input capability for all the eight bits of ports P1 and P2._ Read/write access to port-control registers is supported by all instructions.watchdog timerThe primary function of the watchdog timer (WDT) module is to perform a controlled system restart after a software problem occurs. If the selected time interval expires, a system reset is generated. If the watchdog function is not needed in an application, the module can be configured as an interval timer and can generate interrupts at selected time intervals.hardware multiplier (MSP430x16x/161x Only)The multiplication operation is supported by a dedicated peripheral module. The module performs 16_16, 16_8, 8_16, and 8_8 bit operations. The module is capable of supporting signed and unsigned multiplication as well as signed and unsigned multiply and accumulate operations. The result of an operation can be accessed immediately after the operands have been loaded into the peripheral registers. No additional clock cycles arerequired.USART0The MSP430x15x and the MSP430x16x(x) have one hardware universalsynchronous/asynchronous receive transmit (USART0) peripheral module that is used for serial data communication. The USART supports synchronous SPI (3 or 4 pin), asynchronous UART and I2C communication protocols using double-buffered transmit and receive channels.The I2C support is compliant with the Philips I2C specification version 2.1 and supports standardmode (up to 100 kbps) and fast mode (up to 400 kbps). In addition, 7-bit and 10-bit device addressing modes are supported, as well as master and slave modes. The USART0 also supports 16-bit-wide I2C data transfers and has two dedicated DMA channels to maximize bus throughput. Extensive interrupt capability is also given in the I2C mode.USART1 (MSP430x16x/161x Only)The MSP430x16x(x) devices have a second hardware universal synchronous/asynchronous receive transmit (USART1) peripheral module that is used for serial data communication. The USART supports synchronous SPI (3 or 4 pin) and asynchronous UART communication protocols, using double-buffered transmit and receive channels. With the exception of I2C support, operation of USART1 is identical to USART0.timer_A3Timer_A3 is a 16-bit timer/counter with three capture/compare registers. Timer_A3 can support multiple capture/compares, PWM outputs, and interval timing. Timer_A3 also has extensive interrupt capabilities.Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers.timer_B3 (MSP430x15x Only)Timer_B3 is a 16-bit timer/counter with three capture/compare registers. Timer_B3 can support multiple capture/compares, PWM outputs, and interval timing. Timer_B3 also has extensive interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers.timer_B7 (MSP430x16x/161x Only)Timer_B7 is a 16-bit timer/counter with seven capture/compare registers. Timer_B7 can support multiple capture/compares, PWM outputs, and interval timing. Timer_B7 also has extensive interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers.comparator_AThe primary function of the comparator_A module is to support precision slopeanalog−to−digital conversions, battery−voltage supervision, and monitoring of external analog signals.ADC12The ADC12 module supports fast, 12-bit analog-to-digital conversions. The module implements a 12-bit SAR core, sample select control, reference generator and a 16 wordconversion-and-control buffer. The conversion-and-control buffer allows up to 16 independent ADC samples to be converted and stored without any CPU intervention.DAC12The DAC12 module is a 12-bit, R-ladder, voltage output DAC. The DAC12 may be used in 8- or 12-bit mode, and may be used in conjunction with the DMA controller. When multiple DAC12 modules are present, they may be grouped together for synchronous operation.中文译文:MSP430混合信号微控制器●低供电电压范围:1.8V…3.6V●超低功耗:-活动模式:1MHz,2.2V 时为280μA-等待模式:1.6μA-关闭模式(RAM 保持):0.1μA●五种省电模式●6μS 内从等待状态唤醒●16 位精简指令结构,125 纳秒指令时间周期●三个内部DMA 通道●具有内部参考电平、采样保持和自动扫描特性的12 位A/D 转换器●同步的双12 位D/A 转换器●带有三个捕捉/比较寄存器的16 位定时器A●带有三个或七个捕捉/比较影子寄存器的16 位定时器B●片内集成比较器●串行通讯接口(USART1),具有异步UART 或者同步SPI 接口的功能●串行通讯接口(USART0),具有异步UART 或者同步SPI 或者I2C 接口●具有可编程电平检测的供电电压管理器/监视器●欠电压检测器●串行在线编程,无需外部编程电压,可编程的安全熔丝代码保护●Bootstrap Loader●器件系列包括:-MSP430F155:16KB+256B flash 存储器512B RAM-MSP430F156:24KB+256B flash 存储器1KB RAM-MSP430F157:32KB+256B flash 存储器1KB RAM-MSP430F167:32KB+256B flash 存储器1KB RAM-MSP430F168:48KB+256B flash 存储器2KB RAM-MSP430F169:60KB+256B flash 存储器2KB RAM-MSP430F1610:32KB+256B flash 存储器5KB RAM-MSP430F161148KB+256B flash 存储器;10KB RAM●64 引脚Quad Flat Pack(QFP)封装●要获得完整的模块描述参见MSP430x1xx 系列用户手册,文献号SLAU049说明德州仪器公司的MSP430 系列超低功耗微控制器,由针对各种不同应用目标具有不同外围设备的芯片系列组成。

MSP430FG439

MSP430FG439
MICROCONTROLLER
SLAS380A − APRIL 2004 − REVISED SEPTEMBER 2004
D Low Supply-Voltage Range, 1.8 V to 3.6 V D Ultralow-Power Consumption:
D D D D D D D D D D D
− Active Mode: 300 µA at 1 MHz, 2.2 V − Standby Mode: 1.1 µA − Off Mode (RAM Retention): 0.1 µA Five Power Saving Modes Wake-Up From Standby Mode in less than 6 µs 16-Bit RISC Architecture, 125-ns Instruction Cycle Time Single-Channel Internal DMA 12-Bit A/D Converter With Internal Reference, Sample-and-Hold and Autoscan Feature Three Configurable Operational Amplifiers Dual 12-Bit D/A Converters With Synchronization 16-Bit Timer_A With Three Capture/Compare Registers 16-Bit Timer_B With Three Capture/Compare-With-Shadow Registers On-Chip Comparator Serial Communication Interface (USART), Select Asynchronous UART or Synchronous SPI by Software

SiC431, SiC437, SiC438 Reference Board User’s Manu

SiC431, SiC437, SiC438 Reference Board User’s Manu

Reference Board User’s ManualHigh Voltage Synchronous Buck Regulators: 3 V to 24 VSiC431 (24 A), SiC437 (12 A), SiC438 (8 A)DESCRIPTIONThe SiC431/437/438 is family of synchronous buck regulators with integrated high side and low side power MOSFETs. Its power stage is capable of supplying up to 24 A continuous current at 1 MHz switching frequency. This regulator produces an adjustable output voltage down to 0.6 V from 3 V to 24 V input rail to accommodate a variety of applications, including computing, consumer electronics,telecom, and industrial. SiC43x series employs a constant ON time control architecture that supports ultrafast transient response with minimum output capacitance and tight ripple regulation at very light load. The device is internally compensated and no external ESR network is required for loop stability purposes. The device also incorporates a power saving scheme that significantly increases light load efficiency. The regulator integrates a full protection feature set, including output over voltage protection (OVP), cycle by cycle over current protection (OCP) short circuit protection (SCP) and thermal shutdown (OTP). It also has UVLO and a user programmable soft start. The SiC43x series is available in lead (Pb)-free power enhanced MLP44-24L package in 4 mm x 4 mm dimension.FEATURES•Versatile- Single supply operation from 3 V to 24 V input voltage -Adjustable output voltage down to 0.6 V - Scalable solution8 A (SiC438), 12 A (SiC437), 24 A (SiC431)- Output voltage tracking and sequencing with pre-bias start up- ± 1 % output voltage accuracy at -40 °C to +125 °C •Highly efficient - 97 % peak efficiency- 1 μA supply current at shutdown - 50 μA operating current not switching •Highly configurable-Four programmable switching frequencies available:300 kHz, 500 kHz, 750 kHz, and 1 MHz - Adjustable soft start and adjustable current limit - 3 modes of operation: forced continuous conduction,power save, or ultrasonic •Robust and reliable- Cycle-by-cycle current limit - Output overvoltage protection- Output undervoltage / short circuit protection with auto retry - Power good flag and over temperature protection •Design tools- Supported by Vishay PowerCAD Online Design Simulation (/power-ics/powercad-list/)- Design support kit (/ppg?74589)•Material categorization: for definitions of compliance please see /doc?99912APPLICATIONS•Industrial and automation •Home automation•Industrial and server computing•Networking, telecom, and base station power supplies •Wall transformer regulation •Robotics•High end hobby electronics: remote control cars, planes,and drones•Battery management systems •Power tools•Vending, ATM, and slot machinesORDERING TABLEPART NUMBER MODEOUTPUT CURRENTSiC431AEVB-A Ultrasonic24 A SiC431BEVB-APower safe 24 ASiC437AEVB-BUltrasonic 12 A SiC437BEVB-BPower safe12 A SiC438AEVB-B Ultrasonic 8 A SiC438BEVB-BPower safe8 ASPECIFICATIONSThis reference board allows the end user to evaluate the SiC43x series microBUCK® regulators for their features and functionalities. The user may also change the operating range may be modified by making changes to the jumper connections. See section “Selection Jumpers” below in the document.CONNECTION AND SIGNAL / TEST POINTS Power Terminals (J10)- +V IN (pin 1), V IN GND (pin 2)Connect to a voltage source to this pin. The minimum input voltage will be 3 V. For input voltages (V IN) below 4.5 V an external V DD and V DRD is required.- +V OUT (pins 5 and 6), V OUT GND (pins 3 and 4)Fig. 1 - SiC43x EVBSELECTION JUMPERSMode SelectJ1, to J8 and J15: there are 4 jumpers which allow the user to select one of four modes of operation.J1 to J4 to select switching frequency: 300 kHz to 1 MHz. Short pins 1 and 2 for PSM mode, short pins 2 and 3 for FCCM modeJ5 to J8 to select over current trip (I LIM). Short pins 1 and 3 to select 6 mS soft start, short pins 2 and 3 to select 6 mS soft startJ15 to select output voltage: 1 V, 3.3 V, 5 V and 12 V EnableJ9: this is the jumper that enables/disables the part.With J9 left open, the device is enabled, via R9 to V IN+. To disable the part, short J9.SIGNALS AND TEST LEADSInput Voltage SenseV IN_SENSE (TP11), GND IN_SENSE (TP12): this allows the user to measure the voltage directly at the input of the regulator bypassing any losses generated by connections to the board. These test points can also be as a remote sense port of a power source with remote sense capability.Output Voltage SenseV OUT_SENSE (TP13), GND OUT_SENSE (TP14): this allows the user to measure the output voltage directly at the sense point of the regulator bypassing any losses generated by connections to the board. These test points can also be as a remote sense port of an external load with remote sense capability.Power Good IndicatorPGD (J17): is an open drain output and is pulled up with a 100 kΩ resistor, R12, to V DD1 (≈ 5 V). When FB or V OUT are within -10 % to +20 % of the set voltage this pin will go HI to indicate the output is okay. To prevent false triggering during transient events, the P GOOD has a 25 μS blanking time.Power Up ProcedureBefore turning on the reference board, the user needs to select one of the three modes by shorting one jumper (see section on mode selection). It is recommend to disable theSiC431 before making any changes to the jumpers.SCHEMATIC FOR SiC431SCHEMATIC FOR SiC437, SiC438SCHEMATIC, DESIGN, BILL OF MATERIALS, AND GERBER FILES FOR PCB FABRICATIONThese files are as follows:•“*.DSN” for schematic design file•“*.DBK” for data backup file for Orcad•“.opj” Orcad project file. Any schematic work should always be opened with the opj file. Use of a DSN file for this purpose is not advised•“*.xlsx” is the bill of materials (BOM) derived from the schematic•“*.PDF” is the PDF version of the schematic from the “*.DSN” fileThe Fab files for the high power and low power are located in a separate sub directory and contain gerbers,.brd files (Allegro), etc. for PCB fabrication.PCB LAYOUT FOR SiC431Fig. 2 - Top LayerFig. 3 - Inner Layer 2Fig. 4 - Inner Layer 3Fig. 5 - Inner Layer 4 Fig. 6 - Inner Layer 5Fig. 7 - Bottom LayerPCB LAYOUT FOR SiC437, SiC438Fig. 8 - Top LayerFig. 9 - Inner Layer 2Fig. 10 - Inner Layer 3Fig. 11 - Inner Layer 4 Fig. 12 - Inner Layer 5Fig. 13 - Bottom LayerBILL OF MATERIAL REPORT, SiC431SYM_NAME COMP_VALUE REFDES PART NUMBER 04020.1 μF C1, C5, C6GRM155R71H104ME14D 121022 μF C2, C3, C4CL32B226KAJNFNE 0603 1 μF C7GCM188R71E105KA64D POSCAP100 μF C8, C920TQC100MYF0603DNP C10121022 μF C11, C12, C13, C14CL32B226KAJNFNEDNP C15, C16, C1706030.1 μF C18GCM188R71E104KA57D CAP10P2x5220 μF C20UBT1E221M SiC431SiC431IC1MINIJUMPER3CON3J1, J2, J3, J4, J5, J6, J7, J8, J9M50-3530342 CON6CON6J10277-1581-NDTP30VIN+s J1136-5000-NDTP30VIN-S J1236-5001-NDTP30VO+S J1336-5000-NDTP30VO-S J1436-5001-ND MINIJUMPER2x4CON8A J15S9015E-04-ND TP30AGND J1636-5001-NDTP30PGOOD J1736-5002-NDDNP L1IHLP 1 μH L2ZPWM-101014MA-1R0K 040251k R1, R5CRCW040251K0FKED 0402100k R2, R6, R9, R12CRCW0402100KFKED 0402200k R3, R7CRCW0402200KFKED 0402510k R4, R8CRCW0402510KFKED 04020R10CRCW04020000Z0ED 060310k R11TNPW060310K0BXEN 0603 6.65k R14TNPW06036K65BEEA 060345.3k R15TNPW060345K3BEEA 060373.2k R16TNPW060373K2BEEA 0603191k R17TNPW0603191KBEEA 1206DNP R18JUMPER OFF BOARD x3NPB02SVFN-RCBILL OF MATERIAL REPORT, SiC437, SiC438SYM_NAME COMP_VALUE REFDES PART NUMBER 04020.1 μF C1, C5, C6GRM155R71H104ME14D121022 μF C2, C3, C4CL32B226KAJNFNE0603 1 μF C7GCM188R71E105KA64DPOSCAP100 μF C8, C920TQC100MYF0603DNP C10121022 μF C13, C14CL32B226KAJNFNEDNP C11, C12, C15, C16, C1706030.1 μF C18GCM188R71E104KA57DSiC437/8SiC437/8IC1MINIJUMPER3CON3J1, J2, J3, J4, J5, J6, J7, J8,J 9M50-3530342 CON6CON6J10277-1581-NDTP30VIN+s J1136-5000-NDTP30VIN-S J1236-5001-NDTP30VO+S J1336-5000-NDTP30VO-S J1436-5001-ND MINIJUMPER2x4CON8A J15S9015E-04-ND TP30AGND J1636-5001-NDTP30PGOOD J1736-5002-NDDNP L1DNP L1IHLP 2.2 μH L2 (for SiC437x)IHLP4040DZER2R2M01IHLP 3.3 μH L2 (for SiC438x)IHLP4040DZER3R3M5A040251k R1, R5CRCW040251K0FKED0402100k R2, R6, R9, R12CRCW0402100KFKED0402200k R3, R7CRCW0402200KFKED0402510k R4, R8CRCW0402510KFKED04020R10CRCW04020000Z0ED060310k R11TNPW060310K0BXEN0603 6.65k R14TNPW06036K65BEEA060345.3k R15TNPW060345K3BEEA060373.2k R16TNPW060373K2BEEA0603191k R17TNPW0603191KBEEA1206DNP R18JUMPER OFF BOARD x3NPB02SVFN-RCVishay Siliconix maintains worldwide manufacturing capability. Products may be manufactured at one of several q ualified locations. Reliability data for Silicon Technology and Package Reliability represent a composite of all qualified locations. For related documents such as package / tape drawings, part marking, and reliability data, see /ppg?76801.。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

D Wake-Up From Standby Mode in Less Than 6µsD 16-Bit RISC Architecture,125-ns Instruction Cycle Time D Single-Channel Internal DMAD 12-Bit A/D Converter With Internal Reference,Sample-and-Hold and Autoscan FeatureD 16-Bit Timer_A With Three Capture/Compare Registers D 16-Bit Timer_B With ThreeCapture/Compare-With-Shadow Registers D On-Chip ComparatorDSerial Communication Interface (USART),Select Asynchronous UART or Synchronous SPI by SoftwareNo External Programming Voltage Needed Programmable Code Protection by Security FuseD Integrated LCD Driver for Up to 128SegmentsDFamily Members Include:--MSP430F438:48KB+256B Flash Memory,2KB RAM--MSP430F439:60KB+256B Flash Memory,2KB RAMDFor Complete Module Descriptions,See The MSP430x4xx Family User’s Guide ,Literature Number SLAU056descriptionThe Texas Instruments MSP430family of ultralow power microcontrollers consists of several devices featuring different sets of peripherals targeted for various applications.The architecture,combined with five low-power modes,is optimized to achieve extended battery life in portable measurement applications.The device 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 6µs.The MSP430F43x series are microcontroller configurations with two 16-bit timers,a high performance 12-bit A/D converter,one universal synchronous/asynchronous communication interface (USART),DMA,48I/O pins,and a liquid crystal display (LCD)driver.Typical applications for this device include analog and digital sensor systems,digital motor control,remote controls,thermostats,digital timers,hand-held meters,etc.This integrated circuit can be damaged by ESD.Texas Instruments recommends that all integrated circuits be handled with appropriate precautions.Failure to observe proper handling and installation procedures can cause damage.ESD damage can range from subtle performance degradation to complete device failure.Precision integrated circuits may be more susceptible to damage because very small parametric changes could cause the device not to meet its published specifications.These devices have limited built-in ESD protection.PRODUCTION DATA information is current as of publication date.Products conform to specifications per the terms of Texas Instruments standard warranty.Production processing does not necessarily include testing of all parameters.Please be aware that an important notice concerning availability,standard warranty,and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.AVAILABLE OPTIONSPACKAGED DEVICEST APLASTIC 80-PIN QFP(PN)--40°C to 85°CMSP430F438IPN MSP430F439IPN†For the most current package and ordering information,see the Package Option Addendum at the end of this document,or see the TI web site at .‡Package drawings,thermal data,and symbolization are available at /packaging.pin designation,MSP430F438IPN,MSP430F439IPNP1.7/CA1P2.0/TA2P2.1/TB0P2.2/TB1P2.3/TB2P2.4/UTXD0P2.5/URXD0DV SS2DV CC2P5.7/R33P5.6/R23P5.5/R13R03P5.4/COM3P5.3/COM2P5.2/COM1COM0P3.0/STE0/S31P3.1/SIMO0/S30P3.2/SOMI0/S29DV CC1P6.3/A3P6.4/A4P6.5/A5P6.6/A6P6.7/A7/SVSINV REF+XIN XOUT Ve REF+V REF--/Ve REF--P5.1/S0/A12P5.0/S1/A13P4.7/S2/A14P4.6/S3/A15P4.5/S4P4.4/S5P4.3/S6P4.2/S7P4.1/S8PN PACKAGE (TOP VIEW)T D O /T D I P 6.1/A 1P 6.0/A 0R S T /N M I T C K T M S P 2.6/C A O U T /S 19S 21S 15S 16S 17P 4.0/S 9X T 2O U T S 22S 23P 3.7/S 24P 3.6/S 25/D M A E 0P 1.0/T A 0P 1.1/T A 0/M C L K P 1.2/T A 1P 1.3/T B O U T H /S V S O U TP 3.5/S 26P 3.4/S 27P 1.4/T B C L K /S M C L K P 1.5/T A C L K /A C L K T D I /T C L K X T 2I N P 1.6/C A 0S 10S 20P 3.3/U C L K 0/S 28S 11S 12S 13S 14P 2.7/A D C 12C L K /S 18P 6.2/A 2A V C CV S S 1A V S Sfunctional block diagramDV DV AV AVRST/NMITerminal FunctionsTERMINALPNI/ONAME NO.DESCRIPTIONDV CC11Digital supply voltage,positive terminal.P6.3/A32I/O General-purpose digital I/O/analog input a3—12-bit ADCP6.4/A43I/O General-purpose digital I/O/analog input a4—12-bit ADCP6.5/A54I/O General-purpose digital I/O/analog input a5—12-bit ADCP6.6/A65I/O General-purpose digital I/O/analog input a6—12-bit ADCP6.7/A7/SVSIN6I/O General-purpose digital I/O/analog input a7—12-bit ADC/analog input to supply voltagesupervisorV REF+7O Positive output terminal of the reference voltage in the ADCXIN8I Input terminal of crystal oscillator XT1XOUT9O Output terminal of crystal oscillator XT1Ve REF+10I/O Positive input terminal for an external reference voltage to the12-bit ADCV REF--/Ve REF--11I Negative terminal for the12-bit ADC reference voltage for both sources,the internal reference voltage or an external applied reference voltage to the12-bit ADC.P5.1/S0/A1212I/O General-purpose digital I/O/LCD segment output0/analog input a12—12-bit ADC P5.0/S1/A1313I/O General-purpose digital I/O/LCD segment output1/analog input a13—12-bit ADC P4.7/S2/A1414I/O General-purpose digital I/O/LCD segment output2/analog input a14—12-bit ADC P4.6/S3/A1515I/O General-purpose digital I/O/LCD segment output3/analog input a15—12-bit ADC P4.5/S416I/O General-purpose digital I/O/LCD segment output4P4.4/S517I/O General-purpose digital I/O/LCD segment output5P4.3/S618I/O General-purpose digital I/O/LCD segment output6P4.2/S719I/O General-purpose digital I/O/LCD segment output7P4.1/S820I/O General-purpose digital I/O/LCD segment output8P4.0/S921I/O General-purpose digital I/O/LCD segment output9S1022O LCD segment output10S1123O LCD segment output11S1224O LCD segment output12S1325O LCD segment output13S1426O LCD segment output14S1527O LCD segment output15S1628O LCD segment output16S1729O LCD segment output17P2.7/ADC12CLK/S1830I/O General-purpose digital I/O/conversion clock—12-bit ADC/LCD segment output18 P2.6/CAOUT/S1931I/O General-purpose digital I/O/Comparator_A output/LCD segment output19S2032O LCD segment output20S2133O LCD segment output21S2234O LCD segment output22S2335O LCD segment output23P3.7/S2436I/O General-purpose digital I/O/LCD segment output24P3.6/S25/DMAE037I/O General-purpose digital I/O/LCD segment output25/DMA Channel0external trigger P3.5/S2638I/O General-purpose digital I/O/LCD segment output26P3.4/S2739I/O General-purpose digital I/O/LCD segment output27Terminal Functions(Continued) TERMINALPNNAME NO.I/ODESCRIPTIONP3.3/UCLK0/S2840I/O General-purpose digital I/O/ext.clock i/p—USART0/UART or SPI mode,clock o/p—USART0/SPI mode /LCD segment output28P3.2/SOMI0/S2941I/O General-purpose digital I/O/slave out/master in of USART0/SPI mode/LCD segment output29 P3.1/SIMO0/S3042I/O General-purpose digital I/O/slave out/master out of USART0/SPI mode/LCD segment output30 P3.0/STE0/S3143I/O General-purpose digital I/O/slave transmit enable-USART0/SPI mode/LCD segment output31 COM044O Common output,COM0--3are used for LCD backplanes.P5.2/COM145I/O General-purpose digital I/O/common output,COM0--3are used for LCD backplanes.P5.3/COM246I/O General-purpose digital I/O/common output,COM0--3are used for LCD backplanes.P5.4/COM347I/O General-purpose digital I/O/common output,COM0--3are used for LCD backplanes.R0348I Input port of fourth positive(lowest)analog LCD level(V5)P5.5/R1349I/O General-purpose digital I/O/input port of third most positive analog LCD level(V4or V3)P5.6/R2350I/O General-purpose digital I/O/input port of second most positive analog LCD level(V2)P5.7/R3351I/O General-purpose digital I/O/output port of most positive analog LCD level(V1)DV CC252Digital supply voltage,positive terminal.DV SS253Digital supply voltage,negative terminal.P2.5/URXD054I/O General-purpose digital I/O/receive data in—USART0/UART modeP2.4/UTXD055I/O General-purpose digital I/O/transmit data out—USART0/UART modeP2.3/TB256I/O General-purpose digital I/O/Timer_B3CCR2. Capture:CCI2A/CCI2B input,compare:Out2outputP2.2/TB157I/O General-purpose digital I/O/Timer_B3CCR1. Capture:CCI1A/CCI1B input,compare:Out1outputP2.1/TB058I/O General-purpose digital I/O/Timer_B3CCR0. Capture:CCI0A/CCI0B input,compare:Out0outputP2.0/TA259I/O General-purpose digital I/O/Timer_A Capture:CCI2A input,compare:Out2outputP1.7/CA1360I/O General-purpose digital I/O/Comparator_A input P1.6/CA061I/O General-purpose digital I/O/Comparator_A inputP1.5/TACLK/ACLK62I/O General-purpose digital I/O/Timer_A,clock signal TACLK input/ ACLK output(divided by1,2,4,or8)P1.4/TBCLK/SMCLK63I/O General-purpose digital I/O/input clock TBCLK—Timer_B3/submain system clock SMCLK outputP1.3/TBOUTH/SVSOUT64I/O General-purpose digital I/O/switch all PWM digital output ports to high impedance—Timer_B3TB0to TB2 /SVS:output of SVS comparatorP1.2/TA165I/O General-purpose digital I/O/Timer_A,Capture:CCI1A,compare:Out1outputP1.1/TA0/MCLK66I/O General-purpose digital I/O/Timer_A.Capture:CCI0B/MCLK output.Note:TA0is only an input on this pin/BSL receiveP1.0/TA067I/O General-purpose digital I/O/Timer_A.Capture:CCI0A input,compare:Out0output/BSL transmit XT2OUT68O Output terminal of crystal oscillator XT2XT2IN69I Input port for crystal oscillator XT2.Only standard crystals can be connected.TDO/TDI70I/O Test data output port.TDO/TDI data output or programming data input terminalTDI/TCLK71I Test data input or test clock input.The device protection fuse is connected to TDI/TCLK.TMS72I Test mode select.TMS is used as an input port for device programming and test.TCK73I Test clock.TCK is the clock input port for device programming and test.Terminal Functions(Continued)TERMINALPNI/ONAME NO.DESCRIPTION RST/NMI74I Reset or nonmaskable interrupt inputP6.0/A075I/O General-purpose digital I/O/analog input a0--12-bit ADC P6.1/A176I/O General-purpose digital I/O/analog input a1--12-bit ADC P6.2/A277I/O General-purpose digital I/O/analog input a2--12-bit ADCAV SS78Analog supply voltage,negative terminal.Supplies SVS,brownout,oscillator,comparator_A,port1, and LCD resistive divider circuitry.DV SS179Digital supply voltage,negative terminal.AV CC80Analog supply voltage,positive terminal.Supplies SVS,brownout,oscillator,comparator_A,port1, and LCD resistive divider circuitry;must not power up prior to DV CC1/DV CC2.General-Purpose Register Program Counter Stack Pointer Status Register Constant Generator General-Purpose Register General-Purpose Register General-Purpose Register PC/R0SP/R1SR/CG1/R2CG2/R3R4R5R12R13General-Purpose Register General-Purpose Register R6R7General-Purpose Register General-Purpose Register R8R9General-Purpose Register General-Purpose Register R10R11General-Purpose Register General-Purpose RegisterR14R15short-form descriptionCPUThe MSP430CPU has a 16-bit RISC architecture that is highly transparent to the application.All operations,other than program-flow instructions,are performed as register operations in conjunction with seven addressing modes for source operand and four addressing modes for destination operand.The CPU is integrated with 16registers that provide reduced instruction execution time.The register-to-register operation execution time is one cycle of the CPU clock.Four of the registers,R0to R3,are dedicated as program counter,stack pointer,status register,and constant generator respectively.The remaining registers are general-purpose registers.Peripherals are connected to the CPU using data,address,and control buses,and can be handled with all instructions.instruction setThe instruction set consists of 51instructions with three formats and seven address modes.Each instruction can operate on word and byte data.Table 1shows examples of the three types of instruction formats;Table 2shows the address modes.Table 1.Instruction Word FormatsDual operands,source-destination e.g.ADD R4,R5R4+R5------>R5Single operands,destination only e.g.CALL R8PC ---->(TOS),R8---->PC Relative jump,un/conditionale.g.JNEJump-on-equal bit =0Table 2.Address Mode DescriptionsADDRESS MODES D SYNTAX EXAMPLE OPERATION Register F F MOV Rs,Rd MOV R10,R11R10—>R11IndexedF F MOV X(Rn),Y(Rm)MOV 2(R5),6(R6)M(2+R5)—>M(6+R6)Symbolic (PC relative)F F MOV EDE,TONI M(EDE)—>M(TONI)Absolute F F MOV &MEM,&TCDAT M(MEM)—>M(TCDAT)Indirect F MOV @Rn,Y(Rm)MOV @R10,Tab(R6)M(R10)—>M(Tab+R6)Indirect autoincrement F MOV @Rn+,Rm MOV @R10+,R11M(R10)—>R11R10+2—>R10ImmediateFMOV #X,TONIMOV #45,TONI #45—>M(TONI)NOTE:S =sourceD =destinationoperating modesThe MSP430has one active mode and five software selectable low-power modes of operation.An interrupt event can wake up the device from any of the five low-power modes,service the request,and restore back to the low-power mode on return from the interrupt program.The following six operating modes can be configured by software:D Active mode(AM)--All clocks are activeD Low-power mode0(LPM0)--CPU is disabled--ACLK and SMCLK remain active,MCLK is disabled--FLL+loop control remains activeD Low-power mode1(LPM1)--CPU is disabled--FLL+loop control is disabled--ACLK and SMCLK remain active,MCLK is disabledD Low-power mode2(LPM2)--CPU is disabled--MCLK,FLL+loop control,and DCOCLK are disabled--DCO’s dc-generator remains enabled--ACLK remains activeD Low-power mode3(LPM3)--CPU is disabled--MCLK,FLL+loop control,and DCOCLK are disabled--DCO’s dc-generator is disabled--ACLK remains activeD Low-power mode4(LPM4)--CPU is disabled--ACLK is disabled--MCLK,FLL+loop control,and DCOCLK are disabled--DCO’s dc-generator is disabled--Crystal oscillator is stoppedinterrupt vector addressesThe interrupt vectors and the power-up starting address are located in the address range0FFFFh to0FFE0h.The vector contains the16-bit address of the appropriate interrupt-handler instruction sequence.INTERRUPT SOURCE INTERRUPT FLAG SYSTEM INTERRUPTWORDADDRESS PRIORITYPower-Up External Reset Watchdog Flash MemoryWDTIFGKEYV(see Note1)Reset0FFFEh15,highestNMIOscillator FaultFlash Memory Access ViolationNMIIFG(see Notes1and3)OFIFG(see Notes1and3)ACCVIFG(see Notes1and3)(Non)maskable(Non)maskable(Non)maskable0FFFCh14Timer_B3TBCCR0CCIFG0(see Note2)Maskable0FFFAh13Timer_B3TBCCR1CCIFG1,TBCCR2CCIFG2,TBIFG(see Notes1and2)Maskable0FFF8h12Comparator_A CAIFG Maskable0FFF6h11 Watchdog Timer WDTIFG Maskable0FFF4h10 USART0Receive URXIFG0Maskable0FFF2h9 USART0Transmit UTXIFG0Maskable0FFF0h8 ADC12ADC12IFG(see Notes1and2)Maskable0FFEEh7 Timer_A3TACCR0CCIFG0(see Note2)Maskable0FFECh6Timer_A3TACCR1CCIFG1and TACCR2CCIFG2,TAIFG(see Notes1and2)Maskable0FFEAh5I/O Port P1(Eight Flags)P1IFG.0to P1IFG.7(see Notes1and2)Maskable0FFE8h4 DMA DMA0IFG(see Notes1and2)Maskable0FFE6h30FFE4h2 I/O Port P2(Eight Flags)P2IFG.0to P2IFG.7(see Notes1and2)Maskable0FFE2h1 Basic Timer1BTIFG Maskable0FFE0h0,lowest NOTES: 1.Multiple source flags2.Interrupt flags are located in the module.3.(Non)maskable:the individual interrupt-enable bit can disable an interrupt event,but the general-interrupt enable cannot disableit.special function registersThe MSP430special function registers(SFR)are located in the lowest address space and are organized as byte mode registers.SFRs should be accessed with byte instructions.interrupt enable 1and2Address 0hWDTIE:Watchdog timer interrupt enable.Inactive if watchdog mode is selected.Active if watchdog timer is configured as a general-purpose timer.OFIE:Oscillator fault interrupt enable NMIIE:Nonmaskable interrupt enable ACCVIE:Flash access violation interrupt enableURXIE0:USART0:UART and SPI receive-interrupt enable UTXIE0:USART0:UART and SPI transmit-interruptenableAddress 01hrw–0BTIE:Basic timer interrupt enableinterrupt flag register 1and2Address 02hWDTIFG:Set on watchdog timer overflow (in watchdog mode)or security key violation Reset on V CC power-on or a reset condition at the RST/NMI pin in reset mode OFIFG:Flag set on oscillator fault NMIIFG:Set via RST/NMI pinURXIFG0:USART0:UART and SPI receive flag UTXIFG0:USART0:UART and SPI transmitflagAddress 03hrw–0BTIFG:Basic timer flagmodule enable registers 1and2rw–0rw–0Address 04hURXE0:USART0:UART mode receive enable UTXE0:USART0:UART mode transmit enableUSPIE0:USART0:SPI mode transmit and receiveenableAddress 05hrw–0,1:Legend:rw:Bit Can Be Read and WrittenBit Can Be Read and Written.It Is Reset or Set by PUC.Bit Can Be Read and Written.It Is Reset or Set by POR.SFR Bit Not Present in Devicerw–(0,1):memory organizationMSP430F438MSP430F439MemoryMain:interrupt vector Main:code memory Size Flash Flash 48KB0FFFFh --0FFE0h 0FFFFh --04000h 60KB0FFFFh --0FFE0h 0FFFFh --01100h Information memory Size Flash 256Byte 010FFh --01000h 256Byte 010FFh --01000h Boot memory Size ROM 1KB0FFFh --0C00h 1KB0FFFh --0C00h RAM Size 2KB09FFh --0200h 2KB09FFh --0200h Peripherals16-bit 8-bit 8-bit SFR01FFh --0100h 0FFh --010h 0Fh --00h01FFh --0100h 0FFh --010h 0Fh --00hbootstrap loader (BSL)The MSP430bootstrap loader (BSL)enables users to program the flash memory or RAM using a UART serial interface.Access to the MSP430memory via the BSL is protected by user-defined password.For complete description of the features of the BSL and its implementation,see the MSP430Memory Programming User’s Guide (SLAU265).BSL Function PN Package PinsData Transmit 67--P1.0Data Receive66--P1.1flash memoryThe flash memory can be programmed via the JTAG port,the bootstrap loader,or in-system by the CPU.The CPU can perform single-byte and single-word writes to the flash memory.Features of the flash memory include:D Flash memory has n segments of main memory and two segments of information memory (A and B)of128bytes each.Each segment in main memory is 512bytes in size.D Segments 0to n may be erased in one step,or each segment may be individually erased.D Segments A and B can be erased individually,or as a group with segments 0to n.Segments A and B are also called information memory.D New devices may have some bytes programmed in the information memory (needed for test duringmanufacturing).The user should perform an erase of the information memory prior to the first use.Main MemoryInformation Memory32KB 0FFFFh 0FE00h 0FDFFh 0FC00h 0FBFFh 0FA00h 0F9FFh48KB 0FFFFh 0FE00h 0FDFFh 0FC00h 0FBFFh 0FA00h 0F9FFh60KB 0FFFFh 0FE00h 0FDFFh 0FC00h 0FBFFh 0FA00h 0F9FFh08400h 083FFh 08200h 081FFh 08000h 010FFh 01080h 0107Fh 01000h04400h 043FFh 04200h 041FFh 04000h 010FFh 01080h 0107Fh 01000h01400h 013FFh 01200h 011FFh 01100h 010FFh01080h 0107Fh 01000h†MSP430F439flash segment n =256bytes.peripheralsPeripherals are connected to the CPU through data,address,and control busses and can be handled using all instructions.For complete module descriptions,see the MSP430x4xx Family User’s Guide(SLAU056).DMA controllerThe DMA controller allows movement of data from one memory address to another without CPU intervention.For example,the DMA controller can be used to move data from the ADC12conversion memory to ing the DMA controller can increase the throughput of peripheral modules.The DMA controller reduces system power consumption by allowing the CPU to remain in sleep mode without having to awaken to move data to or from a peripheral.oscillator and system clockThe clock system in the MSP430F43x family of devices is supported by the FLL+module that includes support for a32768-Hz watch crystal oscillator,an internal digitally-controlled oscillator(DCO),and a high-frequency crystal oscillator.The FLL+clock module is designed to meet the requirements of both low system cost and low-power consumption.The FLL+features digital frequency locked loop(FLL)hardware which in conjunction with a digital modulator stabilizes the DCO frequency to a programmable multiple of the watch crystal frequency.The internal DCO provides a fast turn-on clock source and stabilizes in less than6µs.The FLL+module provides the following clock signals:D Auxiliary clock(ACLK),sourced from a32768-Hz watch crystal or a high-frequency crystal.D Main clock(MCLK),the system clock used by the CPU.D Sub-Main clock(SMCLK),the sub-system clock used by the peripheral modules.D ACLK/n,the buffered output of ACLK,ACLK/2,ACLK/4,or ACLK/8.brownout,supply voltage supervisorThe brownout circuit is implemented to provide the proper internal reset signal to the device during power-on and power-off.The supply voltage supervisor(SVS)circuitry detects if the supply voltage drops below a user selectable level and supports both supply voltage supervision(the device is automatically reset)and supply voltage monitoring(SVM,the device is not automatically reset).The CPU begins code execution after the brownout circuit releases the device reset.However,V CC may not have ramped to V CC(min)at that time.The user must insure the default FLL+settings are not changed until V CC reaches V CC(min).If desired,the SVS circuit can be used to determine when V CC reaches V CC(min).digital I/OThere are six8-bit I/O ports implemented—ports P1through P6:D All individual I/O bits are independently programmable.D Any combination of input,output,and interrupt conditions is possible.D Edge-selectable interrupt input capability for all the eight bits of ports P1and P2.D Read/write access to port-control registers is supported by all instructions.Basic Timer1The Basic Timer1has two independent8-bit timers which can be cascaded to form a16-bit timer/counter.Both timers can be read and written by software.The Basic Timer1can be used to generate periodic interrupts and clock for the LCD module.LCD driveThe LCD driver generates the segment and common signals required to drive an LCD display.The LCD controller has dedicated data memory to hold segment drive mon and segment signals are generated as defined by the mode.Static,2-MUX,3-MUX,and 4-MUX LCDs are supported by this peripheral.watchdog timerThe primary function of the watchdog timer (WDT)module is to perform a controlled system restart after a software problem occurs.If the selected time interval expires,a system reset is generated.If the watchdog function is not needed in an application,the module can be configured as an interval timer and can generate interrupts at selected time intervals.USART0The MSP430F43x has one hardware universal synchronous/asynchronous receive transmit (USART)peripheral module that is used for serial data communication.The USART supports synchronous SPI (3or 4pin)and asynchronous UART communication protocols,using double-buffered transmit and receive channels.Timer_A3Timer_A3is a 16-bit timer/counter with three capture/compare registers.Timer_A3can support multiple capture/compares,PWM outputs,and interval timing.Timer_A3also has extensive interrupt capabilities.Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers.Timer_A3Signal ConnectionsInput Pin NumberDevice Input Module Module Module OutputOutput Pin NumberPN Signal InputNameBlockSignalPN62-P1.5TACLK TACLK ACLK ACLK SMCLKSMCLK TimerNA62-P1.5TACLK INCLK 67-P1.0TA0CCI0A 67-P1.066-P1.1TA0CCI0B DV SS GND CCR0TA0DV CCV CC 65-P1.2TA1CCI1A 65-P1.2CAOUT (internal)CCI1B ADC12(internal)DV SS GND CCR1TA1DV CCV CC 59-P2.0TA2CCI2A 59-P2.0ACLK (internal)CCI2B DV SS GND CCR2TA2DV CCV CCTimer_B3Timer_B3is a 16-bit timer/counter with three capture/compare registers.Timer_B3can support multiple capture/compares,PWM outputs,and interval timing.Timer_B3also has extensive interrupt capabilities.Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers.Timer_B3Signal ConnectionsInput Pin NumberDevice Input Module Module Module OutputOutput Pin NumberPN Signal InputName BlockSignalPN63-P1.4TBCLK TBCLK ACLK ACLK SMCLKSMCLK TimerNA63-P1.4TBCLK INCLK 58-P2.1TB0CCI0A 58-P2.158-P2.1TB0CCI0B ADC12(internal)DV SS GND CCR0TB0DV CCV CC 57-P2.2TB1CCI1A 57-P2.257-P2.2TB1CCI1B ADC12(internal)DV SS GND CCR1TB1DV CCV CC 56-P2.3TB2CCI2A 56-P2.356-P2.3TB2CCI2B DV SS GND CCR2TB2DV CCV CCComparator_AThe primary function of the Comparator_A module is to support precision slope analog-to-digital conversions,battery-voltage supervision,and monitoring of external analog signals.ADC12The ADC12module supports fast,12-bit analog-to-digital conversions.The module implements a 12-bit SAR core,sample select control,reference generator and a 16word conversion-and-control buffer.The conversion-and-control buffer allows up to 16independent ADC samples to be converted and stored without any CPU intervention.peripheral file mapPERIPHERALS WITH WORD ACCESSWatchdog Watchdog timer control WDTCTL0120h _Timer_B3Capture/compare register2TBCCR20196hCapture/compare register1TBCCR10194hCapture/compare register0TBCCR00192hTimer_B register TBR0190hCapture/compare control2TBCCTL20186hCapture/compare control1TBCCTL10184hCapture/compare control0TBCCTL00182hTimer_B control TBCTL0180hTimer_B interrupt vector TBIV011Eh _Timer_A3Capture/compare register2TACCR20176hCapture/compare register1TACCR10174hCapture/compare register0TACCR00172hTimer_A register TAR0170hCapture/compare control2TACCTL20166hCapture/compare control1TACCTL10164hCapture/compare control0TACCTL00162hTimer_A control TACTL0160hTimer_A interrupt vector TAIV012Eh Flash Flash control3FCTL3012ChFlash control2FCTL2012AhFlash control1FCTL10128h DMA DMA module control0DMACTL00122hDMA module control1DMACTL10124hDMA channel0control DMA0CTL01E0hDMA channel0source address DMA0SA01E2hDMA channel0destination address DMA0DA01E4hDMA channel0transfer size DMA0SZ01E6hperipheral file map(continued)PERIPHERALS WITH WORD ACCESS(CONTINUED)ADC12Conversion memory15ADC12MEM15015EhSee Conversion memory14ADC12MEM14015Ch also Peripheralsywith Byte Access Conversion memory13ADC12MEM13015AhConversion memory12ADC12MEM120158hConversion memory11ADC12MEM110156hConversion memory10ADC12MEM100154hConversion memory9ADC12MEM90152hConversion memory8ADC12MEM80150hConversion memory7ADC12MEM7014EhConversion memory6ADC12MEM6014ChConversion memory5ADC12MEM5014AhConversion memory4ADC12MEM40148hConversion memory3ADC12MEM30146hConversion memory2ADC12MEM20144hConversion memory1ADC12MEM10142hConversion memory0ADC12MEM00140hInterrupt-vector-word register ADC12IV01A8hInerrupt-enable register ADC12IE01A6hInerrupt-flag register ADC12IFG01A4hControl register1ADC12CTL101A2hControl register0ADC12CTL001A0hperipheral file map(continued)PERIPHERALS WITH BYTE ACCESSLCD LCD memory20:LCD memory16LCD memory15:LCD memory1LCD control and mode LCDM20:LCDM16LCDM15:LCDM1LCDCTL0A4h:0A0h09Fh:091h090hADC12ADC memory-control register15ADC12MCTL1508Fh (Memory control ADC memory-control register14ADC12MCTL1408Eh registers require byteADC memory-control register13ADC12MCTL1308Dh access)ADC memory-control register12ADC12MCTL1208ChADC memory-control register11ADC12MCTL1108BhADC memory-control register10ADC12MCTL1008AhADC memory-control register9ADC12MCTL9089hADC memory-control register8ADC12MCTL8088hADC memory-control register7ADC12MCTL7087hADC memory-control register6ADC12MCTL6086hADC memory-control register5ADC12MCTL5085hADC memory-control register4ADC12MCTL4084hADC memory-control register3ADC12MCTL3083hADC memory-control register2ADC12MCTL2082hADC memory-control register1ADC12MCTL1081hADC memory-control register0ADC12MCTL0080h USART0Transmit buffer U0TXBUF077h (UART or SPI mode)Receive buffer U0RXBUF076h Baud rate U0BR1075hBaud rate U0BR0074hModulation control U0MCTL073hReceive control U0RCTL072hTransmit control U0TCTL071hUSART control U0CTL070h Comparator_A Comparator_A port disable CAPD05Bh p_Comparator_A control2CACTL205AhComparator_A control1CACTL1059h BrownOUT,SVS SVS control register(Reset by brownout signal)SVSCTL056h。

相关文档
最新文档