MSP430F_PCB图
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口外部输入值
msp430f5529引脚图
msp430f5529 引脚图
MSP430F5529 实验板(MSP-EXP430F5529)是一个用于MSP430F5529 器件(来自最新一代具有集成USB 的MSP430 器件)的开发平台。
该实验板与CC2520EMK 等众多TI 低功耗射频无线评估模块兼容。
该实验板能帮助设计者快速使用新的F55xx MCU 进行学习和开发,其中F55xx MCU 为能量收集、无线传感以及自动抄表基础设施(AMI)等
应用提供了业界最低工作功耗的集成USB、更大的内存和领先的集成技术。
该实验板上的MSP430F5529 器件可以通过集成ezFET 或通过TI 闪存仿真工具(如MSP-FET430UIF)进行供电和调试。
基于新的MSP430F5529 MCU,可用于需要增强型功能和集成USB 的超低功耗设计
凭借eZ430-RF2500 工具、用于Z-Stack Pro 的开包即用平台以及对各种TI 低功耗射频无线评估模块的支持,可实现快速的低功耗无线开发,
覆盖低于1GHz 和2.4GHz 的频带。
M430F4152单片机资料
DWake-Up From Standby Mode in Less Than 6µs --Internal Very Low Power,Low-Frequency Oscillator D 16-Bit RISC Architecture,125-ns Instruction Cycle Time D 16-Bit Timer_A With Three Capture/Compare RegistersD 16-Bit Timer_A With Five Capture/Compare RegistersDTwo Universal Serial Communication Interfaces (USCIs)USCI_A0--Enhanced UART Supporting Auto-Baudrate Detection --IrDA Encoder and Decoder --Synchronous SPI USCI_B0--I2C --Synchronous SPIDSupply Voltage Supervisor/Monitor With Programmable Level DetectionCompare Function or Slope A/DD10-Bit 200-ksps Analog-to-Digital (A/D)Converter With Internal Reference,Sample-and-Hold,Autoscan,and Data Transfer ControllerDSerial Onboard Programming,No External Programming Voltage Needed Programmable Code Protection by Security FuseD Bootstrap LoaderD On-Chip Emulation Module DFamily Members Include:MSP430F4152:16KB+256B Flash Memory512B RAMMSP430F4132:8KB+256B Flash Memory512B RAMD Available in 64-Pin QFP Package and 48-Pin QFN Package (See Available Options)DFor Complete Module Descriptions,See The MSP430x4xx Family User’s Guide ,Literature Number SLAU056descriptionThe Texas Instruments MSP430family 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 generator 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 MSP430F41x2is a microcontroller configuration with two 16-bit timers,a basic timer with a real--time clock,a 10-bit A/D converter,a versatile analog comparator,two universal serial communication interfaces,up to 48I/O pins,and a liquid crystal display driver.Typical applications for this device include analog and digital sensor systems,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.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.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.AVAILABLE OPTIONS†PACKAGED DEVICES‡T APLASTIC64-PIN QFP(PM)PLASTIC48-PIN QFN(RGZ)--40°C to85°C MSP430F4152IPMMSP430F4132IPMMSP430F4152IRGZMSP430F4132IRGZ†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 MSP430microcontrollers 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-FET430U64A(PM package)D Production Programmer--MSP-GANG430pin designation,MSP430F41x2IPM(QFP)pin designation,MSP430F41x2IRGZ(QFN)††“Not available”pinsfunctional block diagramDVCCDVSSAVCCAVSSP1.x/P2.xP3.x/P4.xXINXOUTP5.x/P6.xP7.xNOTE:The USCI A0and USCI B0cannot be used in the 48-pin package options (RGZ).Terminal FunctionsTERMINALNO.NAME64PIN 48PINI/O DESCRIPTIONP1.0/TA0.0/S315337I/O General-purpose digital I/O pinTimer0_A3,capture:CCI0A input,compare:Out0output LCD segment outputP1.1/TA0.0/MCLK/S305236I/O General-purpose digital I/O pin Timer0_A3,capture:CCI0B input MCLK signal outputLCD segment outputP1.2/TA0.1/S2951--I/O General-purpose digital I/O pinTimer0_A3,capture:CCI1A input,compare:Out1output LCD segment outputP1.3/TA1.0/SVSOUT/S2850--I/O General-purpose digital I/O pin Timer1_A5,capture:CCI0B input SVS comparator outputLCD segment outputP1.4/TA1.0/S2749--I/O General-purpose digital I/O pin/Timer1_A5,capture:CCI0A input,compare:Out0output LCD segment outputP1.5/TA0CLK/CAOUT/S264835I/O General-purpose digital I/O pin Timer0_A3,clock signal TACLK input Comparator_A outputLCD segment outputP1.6/ACLK/CA04734I/O General-purpose digital I/O pin Comparator_A input0ACLK signal outputP1.7/TA0CLKCAOUT/CA14633I/O General-purpose digital I/O pin Timer0_A3,clock signal TACLK input Comparator_A output Comparator_A input1P2.0/TA1.1/S152723I/O General-purpose digital I/O pin Timer1_A5,compare:Out1Output LCD segment outputP2.1/TA1.2/S142622I/O General-purpose digital I/O pin Timer1_A5,compare:Out2Output LCD segment outputP2.2/TA1.3/S132521I/O General-purpose digital I/O pin Timer1_A5,compare:Out3Output LCD segment outputP2.3/TA1.4/S122420I/O General-purpose digital I/O pin Timer1_A5,compare:Out4output LCD segment outputP2.4/S112319I/O General-purpose digital I/O pin LCD segment outputP2.5/S102218I/O General-purpose digital I/O pin LCD segment outputP2.6/S92117I/O General-purpose digital I/O pin LCD segment outputP2.7/S82016I/O General-purpose digital I/O pin LCD segment outputTerminal Functions(continued)TERMINALNO.NAME64PIN 48PINI/O DESCRIPTIONP3.0/TA1.2/S2335--I/O General-purpose digital I/O pinTimer1_A5,capture:CCI2A input,compare:Out2output LCD segment outputP3.1/TA1.3/S2234--I/O General-purpose digital I/O pinTimer1_A5,capture:CCI3A input,compare:Out3output LCD segment outputP3.2/TA1.4/S2133--I/O General-purpose digital I/O pinTimer1_A5,capture:CCI4A input,compare:Out4output LCD segment outputP3.3/TA0.0/TA1CLK/S2032--I/O General-purpose digital I/O pin Timer0_A3,compare:Out0output Timer1_A5,clock signal TACLK input LCD segment outputP3.4/CAOUT/S193124I/O General-purpose digital I/O pin Comparator_A outputLCD segment outputP3.5/S1830--I/O General-purpose digital I/O pin LCD segment outputP3.6/S1729--I/O General-purpose digital I/O pin LCD segment outputP3.7/S1628--I/O General-purpose digital I/O pin LCD segment outputP4.0/S71915I/O General-purpose digital I/O pin LCD segment outputP4.1/S61814I/O General-purpose digital I/O pin LCD segment outputP4.2/S51713I/O General-purpose digital I/O pin LCD segment outputP4.3/S41612I/O General-purpose digital I/O pin LCD segment outputP4.4/S31511I/O General-purpose digital I/O pin LCD segment outputP4.5/S21410I/O General-purpose digital I/O pin LCD segment outputP4.6/S1139I/O General-purpose digital I/O pin LCD segment outputP4.7/ADC10CLK/S0128I/O General-purpose digital I/O pin ADC10,conversion clock LCD segment outputP5.0/TA1.1/S2444--I/O General-purpose digital I/O pinTimer1_A5,capture:CCI1A input,compare:Out1output LCD segment outputLCDCAP/R334332I/O Capacitor connection for LCD charge pumpinput port of the most positive analog LCD level(V4)P5.1/R234231I/O General-purpose digital I/O pininput port of the second most positive analog LCD level(V3)P5.2/LCDREF/R134130I/O General-purpose digital I/O pinExternal LCD reference voltage inputinput port of the third most positive analog LCD level(V3or V2)Terminal Functions(continued)TERMINALNO.NAME64PIN 48PINI/O DESCRIPTIONP5.3/R034029I/O General-purpose digital I/O pininput port of the fourth most positive analog LCD level(V1)P5.4/COM33928I/O General-purpose digital I/O pincommon output,COM0--3are used for LCD backplanesP5.5/COM23827I/O General-purpose digital I/O pincommon output,COM0--3are used for LCD backplanesP5.6/COM13726I/O General-purpose digital I/O pincommon output,COM0--3are used for LCD backplanesP5.7/COM03625I/O General-purpose digital I/O pincommon output,COM0--3are used for LCD backplanesP6.0/TA1.2/A2†/CA46347I/O General-purpose digital I/O pin Timer1_A5,compare:Out2output ADC10analog input A2†Comparator_A input4P6.1/UCB0SOMI†/ UCB0SCL†11I/OGeneral-purpose digital I/O pinUSCI B0slave out/master in in SPI mode,SCL I2C clock in I2C mode†P6.2/UCB0SIMO†/ UCB0SDA†22I/OGeneral-purpose digital I/O pinUSCI B0slave in/master out in SPI mode,SDA I2C data in I2C mode†P6.3/UCB0STE/UCA0CLK/A3/ CA5/V eref--/V ref--3--I/OGeneral-purpose digital I/O pinUSCI B0slave transmit enable/USCI A0clock input/outputADC10analog input A3/negative referenceComparator_A input5P6.4/UCB0CLK/UCA0STE/A4/ CA6/V eref+/V ref+4--I/OGeneral-purpose digital I/O pinUSCI B0clock input/output,USCI A0slave transmit enableADC10analog input A4/positive referenceComparator_A input6P6.5/UCA0RXD/UCA0SOMI/A55--I/O General-purpose digital I/O pinUSCI A0receive data input in UART mode,slave data out/master in in SPI mode ADC10analog input A5P6.6/UCA0TXD/UCA0SIMO/A66--I/O General-purpose digital I/O pinUSCI A0transmit data output in UART mode,slave data in/master out SPI mode ADC10analog input A6P6.7/A7/CA7/SVSIN117I/O General-purpose digital I/O pin ADC10analog input A7 Comparator_A input7SVS inputP7.0/TDO/TDI/ S325438I/O General-purpose digital I/O pinJTAG test data output terminal or test data input in programming an testLCD segment outputP7.1/TDI/TCLK/ S335539I/O General-purpose digital I/O pinJTAG test data input or test clock input in programming an testLCD segment outputP7.2/TMS/S345640I/O General-purpose digital I/O pinJTAG test mode select,input terminal for device programming and testLCD segment output64-pin package devices onlyTerminal Functions(continued)TERMINALNO.NAME64PIN 48PINI/O DESCRIPTIONP7.3/TCK/S355741I/O General-purpose digital I/O pinTest clock input for device programming and testLCD segment outputP7.4/TA1.4/A0/CA26044I/O General-purpose digital I/O pinTimer1_A5,capture:CCI4B input,compare:Out4output ADC10analog input A0Comparator_A input2P7.5/TA1.3/A1/CA36145I/O General-purpose digital I/O pinTimer1_A5,capture:CCI3B input,compare:Out3output ADC10analog input A1Comparator_A input3P7.6/TA0.2/S2545--I/O General-purpose digital I/O pinTimer0_A3,capture:CCI2A input,compare:Out2output LCD segment outputAV CC6448Analog supply voltage,positive terminalAV SS6246Analog supply voltage,negative terminalDV CC73Digital supply voltage,positive terminal.Supplies all digital parts.DV SS106Digital supply voltage,negative terminal.Supplies all digital parts.XOUT95O Output port for crystal oscillator XT1.Standard or watch crystals can be connected. XIN84I Input port for crystal oscillator XT1.Standard or watch crystals can be connected.RST/NMI/ SBWTDIO 5842I Reset or nonmaskable interrupt inputSpy-Bi-Wire test data input/output during programming and testTEST/SBWTCLK5943I Selects test mode for JTAG pins on Port7.The device protection fuse is connected to TEST. Thermal Pad NA NA NA QFN package pad(RGZ package only).Connection to DV SS is recommended.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 =source,D =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--FLL+loop control remains activeD Low-power mode1(LPM1)--CPU is disabled--ACLK and SMCLK remain active--FLL+loop control 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 range0xFFFF to0xFFC0.The vector contains the16-bit address of the appropriate interrupt-handler instruction sequence.If the reset vector(located at address0xFFFE)contains0xFFFF(e.g.,flash is not programmed),the CPU goes into LPM4immediately after power-up.INTERRUPT SOURCE INTERRUPT FLAG SYSTEM INTERRUPTWORDADDRESS PRIORITYPower-UpExternal ResetWatchdogFlash MemoryPC Out--of--Range(see Note4)PORIFGRSTIFGWDTIFGKEYV(see Note1)Reset0xFFFE15,highestNMIOscillator FaultFlash Memory Access ViolationNMIIFG(see Notes1and3)OFIFG(see Notes1and3)ACCVIFG(see Notes1,2,and4)(Non)maskable(Non)maskable(Non)maskable0xFFFC14Timer_A5TA1CCR0CCIFG0(see Note2)Maskable0xFFFA13Timer_A5TA1CCR1to TACCR4CCIFGs,and TAIFG(see Notes1and2)Maskable0xFFF812Comparator_A+CAIFG Maskable0xFFF611 Watchdog Timer+WDTIFG Maskable0xFFF410USCI_A0/B0ReceiveUCA0RXIFG(see Note1),UCB0RXIFG(SPI mode),orUCB0STAT UCALIFG,UCNACKIFG,UCSTTIFG,UCSTPIFG(I2C mode)(see Note1)Maskable0xFFF29USCI_A0/B0TransmitUCA0TXIFG(see Note1),UCB0TXIFG(SPI mode),orUCB0RXIFG and UCB0TXIFG(I2C mode)(see Note1)Maskable0xFFF08ADC10ADC10IFG(see Note2)Maskable0xFFEE7 Timer_A3TACCR0CCIFG0(see Note2)Maskable0xFFEC6Timer_A3TACCR1CCIFG1and TACCR2CCIFG2,TAIFG(see Notes1and2)Maskable0xFFEA5I/O Port P1(Eight Flags)P1IFG.0to P1IFG.7(see Notes1and2)Maskable0xFFE840xFFE630xFFE42 I/O Port P2(Eight Flags)P2IFG.0to P2IFG.7(see Notes1and2)Maskable0xFFE21 Basic Timer1/RTC BTIFG Maskable0xFFE00,lowest NOTES: 1.Multiple source flags2.Interrupt flags are located in the module.3.A reset is generated if the CPU tries to fetch instructions from within the module register memory address range(0h to01FFh).(Non)maskable:the individual interrupt-enable bit can disable an interrupt event,but the general-interrupt enable cannot disable it.4.Access and key violations,KEYV and ACCVIFG.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 enable1and2Address7654321000h ACCVIE NMIIE OFIE WDTIEWDTIE Watchdog timer interrupt enable.Inactive if watchdog mode is selected.Active if watchdog timer is configured in interval timer mode.OFIE Oscillator fault enableNMIIE(Non)maskable interrupt enableACCVIE Flash access violation interrupt enableAddress7654321001h BTIE UCB0TXIE UCB0RXIE UCA0TXIE UCA0RXIEUCA0RXIE USCI_A0receive interrupt enableUCA0TXIE USCI_A0transmit interrupt enableUCB0RXIE USCI_B0receive interrupt enableUCB0TXIE USCI_B0transmit interrupt enableBTIE Basic timer interrupt enableinterrupt flag register1and2Address7654321002h NMIIFG RSTIFG PORIFG OFIFG WDTIFGrw--0rw--(0)rw--(1)rw--1rw--(0) WDTIFG Set on watchdog timer overflow(in watchdog mode)or security key violation.Reset on V CC power-up or a reset condition at RST/NMI pin in reset mode.OFIFG Flag set on oscillator faultRSTIFG External reset interrupt flag.Set on a reset condition at RST/NMI pin in reset mode.Reset on V CC power-up.PORIFG Power-on interrupt flag.Set on V CC power--up.NMIIFG Set via RST/NMI-pinAddress7654321003h BTIFG UCB0TXIFG UCB0RXIFGUCA0TXIFGUCA0RXIFGUCA0RXIFG USCI_A0receive interrupt flag UCA0TXIFG USCI_A0transmit interrupt flag UCB0RXIFG USCI_B0receive interrupt flag UCB0TXIFG USCI_B0transmit interrupt flag BTIFG Basic Timer1interrupt flagLegend rw:rw-0,1:Bit can be read and written.Bit 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.rw-(0,1):SFR bit is not present in devicememory organizationMSP430F4152MSP430F4132MemoryMain:interrupt vector Main:code memorySizeFlashFlash16KB0FFFFh--0FFE0h0FFFFh--0C000h8KB0FFFFh--0FFE0h0FFFFh--0E000hInformation memory SizeFlash256Byte010FFh--01000h256Byte010FFh--01000hBoot memory SizeROM1KB0FFFh--0C00h1KB0FFFh--0C00hRAM Size512B03FFh--0200h512B03FFh--0200hPeripherals16-bit8-bit8-bit SFR 01FFh--0100h0FFh--010h0Fh--00h01FFh--0100h0FFh--010h0Fh--00hbootstrap loader(BSL)The MSP430BSL 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,literature number SLAU265.BSL FUNCTION PM PACKAGE PINS RGZ PACKAGE PINSData transmit53--P1.037--P1.0Data receive52--P1.136--P1.1flash memory(Flash)The 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 four segments of information memory(A to D)of64bytes each.Each segment in main memory is512bytes in size.D Segments0to n may be erased in one step,or each segment may be individually erased.D Segments A to D can be erased individually,or as a group with segments0to n.Segments A to D are also called information memory.peripheralsPeripherals are connected to the CPU through data,address,and control buses and can be handled using all instructions.For complete module descriptions,see the MSP430x4xx Family User’s Guide,literature number SLAU056.oscillator and system clockThe clock system in the MSP430F41x2is supported by the FLL+module that includes support for a32768-Hz watch crystal oscillator,an internal very low-power low--frequency oscillator,an internal digitally-controlled oscillator(DCO),and an8-MHz high-frequency crystal oscillator(XT1).The FLL+clock module is designed to meet the requirements of both low system cost and low power consumption.The FLL+features a digital frequency locked loop(FLL)hardware that,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,a high-frequency crystal,or a verylow-power LF oscillatorD Main clock(MCLK),the system clock used by the CPUD Sub-Main clock(SMCLK),the sub-system clock used by the peripheral modulesD ACLK/n,the buffered output of ACLK,ACLK/2,ACLK/4,or ACLK/8brownout,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 seven8-bit I/O ports implemented—ports P1through P7.Port P7is a7-bit I/O port.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.watchdog timer (WDT+)The primary function of the 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.Basic Timer1and Real-Time Clock (RTC)The Basic Timer1has two independent 8-bit timers which can be cascaded to form a 16-bit timer/counter.Both timers can be read and written by software.The Basic Timer1is extended to provide an integrated real-time clock (RTC).An internal calendar compensates for month with less than 31days and includes leap year correction.LCD_A driver with regulated charge pumpThe LCD_A driver generates the segment and common signals required to drive an LCD display.The LCD_A 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.The module can provide a LCD voltage independent of the supply voltage via an integrated charge pump.Furthermore it is possible to control the level of the LCD voltage and thus contrast in software.Timer0_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 NUMBER DEVICE MODULE MODULE MODULE OUTPUT PIN NUMBER PM RGZ INPUTSIGNALINPUT NAMEBLOCKOUTPUT SIGNALPMRGZ48--P1.546--P1.735--P1.533--P1.7TA0CLK TACLK ACLK ACLK SMCLKSMCLK TimerNA48--P1.535--P1.5TA0CLK TACLK 53--P1.037--P1.0TA0.0CCI0A 53--P1.037--P1.052--P1.136--P1.1TA0.0CCI0B 32--P3.3--DV SS GND CCR0TA0DV CCV CC 51--P1.2--TA0.1CCI1A 51--P1.2CAOUT (internal)CCI1B ADC10(internal)ADC10(internal)DV SS GND CCR1TA1DV CCV CC 45--P7.6--TA0.2CCI2A 45--P7.6--ACLK (internal)CCI2B DV SS GND CCR2TA2DV CCV CCTimer1_A5Timer_A5is a 16-bit timer/counter with five capture/compare registers.Timer_A5can support multiple capture/compares,PWM outputs,and interval timing.Timer_A5also has extensive interrupt capabilities.Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers.TIMER_A5SIGNAL CONNECTIONSINPUT PIN NUMBER DEVICE MODULE MODULE MODULE OUTPUT PIN NUMBER PM RGZ INPUTSIGNALINPUT NAMEBLOCKOUTPUT SIGNALPMRGZ32--P3.3--TA1CLK TACLK ACLK ACLK SMCLKSMCLK TimerNA32--P3.3--TA1CLK TACLK 49--P1.4--TA1.0CCI0A 49--P1.4--50--P1.3--TA1.0CCI0B ADC10(internal)ADC10(internal)DV SS GND CCR0TA0DV CCV CC 44--P5.0--TA1.1CCI1A 44--P5.0--CAOUT (internal)CCI1B 27--P2.023--P2.0DV SS GND CCR1TA1ADC10(internal)ADC10(internal)DV CCV CC 35--P3.0--TA1.2CCI2A 35--P3.0--ACLK (internal)CCI2B 26--P2.122--P2.1DV SS GND CCR2TA263--P6.047--P6.0DV CCV CC 34--P3.1--TA1.3CCI3A 34--P3.1--61--P7.545--P7.5TA1.3CCI3B 25--P2.221--P2.2DV SS GND CCR3TA361--P7.545--P7.5DV CCV CC 33--P3.2--TA1.4CCI4A 33--P3.2--60--P7.444--P7.4TA1.4CCI4B 24--P2.320--P2.3DV SS GND CCR4TA460--P7.444--P7.4DV CCV CCuniversal serial communication interface (USCI)(USCI_A0,USCI_B0)The USCI module is used for serial data communication.The USCI module supports synchronous communication protocols like SPI (3or 4pin),I2C and asynchronous communication protocols like UART,enhanced UART with automatic baudrate detection (LIN),and IrDA.USCI_A0provides support for SPI (3or 4pin),UART,enhanced UART,and CI_B0provides support for SPI (3or 4pin)and I2C.Comparator_A+The 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.。
MSP430开发板原理图
R9 000
AVSS
1 AVcc DVss AVss P6.2/A2 P6.1/A1 P6.0/A0 RST/NMI TCK TMS TDI TDO/TDI XT2IN XT2OUT P5.7/TBoutH/SVSOUT P5.6/ACLK P5.5/SMCLK
P4.0 a b c d e f g dp R31 1K Q6 8550 R32 1K
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
VSS VCC V0 RS(CS) R/W(SID) E(SCLK) DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 PSB NC RESET NC LED+ VSS 12864-ST7920
GND AVSS P6.2 P6.1 P6.0 RST TCK TMS TDI TDO XT2IN XT2OUT P5.7 P5.6 P5.5
com1 com2 com3 com4
蜂鸣器
P1.5 P1.6 P1.7 P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 P3.0 P3.1 P3.2 P3.3 P3.4
AD采集
M 主芯片电路及430各个引脚的扩展电路 CU
A1 KEY D14
U8 LM1117-3.3V 3.3V 3 OUT 2 C5 104 R40 1K C12 10UF/16V
D13
5V
D20 + DC 2 1 C19 47UF/25V C20 104 1N4007 2 3
U5 GND OUT IN 78M05 D21 1 1N4007 D16 LED A
1 3 4 5 6 7 8 9 10 11 12 13 14 15 16
简易智能电动车 毕业设计
毕业设计(论文)中文摘要简易智能电动车摘要:本小车以MSP超低功耗单片机系列MSP430F149和MSP430FE425为核心,完成寻迹、检测金属、避障、寻光、测速等功能。
在机械结构上,对普通的小车作了改进,即用一个万用轮来代替两个前轮,使小车的转向更加灵敏。
采用PWM 驱动芯片控制电机,红外传感器检测黑线,金属传感器检测铁片,光敏器件检测光强,红外LED和一体化接收头来避障。
基于可靠的硬件设计和稳定的软件算法,实现题目要求。
而且附加实现显示起跑距离、行驶时间、检测金属数目等扩展功能。
关键词:MSP430 寻迹检测金属避障寻光毕业设计(论文)外文摘要Title: Simple Intelligent CarAbstract: This design is controlled with the MCU(MSP430F149,MSP430FE425) to complete the function of finding trace, detecting medal, avoiding barrier, tending to light and measure speed. By using infrared sensor to locate the trace、photoelectricity sense to measure the light、metal sensor to detect the metal and ultrasonic wave sensor to avoid the barrier. Based on the reliable hardware and software designing,this design is well fulfilled. In addition, such extended functions as measuring thedistance and recording the running-time are completed well. On the level of machine structure, we use a perfect wheel to make the car turning more convenience.Key words:MSP430 find trace detect medal avoid barrier and tend to light目录1 引言 (4)2 系统设计 (4)2.1 设计要求 (4)2.1.1 基本要求 (4)2.1.2发挥部分 (4)2.2方案论证与比较 (5)2.2.1电机驱动方案的选择与论证 (5)2.2.2路面寻线模块 (5)2.2.3金属检测模块 (5)2.2.4寻光模块 (5)2.2.5避障模块 (5)3硬件电路设计 (6)3.1 主控制模块 (6)3.2 电机驱动模块 (8)3.3 寻迹模块 (9)3.4 金属检测模块 (11)3.5 寻光避障模块 (11)3.6 测距和显示模块 (12)3.7电源模块 (13)4软件设计 (14)4.1 寻迹算法 (14)4.2 寻光,避障算法 (16)4.3串口通信 (20)5.系统测试 (22)5.1测试用仪表: (22)5.2测试数据: (22)结论 (23)致谢 (23)参考文献 (23)附录 (24)附件1:使用TI芯片 (24)附件2:元器件清单 (24)附件3:实物及PCB 图片 (25)1 引言随着素质教育的越来越被重视,很多学校都把制作智能小车作为首选课题,智能小车有趣生动并且还牵扯到机械结构、电子基础、传感器原理、自动控制、单片机、编程等诸多学科知识,学生通过动手实践能大大提高解决实际问题的能力,而且智能小车还是一个很好的硬件平台,只要增加一些控制电路就能完成循迹小车,机器人等课题。
MSP430电路图集锦
MSP430电路图集锦:创新设计思维2014年11月12日10:11 来源:电子发烧友网整合作者:Dick 我要评论(0)标签:TI(566)MSP430(499)MSP430系列单片机是美国德州仪器开始推向市场的一种16位超低功耗、具有精简指令集的混合信号处理器。
称之为混合信号处理器,是由于其针对实际应用需求,将多个不同功能的模拟电路、数字电路模块和微处理器集成在一个芯片上,以提供“单片机”解决方案。
该系列单片机多应用于需要电池供电的便携式仪器仪表中。
下面一起来看看基于MSP430的设计电路图集锦。
1、采用MSP430单片机的可穿戴式血糖仪电路介绍了一种便携式血糖仪的设计。
该设计主要从低功耗及精确性的角度出发,以MSP430系列单片机为核心,葡萄糖氧化酶电极为测试传感器,较快地测试出血糖浓度。
此外,所设计的血糖仪还具有储存功能,有助于用户查看血糖浓度历史值和变化趋势。
血糖测试电路:在酶电极两端滴入血液后,会产生自由电子。
由于电极两端存在激励电压,就会有定向电流流过电极。
该激励电压是由ADC模块提供的1.5V稳压通过电阻分压而产生的,大约在300mV左右,它能产生μA级别的定向电流。
由于A/D转换模块测量的是电压,所以需要将该定向电流转换成电压,并且进行一定的放大。
本系统采用图2所示的电路来实现电流到电压的转换和放大。
运算放大器LM358的反相端连接血糖试纸上的酶电极,当有血液滴入时,该电极与地之间为等效电阻Rx,流过该电阻的电流正比于血液中的血糖浓度值。
MSP430的A/D模块输出1.5V的稳压通过R2 和R3分压,产生300mV的激励电压,该电压通过运放的正端加到电极两端。
R4起到反馈放大的作用,它将运放的输出范围限定在A/D模块的转换范围内。
在PCB板布线时,由于运放输出和MSP430的ADC模块输入I/O口之间的走线比较长,为了确保测量值的准确,需要对测试电压进行滤波,C21就是用来起滤波作用的,以减少走线过长所引入的外来干扰对血糖测试的影响。
MSP430F149数据手册_引脚图_参数
An IMPORTANT NOTICE at the end of this data sheet addresses availability,warranty,changes,use in safety-critical applications,intellectual property matters and other important disclaimers.PRODUCTION DATA.MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 20181Device Overview1.1Features•Low Supply Voltage Range,1.8V to 3.6V •Ultra-Low Power Consumption:–Active Mode:280µA at 1MHz,2.2V –Standby Mode:1.6µA–Off Mode (RAM Retention):0.1µA •Five Power-Saving Modes•Wakeup From Standby Mode in Less Than 6µs •16-Bit RISC Architecture,125-ns Instruction Cycle Time•12-Bit Analog-to-Digital Converter (ADC)With Internal Reference,Sample-and-Hold,and Autoscan Feature•16-Bit Timer_B With Seven Capture/Compare-With-Shadow Registers•16-Bit Timer_A With Three Capture/Compare Registers•On-Chip Comparator•Serial Onboard Programming,No External Programming Voltage Needed,Programmable Code Protection by Security Fuse•Serial Communication Interface (USART),Functions as Asynchronous UART or Synchronous SPI Interface–Two USARTs (USART0,USART1)On MSP430F14x and MSP430F14x1Devices –One USART (USART0)On MSP430F13x Devices•Family Members (Also See Device Comparison )–MSP430F133–8KB +256Bytes of Flash Memory,256Bytes of RAM –MSP430F135–16KB +256Bytes of Flash Memory,512Bytes of RAM–MSP430F147,MSP430F1471–32KB +256Bytes of Flash Memory,1KB of RAM–MSP430F148,MSP430F1481–48KB +256Bytes of Flash Memory,2KB of RAM–MSP430F149,MSP430F1491–60KB +256Bytes of Flash Memory,2KB of RAM 1.2Applications•Sensor Systems •Industrial Controls•Hand-Held Meters1.3DescriptionThe Texas Instruments MSP430™family of ultra-low-power microcontrollers (MCUs)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 MSP430F13x,MSP430F14x,and MSP430F14x1MCUs support two built-in 16-bit timers,a fast 12-bit ADC on the MSP430F13x and the MSP430F14x devices,one USART on the MSP430F13x devices or two USARTs on the MSP430F14x and MSP430F14x1devices,and 48I/O pins.The hardware multiplier enhances the performance and offers a broad code and hardware-compatible family solution.For complete module descriptions,see the MSP430x1xx Family User’s Guide .XT2IN XT2OUTTMS TCK TDI/TCLK TDO/TDIRST/NMIR 2MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Device Overview Copyright ©2000–2018,Texas Instruments Incorporated(1)For the most current device,package,and ordering information,see the Package Option Addendum in Section 8,or see the TI website at .(2)The sizes shown here are approximations.For the package dimensions with tolerances,see the Mechanical Data in Section 8.Device Information (1)PART NUMBERPACKAGE BODY SIZE (2)MSP430F149IPM LQFP (64)10mm ×10mm MSP430F149IPAG TQFP (64)10mm ×10mm MSP430F1491IRTD VQFN (64)9mm ×9mm1.4Functional Block DiagramsFigure 1-1shows the functional block diagram for the MSP430F13x MCUs.Figure 1-1.Functional Block Diagram,MSP430F13xXT2OUTTMS TCK TDI/TCLK TDO/TDIRST/NMIRR 3MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Device Overview Copyright ©2000–2018,Texas Instruments Incorporated Figure 1-2.Functional Block Diagram,MSP430F14xFigure 1-3shows the functional block diagram for the MSP430F14x1MCUs.Figure 1-3.Functional Block Diagram,MSP430F14x14MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Table of Contents Copyright ©2000–2018,Texas Instruments IncorporatedTable of Contents1Device Overview (1)1.1Features ..............................................11.2Applications ...........................................11.3Description ............................................11.4Functional Block Diagrams (2)2Revision History .........................................53Device Comparison . (6)3.1Related Products (6)4Terminal Configuration and Functions (7)4.1Pin Diagrams .........................................74.2Signal Descriptions (105)Specifications (16)5.1Absolute Maximum Ratings (16)5.2ESD Ratings........................................165.3Recommended Operating Conditions ...............165.4Supply Current Into AV CC and DV CC ExcludingExternal Current .....................................175.5Thermal Resistance Characteristics ................185.6Schmitt-Trigger Inputs –Ports P1,P2,P3,P4,P5,and P6...............................................185.7Standard Inputs –RST/NMI,JTAG (TCK,TMS,TDI/TCLK,TDO/TDI)...............................185.8Inputs –Px.y,TAx,TBx............................185.9Leakage Current ....................................195.10Outputs –Ports P1,P2,P3,P4,P5,and P6.......195.11Output Frequency ..................................195.12Typical Characteristics –Ports P1,P2,P3,P4,P5,and P6Outputs (20)5.13Wake-up Time From LPM3.........................215.14RAM .................................................215.15Comparator_A .......................................215.16Typical Characteristics –Comparator_A ............225.17PUC and POR ......................................235.18DCO Frequency .....................................245.19DCO When Using R OSC .............................255.20Crystal Oscillator,LFXT1...........................265.21Crystal Oscillator,XT2..............................265.22USART0,USART1..................................265.2312-Bit ADC,Power Supply and Input RangeConditions ...........................................275.2412-Bit ADC,External Reference ....................275.2512-Bit ADC,Built-In Reference . (28)5.2612-Bit ADC,Timing Parameters....................305.2712-Bit ADC,Linearity Parameters ...................305.2812-Bit ADC,Temperature Sensor and Built-In V MID315.29Flash Memory .......................................315.30JTAG Interface ......................................325.31JTAG Fuse.........................................326Detailed Description (33)6.1CPU .................................................336.2Instruction set .......................................346.3Operating Modes ....................................346.4Interrupt Vector Addresses ..........................356.5Bootloader (BSL)....................................356.6JTAG Fuse Check Mode ............................366.7Memory ..............................................366.8Peripherals ..........................................406.9Input/Output Diagrams (48)7Device and Documentation Support (59)7.1Getting Started and Next Steps .....................597.2Device Nomenclature ...............................597.3Tools and Software .................................617.4Documentation Support .............................627.5Related Links ........................................637.6Community Resources ..............................637.7Trademarks ..........................................637.8Electrostatic Discharge Caution .....................647.9Export Control Notice ...............................647.10Glossary .............................................648Mechanical,Packaging,and OrderableInformation (65)5MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Revision History Copyright ©2000–2018,Texas Instruments Incorporated 2Revision HistoryNOTE:Page numbers for previous revisions may differ from page numbers in the current version.Changes from February 12,2009to May 23,2018Page•Document format and organization changes throughout ........................................................................1•Added Section 1.2,Applications ....................................................................................................1•Added Section 3,Device Comparison ............................................................................................6•Added Section 5.2,ESD Ratings ..................................................................................................16•Removed note (2)with duplicate information from the f LFXT1parameter in Section 5.3,Recommended OperatingConditions ...........................................................................................................................16•Removed duplicate conditions "XTS =0,SELM =0or 1"from the second row of Test Conditions on the I (AM)parameter in Section 5.4,Supply Current Into AV CC and DV CC Excluding External Current ..............................17•Added Section 5.5,Thermal Resistance Characteristics ......................................................................18•Removed ADC12DIV from the equation in the TYP value of the t CONVERT parameter (because ADC12CLK isafter division)in Section 5.26,12-Bit ADC,Timing Parameters ..............................................................30•Changed all instances of bootstrap loader to bootloader throughout document ............................................35•Added Section 7,Device and Documentation Support (59)6MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Device Comparison Copyright ©2000–2018,Texas Instruments Incorporated(1)For the most current package and ordering information,see the Package Option Addendum in Section 8,or see the TI website at.(2)Package drawings,thermal data,and symbolization are available at .(3)Each number in the sequence represents an instantiation of Timer_A with its associated number of capture/compare registers and PWM output generators available.For example,a number sequence of 3,5would represent two instantiations of Timer_A,the first instantiation having 3and the second instantiation having 5capture/compare registers and PWM output generators,respectively.(4)Each number in the sequence represents an instantiation of Timer_B with its associated number of capture/compare registers and PWM output generators available.For example,a number sequence of 3,5would represent two instantiations of Timer_B,the first instantiation having 3and the second instantiation having 5capture/compare registers and PWM output generators,respectively.3Device ComparisonTable 3-1summarizes the features of the device variants in this data sheet.Table 3-1.Device Comparison (1)(2)Device Flash SRAM Timer_A (3)Timer_B (4)USART COMP_AADC12(Channels)I/Os Package MSP430F14960KB 2KB 372184864-pin PM 64-pin PAG 64-pin RTD MSP430F149160KB 2KB 372184864-pin PM 64-pin RTD MSP430F14848KB 2KB 372184864-pin PM 64-pin PAG 64-pin RTD MSP430F148148KB 2KB 372184864-pin PM 64-pin RTD MSP430F14732KB 1KB 372184864-pin PM 64-pin PAG 64-pin RTD MSP430F147132KB 1KB 372184864-pin PM 64-pin RTD MSP430F13516KB512bytes331184864-pin PM 64-pin PAG 64-pin RTD MSP430F1338KB 256bytes 331184864-pin PM 64-pin PAG 64-pin RTD3.1Related ProductsFor information about other devices in this family of products or related products,see the following links.TI 16-bit and 32-bit microcontrollers High-performance,low-power solutions to enable the autonomousfuture Products for MSP430ultra-low-power microcontrollersOne platform.One ecosystem.Endlesspossibilities.Products for other MSP430microcontrollers MCUs for metrology,monitoring,system control,andcommunications Companion Products for MSP430F149Review products that are frequently purchased or used with thisproduct.Reference Designs The TI Designs Reference Design Library is a robust reference design library thatspans analog,embedded processor,and connectivity.Created by TI experts to help you jump start your system design,all TI Designs include schematic or block diagrams,BOMs,and design files to speed your time to market.171819P5.4/MCLK P5.3P5.2P5.1P5.0P4.7/TBCLK P4.6P4.5P4.4P4.3P4.2/TB2P4.1/TB1P4.0/TB0P3.7P3.6P3.5/URXD0484746454443424140393837363534332012345678910111213141516DV CC P6.3/A3P6.4/A4P6.5/A5P6.6/A6P6.7/A7V REF+XIN XOUT Ve REF+V REF−/Ve REF−P1.0/TACLK P1.1/TA0P1.2/TA1P1.3/TA2P1.4/SMCLK21222324P 5.6/A C L K T D O /T D I 63626160596458A V P 6.2/A 2P 6.1/A 1P 6.0/A 0R S T /N M I T C K T M S P 2.6/A D C 12C L K P 2.7/T A 0P 3.0/S T E 0P 3.1/S I M O 0P 1.7/T A 2P 2.1/T A I N C L K P 2.2/C A O U T /T A 0P 2.3/C A 0/T A 1P 2.4/C A 1/T A 2P 2.5/R o s c 5655545725262728295352P 1.5/T A 0X T 2I N X T 2O U T 515049303132P 3.2/S O M I 0P 3.3/U C L K 0P 3.4/U T X D 0P 5.7/T B O U T HT D I /T C L K P 5.5/S M C L KA V D V P 1.6/T A 1P 2.0/A C L K C CS SS S7MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and Functions Copyright ©2000–2018,Texas Instruments Incorporated 4Terminal Configuration and Functions4.1Pin DiagramsFigure 4-1shows the pinout for the MSP430F133and MSP430F135MCUs in the 64-pin PM,PAG,and RTD packages.Figure 4-1.64-Pin PM,PAG,or RTD Package (Top View)for MSP430F133and MSP430F135171819P5.4/MCLK P5.3/UCLK1P5.2/SOMI1P5.1/SIMO1P5.0/STE1P4.7/TBCLK P4.6/TB6P4.5/TB5P4.4/TB4P4.3/TB3P4.2/TB2P4.1/TB1P4.0/TB0P3.7/URXD1P3.6/UTXD1P3.5/URXD0484746454443424140393837363534332012345678910111213141516DV CC P6.3/A3P6.4/A4P6.5/A5P6.6/A6P6.7/A7V REF+XIN XOUT Ve REF+V REF−/Ve REF−P1.0/TACLK P1.1/TA0P1.2/TA1P1.3/TA2P1.4/SMCLK21222324P 5.6/A C L K T D O /T D I 63626160596458A V P 6.2/A 2P 6.1/A 1P 6.0/A 0R S T /N M I T C K T M S P 2.6/A D C 12C L K P 2.7/T A 0P 3.0/S T E 0P 3.1/S I M O 0P 1.7/T A 2P 2.1/T A I N C L K P 2.2/C A O U T /T A 0P 2.3/C A 0/T A 1P 2.4/C A 1/T A 2P 2.5/R o s c 5655545725262728295352P 1.5/T A 0X T 2I N X T 2O U T 515049303132P 3.2/S O M I 0P 3.3/U C L K 0P 3.4/U T X D 0P 5.7/T B O U T HT D I /T C L K P 5.5/S M C L KA V D V P 1.6/T A 1P 2.0/A C L K C CS SS S8MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and FunctionsCopyright ©2000–2018,Texas Instruments IncorporatedFigure 4-2shows the pinout for the MSP430F147,MSP430F148,and MSP430F149MCUs in the 64-pin PM,PAG,and RTD packages.Figure 4-2.64-Pin PM,PAG,or RTD Package (Top View)for MSP430F147,MSP430F148,and MSP430F149171819P5.4/MCLK P5.3/UCLK1P5.2/SOMI1P5.1/SIMO1P5.0/STE1P4.7/TBCLK P4.6/TB6P4.5/TB5P4.4/TB4P4.3/TB3P4.2/TB2P4.1/TB1P4.0/TB0P3.7/URXD1P3.6/UTXD1P3.5/URXD0484746454443424140393837363534332012345678910111213141516DV CC P6.3P6.4P6.5P6.6P6.7ReservedXIN XOUT DV SS DV SSP1.0/TACLK P1.1/TA0P1.2/TA1P1.3/TA2P1.4/SMCLK21222324P 5.6/A C L K T D O /T D I 63626160596458A V P 6.2P 6.1P 6.0R S T /N M I T C K T M S P 2.6P 2.7/T A 0P 3.0/S T E 0P 3.1/S I M O 0P 1.7/T A 2P 2.1/T A I N C L K P 2.2/C A O U T /T A 0P 2.3/C A 0/T A 1P 2.4/C A 1/T A 2P 2.5/R o s c 5655545725262728295352P 1.5/T A 0X T 2I N X T 2O U T 515049303132P 3.2/S O M I 0P 3.3/U C L K 0P 3.4/U T X D 0P 5.7/T B O U T HT D I /T C L K P 5.5/S M C L KA V D V P 1.6/T A 1P 2.0/A C L K C CS SS S9MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and Functions Copyright ©2000–2018,Texas Instruments Incorporated Figure 4-3shows the pinout for the MSP430F1471,MSP430F1481,and MSP430F1491MCUs in the 64-pin PM and RTD packages.Figure 4-3.64-Pin PM or RTD Package (Top View)for MSP430F1471,MSP430F1481,and MSP430F149110MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and FunctionsCopyright ©2000–2018,Texas Instruments Incorporated4.2Signal DescriptionsTable 4-1describes the signals for the MSP430F13x and MSP430F14x MCUs.See Table 4-2for the MSP430F14x1signal descriptions.Table 4-1.Signal Descriptions for MSP430F13x and MSP430F14xSIGNAL NAME PIN NO.I/O DESCRIPTIONAV CC 64Analog supply voltage,positive terminal.Supplies the analog portion of the ADC.AV SS 62Analog supply voltage,negative terminal.Supplies the analog portion of the ADC.DV CC 1Digital supply voltage,positive terminal.Supplies all digital parts.DV SS63Digital supply voltage,negative terminal.Supplies all digital parts.P1.0/TACLK 12I/O General-purpose digital I/O pin Timer_A,clock signal TACLK inputP1.1/TA013I/OGeneral-purpose digital I/O pinTimer_A,capture:CCI0A input,compare:Out0output BSL transmitP1.2/TA114I/O General-purpose digital I/O pinTimer_A,capture:CCI0A input,compare:Out0output BSL transmitP1.3/TA215I/O General-purpose digital I/O pinTimer_A,capture:CCI2A input,compare:Out2output P1.4/SMCLK 16I/O General-purpose digital I/O pin SMCLK signal outputP1.5/TA017I/O General-purpose digital I/O pin Timer_A,compare:Out0output P1.6/TA118I/O General-purpose digital I/O pin Timer_A,compare:Out1output P1.7/TA219I/O General-purpose digital I/O pin Timer_A,compare:Out2output/P2.0/ACLK 20I/O General-purpose digital I/O pin ACLK outputP2.1/TAINCLK21I/OGeneral-purpose digital I/O pin Timer_A,clock signal at INCLK P2.2/CAOUT/TA022I/OGeneral-purpose digital I/O pin Comparator_A outputTimer_A,capture:CCI0B input BSL receiveP2.3/CA0/TA123I/OGeneral-purpose digital I/O pin Timer_A,compare:Out1output Comparator_A inputP2.4/CA1/TA224I/O General-purpose digital I/O pin Timer_A,compare:Out2output Comparator_A inputP2.5/R OSC 25I/O General-purpose digital I/O pininput for external resistor defining the DCO nominal frequency P2.6/ADC12CLK 26I/O General-purpose digital I/O pin Conversion clock for ADC P2.7/TA027I/O General-purpose digital I/O pin Timer_A,compare:Out0outputP3.0/STE028I/O General-purpose digital I/O pinSlave transmit enable for USART0in SPI mode P3.1/SIMO029I/O General-purpose digital I/O pinSlave in/master out of USART0in SPI mode P3.2/SOMI030I/O General-purpose digital I/O pinSlave out/master in of USART0in SPI modeP3.3/UCLK031I/O General-purpose digital I/OUSART0clock:external input in UART or SPI mode,output in SPI mode P3.4/UTXD032I/OGeneral-purpose digital I/O pinTransmit data out for USART0in UART mode11MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and Functions Copyright ©2000–2018,Texas Instruments IncorporatedTable 4-1.Signal Descriptions for MSP430F13x and MSP430F14x (continued)SIGNAL NAMEPIN NO.I/O DESCRIPTION (1)MSP430F14x devices onlyP3.5/URXD033I/O General-purpose digital I/O pin Receive data in for USART0in UART mode P3.6/UTXD1(1)34I/O General-purpose digital I/O pin Transmit data out for USART1in UART mode P3.7/URXD1(1)35I/O General-purpose digital I/O pin Receive data in for USART1in UART mode P4.0/TB0.36I/O General-purpose digital I/O pin Timer_B,capture:CCI0A or CCI0B input,compare:Out0output P4.1/TB137I/O General-purpose digital I/O pin Timer_B,capture:CCI1A or CCI1B input,compare:Out1output P4.2/TB238I/O General-purpose digital I/O pin Timer_B,capture:CCI2A or CCI2B input,compare:Out2output P4.3/TB3(1)39I/O General-purpose digital I/O pin Timer_B,capture:CCI3A or CCI3B input,compare:Out3output P4.4/TB4(1)40I/O General-purpose digital I/O pin Timer_B,capture:CCI4A or CCI4B input,compare:Out4output P4.5/TB5(1)41I/O General-purpose digital I/O pin Timer_B,capture:CCI5A or CCI5B input,compare:Out5output P4.6/TB6(1)42I/O General-purpose digital I/O pin Timer_B,capture:CCI6A or CCI6B input,compare:Out6output P4.7/TBCLK43I/O General-purpose digital I/O pin Timer_B,clock signal TBCLK input P5.0/STE1(1)44I/O General-purpose digital I/O pin Slave transmit enable for USART1in SPI mode P5.1/SIMO1(1)45I/O General-purpose digital I/O pin Slave in/master out of USART1in SPI mode P5.2/SOMI1(1)46I/O General-purpose digital I/O pin Slave out/master in of USART1in SPI mode P5.3/UCLK1(1)47I/O General-purpose digital I/O pin USART1clock:external input in UART or SPI mode,output in SPI mode P5.4/MCLK48I/O General-purpose digital I/O pin Main system clock MCLK output P5.5/SMCLK49I/O General-purpose digital I/O pin Submain system clock SMCLK output P5.6/ACLK50I/O General-purpose digital I/O pin Auxiliary clock ACLK output P5.7/TBOUTH51I/O General-purpose digital I/O pin Switch all PWM digital output ports to high impedance for Timer_B7(TB0to TB6)P6.0/A059I/O General-purpose digital I/O pin Analog input A0for ADC P6.1/A160I/O General-purpose digital I/O pin Analog input A1for ADC P6.2/A261I/O General-purpose digital I/O pin Analog input A2for ADC P6.3/A32I/O General-purpose digital I/O pin Analog input A3for ADC P6.4/A43I/O General-purpose digital I/O pin Analog input A4for ADC P6.5/A54I/O General-purpose digital I/O pin Analog input A5for ADC P6.6/A65I/O General-purpose digital I/O pin Analog input A6for ADC P6.7/A76I/O General-purpose digital I/O pinAnalog input A7for ADC12MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and Functions Copyright ©2000–2018,Texas Instruments IncorporatedTable 4-1.Signal Descriptions for MSP430F13x and MSP430F14x (continued)SIGNAL NAMEPIN NO.I/O DESCRIPTION RST/NMI58I Reset input Nonmaskable interrupt input port Bootloader start TCK57I Test clock,the clock input port for device programming test and bootloader start TDI/TCLK55I Test data input or test clock input.The device protection fuse is connected to TDI/TCLK.TDO/TDI54I/O Test data output or programming data input TMS56I Test mode select,used as an input port for device programming and test VeREF+10I Input for an external reference voltage to the ADC VREF+7O Output of positive terminal of the reference voltage in the ADC VREF −/VeREF −11I Negative terminal for the ADC reference voltage for both sources,the internal reference voltage or an external applied reference voltage XIN8I Input port for crystal oscillator XT1,standard or watch crystals can be connected XOUT9O Output terminal of crystal oscillator XT1XT2IN53I Input port for crystal oscillator XT2,only standard crystals can be connected XT2OUT52O Output terminal of crystal oscillator XT2QFN Pad NA NA QFN package pad,connect to DV SS13MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and Functions Copyright ©2000–2018,Texas Instruments Incorporated Table 4-2describes the signals for the MSP430F14x1MCUs.See Table 4-1for the MSP430F13x and MSP430F14x signal descriptions.Table 4-2.Signal Descriptions for MSP430F14x1SIGNAL NAMEPIN NO.I/O DESCRIPTION AV CC64Analog supply voltage positive terminal AV SS62Analog supply voltage negative terminal DV CC1Digital supply voltage,positive terminal.Supplies all digital parts.DV SS63Digital supply voltage,negative terminal.Supplies all digital parts.P1.0/TACLK12I/O General-purpose digital I/O pin Timer_A,clock signal TACLK input P1.1/TA013I/O General-purpose digital I/O pin Timer_A,capture:CCI0A input,compare:Out0output BSL transmit P1.2/TA114I/O General-purpose digital I/O pin Timer_A,capture:CCI1A input,compare:Out1output P1.3/TA215I/O General-purpose digital I/O pin Timer_A,capture:CCI2A input,compare:Out2output P1.4/SMCLK16I/O General-purpose digital I/O pin SMCLK signal output P1.5/TA017I/O General-purpose digital I/O pin Timer_A,compare:Out0output P1.6/TA118I/O General-purpose digital I/O pin Timer_A,compare:Out1output P1.7/TA219I/O General-purpose digital I/O pin Timer_A,compare:Out2output P2.0/ACLK20I/O General-purpose digital I/O pin ACLK output P2.1/TAINCLK 21I/O General-purpose digital I/O pinTimer_A,clock signal at INCLKP2.2/CAOUT/TA022I/O General-purpose digital I/O pinTimer_A,capture:CCI0B inputComparator_A outputBSL receiveP2.3/CA0/TA123I/O General-purpose digital I/O pinTimer_A,compare:Out1outputComparator_A inputP2.4/CA1/TA224I/O General-purpose digital I/O pinTimer_A,compare:Out2outputComparator_A inputP2.5/R OSC 25I/O General-purpose digital I/O pinInput for external resistor defining the DCO nominal frequencyP2.626I/O General-purpose digital I/O pinP2.7/TA027I/O General-purpose digital I/O pinTimer_A,compare:Out0outputP3.0/STE028I/O General-purpose digital I/O pinSlave transmit enable for USART0in SPI modeP3.1/SIMO029I/O General-purpose digital I/O pinSlave in/master out of USART0in SPI modeP3.2/SOMI030I/O General-purpose digital I/O pinSlave out/master in of USART0in SPI modeP3.3/UCLK031I/O General-purpose digital I/OUSART0clock:external input in UART or SPI mode,output in SPI modeP3.4/UTXD032I/O General-purpose digital I/O pinTransmit data out for USART0in UART modeP3.5/URXD033I/OGeneral-purpose digital I/O pinReceive data in for USART0in UART mode14MSP430F149,MSP430F148,MSP430F147MSP430F1491,MSP430F1481,MSP430F1471MSP430F135,MSP430F133SLAS272H –JULY 2000–REVISED MAY 2018Terminal Configuration and FunctionsCopyright ©2000–2018,Texas Instruments Incorporated Table 4-2.Signal Descriptions for MSP430F14x1(continued)SIGNAL NAMEPIN NO.I/O DESCRIPTION P3.6/UTXD134I/O General-purpose digital I/O pin Transmit data out for USART1in UART mode P3.7/URXD135I/O General-purpose digital I/O pin Receive data in for USART1in UART mode P4.0/TB0.36I/O General-purpose digital I/O pin Timer_B,capture:CCI0A or CCI0B input,compare:Out0output P4.1/TB137I/O General-purpose digital I/O pin Timer_B,capture:CCI1A or CCI1B input,compare:Out1output P4.2/TB238I/O General-purpose digital I/O pin Timer_B,capture:CCI2A or CCI2B input,compare:Out2output P4.3/TB339I/O General-purpose digital I/O pin Timer_B,capture:CCI3A or CCI3B input,compare:Out3output P4.4/TB440I/O General-purpose digital I/O pin Timer_B,capture:CCI4A or CCI4B input,compare:Out4output P4.5/TB541I/O General-purpose digital I/O pin Timer_B,capture:CCI5A or CCI5B input,compare:Out5output P4.6/TB642I/O General-purpose digital I/O pin Timer_B,capture:CCI6A or CCI6B input,compare:Out6output P4.7/TBCLK43I/O General-purpose digital I/O pin Timer_B,clock signal TBCLK input P5.0/STE144I/O General-purpose digital I/O pin Slave transmit enable for USART1in SPI mode P5.1/SIMO145I/O General-purpose digital I/O pin Slave in/master out of USART1in SPI mode P5.2/SOMI146I/O General-purpose digital I/O pin Slave out/master in of USART1in SPI mode P5.3/UCLK147I/O General-purpose digital I/O pin USART1clock:external input in UART or SPI mode,output in SPI mode P5.4/MCLK48I/O General-purpose digital I/O pin Main system clock MCLK output P5.5/SMCLK49I/O General-purpose digital I/O pin Submain system clock SMCLK output P5.6/ACLK50I/O General-purpose digital I/O pin Auxiliary clock ACLK output P5.7/TBOUTH51I/O General-purpose digital I/O pin Switch all PWM digital output ports to high impedance for Timer_B7(TB0to TB6)P6.059I/O General-purpose digital I/O pin P6.160I/O General-purpose digital I/O pin P6.261I/O General-purpose digital I/O pin P6.32I/O General-purpose digital I/O pin P6.43I/O General-purpose digital I/O pin P6.54I/O General-purpose digital I/O pin P6.65I/O General-purpose digital I/O pin P6.76I/O General-purpose digital I/O pin RST/NMI58I Reset input Nonmaskable interrupt input port Bootloader start TCK57I Test clock,the clock input port for device programming test and bootloader start TDI/TCLK55I Test data input or test clock input.The device protection fuse is connected to TDI/TCLK.TDO/TDI54I/O Test data output or programming data input TMS56I Test mode select,used as an input port for device programming and test DV SS10I Connect to DV SS Reserved7Reserved,do not connect externally。
MSP430F149开发板电路原理图
U9 DAC0832
CS W R1 AGND D3 D2 D1 D0 Vref Rfb DGND
VCC IL E W R2 XFE R D4 D5 D6 D7 Iout2 Iout1
20
VCC
19
18 DAC_W R
17 DAC_CS
16 DAC_D4
15 DAC_D5
14 DAC_D6
13 DAC_D7
JP9 HE ADER 8X2
P1 .0
P1 0
P1 .1
1
2
P1 1
P1 .2
3
4
P1 2
P1 .3
5
6
P1 3
P1 .4
7
8
P1 4
P1 .5
9
10
P1 5
P1 .6
11
12
P1 6
P1 .7
13
14
P1 7
15
16
X2
C1
30p f
Y1
11. 0592M
C2
30p f
X1
J4
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
4 5 6 15 16 17
D/I R/W E CS1 CS2 RST
LC M_D 0 LC M_D 1 LC M_D 2 LC M_D 3 LC M_D 4 LC M_D 5 LC M_D 6 LC M_D 7
7 8 9 10 11 12 13 14
D0 D1 D2 D3 D4 D5 D6 D7
LC D1286 4
LED LED LED LED LED LED LED LED
TI MSP430FR2355超低功耗开发方案
TI MSP430FR2355超低功耗FRAM MCU开发方案TI公司的MSP430FR2355是超低功耗MSP430FRx系列基于FRAM的微控制器(MCU),提供扩展的数据记录和安全功能,在FRAM微控制器系列产品中采用小型LQFP封装(7mm × 7 mm),集成了各种外设和超低功耗. FRAM(铁电存储器)是一种尖端的存储技术,在非易失存储器中集合了闪存和RAM的最好特性.MSP430FR2355工作电压1.8V-3.6V,具有16位RISC架构,高达24MHz系统时钟和8MHz FRAM接入,32KB可编FRAM,512B信息FRAM和4KB RAM,12路12位ADC,两个增强的比较器和集成的6位DAC 作为基准电压,四个智能模拟组合体(SAC-L3),三个16位计时器有三个捕获/比较寄存器(Timer_B3),一个16位计时器有七个捕获/比较寄存器(Timer_B7),32位硬件乘法器(MPY).器件的工作温度–40°到105°C,主要用在烟雾和热检测器,传感器发送器,电路中断器,传感器信号调理,有线工业通信,光模块以及其电池组管理和收费标签.本文介绍了MSP430FR2355主要特性,功能框图以及开发板MSP-EXP430FR2355 LaunchPad™主要特性,框图,电路图,材料清单和PCB设计图.MSP430FR215x and MSP430FR235x microcontrollers (MCUs) are part of the MSP430™ MCU value line portfolio of ultra-low-power low-cost devices for sensing and measurement applications. MSP430FR235x MCUs integrate four configurable signal-chain modules called smart analog combos, each of which can be used as a 12-bit DAC or a configurable programmable-gain Op-Amp to meet the specific needs of a system while reducing the BOM and PCB size. The device also includes a 12-bit SAR ADC and two comparators. The MSP430FR215x and MSP430FR235x MCUs all support an extended temperature range from –40° up to 105°C, so higher temperature industrial applications can benefit from the devices’FRAM data-logging capabilities. The extended temperature range allows developers to meet requirements of applications such as smoke detectors, sensor transmitters, and circuit breakers.The MSP430FR215x and MSP430FR235x MCUs feature a powerful 16-bit RISC CPU, 16-bit registers, and a constant generator that contribute to maximum code efficiency. The digitally controlled oscillator (DCO) allows the device to wake up from low-power modes to active mode typically in less than 10 μs.The MSP430 ultra-low-power (ULP) FRAM microcontroller platform combines uniquely embedded FRAM and a holistic ultra-low-power system architecture, allowing system designers to increase performance while lowering energy consumption. FRAM technology combines the low-energy fast writes, flexibility, and endurance of RAM with the nonvolatile behavior of flash.MSP430FR215x and MSP430FR235x MCUs are supported by an extensive hardware and software ecosystem with reference designs and code examples to get your design started quickly. Development kits include the MSP-EXP430FR2355 LaunchPad™ development kit and the MSP-TS430PT48 48-pin target development board. TI also provides free MSP430Ware™ software, which is available as a component of Code Co mposer Studio™ IDE desktop and cloud versions within TI Resource Explorer.The MSP430 MCUs are also supported by extensive online collateral, training, and online support through the E2E™ community forum.MSP430FR2355主要特性:• Embedded microcontroller– 16-bit RISC architecture up to 24 MHz– Extended temperature: –40°C to 105°C– Wide supply voltage range from 3.6 V down to 1.8 V (operational voltage is restricted by SVS levels, see VSVSH- and VSVSH+ in PMM, SVS and BOR)• Optimized low-power modes (at 3 V)–Active mode: 142 μA/MHz– Standby:– LPM3 with 32768-Hz crystal: 1.43 μA (with SVS enable d)– LPM3.5 with 32768-Hz crystal: 620 nA (with SVS enabled)– Shutdown (LPM4.5): 42 nA (with SVS disabled)• Low-power ferroelectric RAM (FRAM)– Up to 32KB of nonvolatile memory– Built-in error correction code (ECC)– Configurable write protection– Unified memory of program, constants, and storage– 1015 write cycle endurance– Radiation resistant and nonmagnetic• Ease of use– 20KB ROM library includes driver libraries and FFT libraries• High-performance analog– One 12-channel 12-bit analog-to-digital converter (ADC)– Internal shared reference (1.5, 2.0, or 2.5 V)– Sample-and-hold 200 ksps– Two enhanced comparators (eCOMP)– Integrated 6-bit digital-to-analog converter (DAC) as reference voltage– Programmable hysteresis– Configurable high-power and low-power modes– One with fast 100-ns response time– One with 1-μs response time with 1.5-μA low power– Four smart analog combo (SAC-L3) (MSP430FR235x devices only)– Supports General-Purpose Operational Amp lifi er (OA)– Rail-to-rail input and output– Multiple input selections– Configurable high-power and low-power modes– Configurable PGA mode supports– Noninverting mode: ×1, ×2, ×3, ×5, ×9, ×17, ×26, ×33– Inverting mode: ×1, ×2, ×4, ×8, ×16, ×25, ×32– Built-in 12-bit reference DAC for offset and bias settings– 12-bit voltage DAC mode with optional references• Intelligent digital peripherals– Three 16-bit timers with three capture/compare registers each (Timer_B3)– One 16-bit timer with seven capture/compare registers each (Timer_B7)– One 16-bit counter-only real-time clock counter (RTC)– 16-bit cyclic redundancy checker (CRC)– Interrupt compare controller (ICC) enabling nested hardware interrupts– 32-bit hardware multiplier (MPY32)– Manchester codec (MFM)• Enhanced serial communications– Two enhanced USCI_A (eUSCI_A) modules support UART, IrDA, and SPI– Two enhanced USCI_B (eUSCI_B) modules support SPI and I2C• Clock system (CS)– On-chip 32-kHz RC oscillator (REFO)– On-chip 24-MHz digitally controlled oscillator (DCO) with frequency locked loop (FLL) – ±1% accuracy with on-chip reference at room temperature– On-chip very low-frequency 10-kHz oscillator (VLO)– On-chip high-frequency modulation oscillator (MODOSC)– External 32-kHz crystal oscillator (LFXT)– External high-frequency crystal oscillator up to 24 MHz (HFXT)– Programmable MCLK prescaler of 1 to 128– SMCLK derived from MCLK with programmable prescaler of 1, 2, 4, or 8• General input/output and pin functionality– 44 I/Os on 48-pin package– 32 interrupt pins (P1, P2, P3, and P4) can wake MCU from LPMs• Development tools and software (also see Tools and Software)–LaunchPad™ development kit (MSP-EXP430FR2355)– Target development board (MSP-TS43048PT)– Free professional development environments• Family members (also see Device Comparison)– MSP430FR2355: 32KB of program FRAM, 512 bytes of data FRAM, 4KB of RAM– MSP430FR2353: 16KB of program FRAM, 512 bytes of data FRAM, 2KB of RAM– MSP430FR2155: 32KB of program FRAM, 12 bytes of data FRAM, 4KB of RAM– MSP430FR2153: 16KB of program FRAM, 512 bytes of data FRAM, 2KB of RAM• Package options– 48-pin: LQFP (PT)– 40-pin: VQFN (RHA)– 38-pin: TSSOP (DBT)– 32-pin: VQFN (RSM)MSP430FR2355应用:• Smoke and heat detectors• Sensor transmitters• Circuit breakers• Sensor signal conditioning• Wired industrial communications• Optical modules• Battery pack management• Toll tags图1. MSP430FR235x系列功能框图开发板MSP-EXP430FR2355 LaunchP ad™MSP430FR2355 LaunchPad™ Development Kit (MSP-EXP430FR2355)The MSP-EXP430FR2355 LaunchPad™ Development Kit is an easy-to-use Evaluation Module (EVM) for the MSP430FR2355 microcontroller (MCU). The kit contains everything needed to start developing on the ultra-low-power MSP430FRx FRAM microcontroller platform, including onboard debug probe for programming, debugging, and energy measurements. The board also features onboard buttons and LEDs for quick integration of a simple user interface, an onboard Grove connector for external Grove sensors, as well as an ambient light sensor to showcase the integrated analog peripherals.The 24-MHz MSP430FR2355 device features 32KB of embedded FRAM (ferroelectric random access memory), a nonvolatile memory known for its ultra-low power, high endurance, and high speed write access. Combined with 4KB of on-chip RAM, users have access to 32KB of memory to split between their program and data as required. For example, a data logging application may require a large data memory with relatively small program memory, so the memory may be allocated as required between program and data memory.Rapid proto typing is simplified by the 40-pin BoosterPack™ plug-in module headers, which support a wide range of available BoosterPack plug-in modules. You can quickly add features like wireless connectivity, graphical displays, environmental sensing, and much more. Design your own BoosterPack plug-in module or choose among many already available from TI and third-party developers.开发板MSP-EXP430FR2355 LaunchPad™主要特性:• MSP ULP FRAM technology based MSP430FR2355 16-bit MCU• EnergyTrace technology available for ultra-low-power debugging• 40-pin LaunchPad development kit standard leveraging the BoosterPack plug-in module ecosystem • Onboar d eZ-FET debug probe• 2 buttons and 2 LEDs for user interaction• Ambient light sensor for the Out-of-Box Experience demo• Grove connector for external Grove sensors开发板MSP-EXP430FR2355 LaunchPad™包括:• 1 MSP-EXP430FR2355 LaunchPad Development Kit• 1 Mic ro USB cable• 1 Quick Start Guide图2. 开发板MSP-EXP430FR2355 LaunchPad™外形图图3. 开发板MSP-EXP430FR2355 LaunchPad™概述图图4. 开发板MSP-EXP430FR2355 LaunchPad™框图图5. 开发板MSP-EXP430FR2355 LaunchPad™电路图(1)图6. 开发板MSP-EXP430FR2355 LaunchPad™电路图(2)图7. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(1)图8. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(2)图9. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(3)图10. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(4)图11. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(5)图12. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(6)图13. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(7)图14. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(8)图15. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(9)图16. 开发板MSP-EXP430FR2355 LaunchPad™ PCB设计图(10)。
msp430f系列中文资料
超低功耗微控制器MSP430F40xi n de s i g n x31xLCD92x32xLCD84ADC14x33xLCD120Timer_A USART MPY8-bit T/Cx11x1Comp_AX12x USARTi n de s i g n F13xTimer_B ADC12USART Comp_AF14xTimer_B ADC122 USART MPY Comp_ANewNewF41xi n de s i g n F42xi n de s i g n F44xi n de s i g nUltra -low power design withM S P430August 00 / 11FLASH 型的时钟系统(F13x,F14x)2 个晶振, 1 个DCO, 适应不同频率需要采样/转换控制可编程参考源选择片内温度传感器Ultra -low power design withM S P430August 00 / 34F11x 应用实例)Floating Point Package)Starter Kit MSP-STK430X320TI 软件包仿真器评估板TI 软件库C-编译器编程器)TI Programming AdapterAugust 00 / 37New电源的高效率y电池缩减/ 电池寿命延长y电源电路简化/ 可远程供电硬件简化y外部元件极少y集成实时钟y集成LCD 驱动电路y集成ADC加速产品开发y用Flash 或OTP 型可快速制作样机y用Flash 型可作现场更新y容易学习和设计程序y代码效率高廉价的微控制器MSP430和开发工具FET/sc/docs/products/micro/msp430E-mail: lierda@ (wzptt)/sc/docs/products/micro/msp430E-mail: lierda@ (wzptt)。
MSP430单片机最小系统
MSP430单片机最小系统8.2BSL编程器原理图8-1MSP430单片机正常启动复位时序信号当TEST引脚出现至少两个跳变沿,当TEST为高电平而RST引脚出现高电平,如图8-2所示启动程序载入器(Boottrap)所需的时序时,单片机进入启动程序载入器工作方式。
图8-2MSP430单片机进入BSL时序信号图8-43.3V电源电路图图8-3中USB插座的1、2、3、4脚分别为5v电源,D-和D+差分信号线,地线。
5、6脚为插座外壳接地引脚。
电脑可通过1脚提供5V电源,由于PL23032图8-5IAR生成MSP430-t某t编程文件配置2)打开MSPFET软件,做如下设置,如图8-6所示,并选择芯片型号为MSP430F149。
3图8-6MSPFET配置通过电脑的并行端口实现MSP430单片机的JTAG端口编程和调试,对于初学者是一种成本较低的方案,下面介绍用电脑的并行口实现JTAG编程,但是在4用JTAG烧断保密熔丝后,要再想修改闪存程序,就只能用BSL方法了。
图8-9IAR的调试器配置5图8-10IAR的FET调试器并口配置8.4MSP403F149单片机最小系统设计前面的章节中,我们主要采用MSP403F249作为仿真器件详述了单片机内部功能和外部扩展电路的设计和应用,本节主要介绍实用的单片机小系统开发板的硬件设计,可以作为单片机实验学习使用。
在选择单片机型号时,由于市面上MSP403F149较为常用且购买容易,且与MSP403F249功能基本相同,管脚也兼容,因此选择MSP403F149作为单片机最小系统的主芯片。
该单片机的特点如下:1.8V~3.6V超宽供电电压5种低功耗模式,从tandby模式唤醒时间小于6μ0.1uARAM保持0.8uA实时时钟模式2KRAM,60KB+256BFlahMemory(支持IAP)片内硬件乘法器支持四种乘法运算两个具有PWM输出单元的16-Bit定时器(TimerA3,TimerB7)两个UART接口,两个SPI接口(与UART复用)一个8通道12-Bit模数转换器(ADC),具有片内参考电压源一个模拟比较器,看门狗电路等开发板可使用的资源如下:两种可选供电方式(标准稳压器接口、USB接口)符合TI标准的14芯JTAG仿真调试端口蜂鸣器18B20单芯片12-Bit高精度温度传感器12-Bit模数转换器(ADC)接口和单路输出10-Bit数模转换器(DAC)6标准的1602液晶接口和标准的12864液晶接口六位共阴极动态扫描数码管电路RTC实时时钟+纽扣电池IIC接口的EEPROM4某4的矩阵式键盘标准的RS232接口和RS485接口含8个LED的流水灯电路(红、黄、绿)1)单片机电路图8-11MSP430F149单片机电路7图8-12MSP430F149电源电路2)RS232串行口电路这里选用MA某3232作为单片机串行口转换芯片,MA某3232是一款3.0V~5.5V供电、低功耗的RS232收发器,支持高达1Mbp的通信速率,仅需要四个0.1uF的电容作为外部元件即能工作。
MSP430核心板介绍
浙江求是科教设备有限公司
各个线路板模块介绍
1-11 1-12 1-13 1-14 1-15 1-16 1-17 1-18 1-19 1-20 DCP-211-A DCP-212-A DCP-213-A DCP-214-A DCP-215-A DCP-216-A DCP-217-A DCP-218-A DCP-219-A DCP-220-A 串口DA IIC转换电路 V/F和F/V转换电路 可编程增益放大电路 信号滤波电路 开关量输入输出电路 功率运放输出电路 双路PWM输出电路 H桥PWM输出电路 环境参数检测电路 仪用放大电路
电脑串口采用的是RS232接口,其发送TXD和接收RXD数据线均采用EIA电平,即1: -3~-15V;0:+3~+15V;而单片机采用的是3.3和0V电平,MAX232实现电平转换;
浙江求是科教设备有限公司
DCP-200 MSP430F5438A核心板
以太网原理及接口
LEDA
LEDB 1.采用SPI通信,ENC28J60通信时钟SCLK高达20MHZ,网口 中含两个可编程LED,指示连接、发送和接收,支持全双工和 半双工通信,内置8K的双端口的SRAM
MSP430F5438A结构框图
浙江求是科教设备有限公司
DCP-200 MSP430F5438A核心板
MSP430F5438A参数
● 256K Flash,16K RAM; ●P1,P2 16个中断IO口; ●16位CRC 校验; ●16通道AD采用,200ksps,12路外部采样,同时内置一个温度传感器, 可以采集芯片温度 ●支持32位硬件乘法器; ●RTC实时时钟; ●4个USCI,UCAx支持串口,IrDA/SPI,UCBx支持SPI/IIC ●15个捕捉/比较定时器 ●JTAG/SBW(4线/2线仿真下载) ●UCS统一时钟管理 ●系统看门狗Watchdogs ●支持多种低功耗模式LPM ●支持欠压或低压自动复位 ●3通道DMA传输;
最小系统板v1.2使用说明
伯乐电子MSP430F149最小系统板使用说明手册---V1.2版PCB配套说明2011-4感谢使用本产品!MSP430 系列是一个16 位的、具有精简指令集的、超低功耗的混合型单片机,在1996 年问世,由于它具有极低的功耗、丰富的片内外设和方便灵活的开发手段,已成为众多单片机系列中一颗耀眼的新星。
MSP430F149单片机是MSP430X1XX系列中性价比比较好的一款单片机,通过对MSP430F149的学习,相信你很快就能掌握MSP430系列单片机的知识。
第一章:硬件资源1.1实物图及功能概览:1.1.1焊接图片:1.1.2开发板硬件支持:名称型号说明主芯片MSP430F149 TI公司16位单片机电源芯片AMS1117 3.3V电源稳压芯片485通信MAX485 实现远距通讯1602液晶接口接插件液晶接口,并能实现对比度调节PS2接口接插件接标准PS2键盘温度传感器18B20 接入传感器即可单总线方式测温度E2PROM A T24C02 外部存储器芯片串口芯片MAX3232 串口电平转换,3.3V供电实时时钟芯片DS1302 可直接读取时间信息红外接收芯片HS0038B 一体化接收头,方便接收红外信号1.2本板资源功能概述:1、板载MSP430F149芯片2、提供32.768KHz和8MHz两种晶振连接方式3、3.3V稳压电源电路及电源开关4、采用电源及USB供电,并带输出电容5、板载TI标准JTAG接口(14针),支持硬件仿真和USB下载。
6、所有IO口(包括AD电源等)均引出。
7、8路彩色LED已上拉,并设置使能跳线。
8、随板赠送万能红外接收头,可用普通遥控器进行解码实验。
9、板上带有max3232电平转换芯片,可与电脑做串行通信实验。
10、引出串口1,LED指示通讯状态,实现MCU-PC通讯。
11.板载24C02,避免烧写flash等操作时意外擦除用户数据。
12.板上已接入温度电路,只需接入18b20即可实现温度测量。
MSP430F169单片机结构
MSP430F169单片机结构MSP430F16x系列是TI的MSP430F1x系列(FLASH存储器型)单片机中功能最强的子系列。
MSP430F16x具有更大的程序和数据存储区、更多的外围模块,其片内甚至还包括一个硬件乘法器。
同时F16x系列单片机开发工具简便,固化于FLASH 存储器内的程序易于在线升级和调试,内置A/D和D/A转换模块,其具有丰富的片内外围,性价比极高,所以本题目采用这个型号作为微处理器。
德州仪器公司(TI)推出的MSP430F16x系列是超低功耗Flash型16位RISC指令集单片机。
它采用"冯-纽曼"结构,RAM、ROM和全部外围模块都位于同一个地址空间内。
MSP430F16x单片机的设计结构完全以系统低功耗运行为核心。
它的体系结构由五种低功耗模式组成,最优化延长电池寿命以利于便携式的测量应用。
器件以最大代码效率的一台强有力的16 位RISC CPU 、16 位记数器, 和恒定的发电器为特色。
数控晶振(DCO) 允许在不到6微秒内从低功率方式唤醒到活动方式。
MSP430x15x/16x/161x 系列是微型控制器配置与二个固定16 位定时器, 8路快速的12 位A/D 转换器, 双路12 位D/A 转换器,两个通用连续同步/非同步通信接口(USART), I2C 、DMA, 和48 个I/O 引脚。
另外, MSP430x161x 系列提供强大的RAM 寻址为记忆密集和大量C 堆栈要求的应用。
典型的应用包括获取模拟信号, 转换它们成数字值, 过程和传输数据给主机系统的传感器系统。
定时器可利用在工业控制应用譬如数字式马达控制、手动仪表、光纤网络技术控制,等。
其主要部件及其功能结构如图所示:MSP430F15X/F16X系列单片机结构框图定时器B7 (仅MSP430x16x/161x):定时器B7是带有七种捕获比较记数器的16 位定时器/记数器。
定时器B7 支持倍数捕获比较, PWM 输出, 和间隔定时。
MSP430系列单片机LQFP64封装最小系统板使用指南
一、概述MSP430系列单片机是基于RISC指令集的十六位微控制器(MCU),凭借其优异的超低功耗特性和强大的数据处理能力正在被越来越多的用户所认可,其应用领域不断拓宽、市场前景十分广阔。
但是,MSP430系列单片机的一个缺憾就是很少有DIP形式的封装结构,这使得用户难于快速对MSP430的整体性能进行评估和完成某些项目的前期开发验证;为了解决这个问题,我们深入分析MSP430系列单片机不同种系间的差别,针对应用最为广泛的64脚薄型四侧引脚扁平封装(LQFP64) 的MSP430单片机推出了兼容多种型号的普适型最小系统板,在这个板子上集成了电源电路、时钟振荡电路、复位电路、JTAG调试端口等基本电路组件,并将MCU的所有通用输入输出引脚(GPIO)和外部参考电压输入引脚全部引出,便于用户直接对MSP430进行性能评估或者是将此最小系统板嵌入到目标系统中完成项目的前期验证。
二、兼容型号本最小系统板的封装形式支持以下型号的MSP430单片机:MSP430F13X,MSP430F14X,MSP430F14X1,MSP430F15X,MSP430F16X,MSP430F161X,MSP430F23X,MSP430F24X,MSP430F24X1,MSP430F241X,MSP430F261X,MSP430FE42X(A),MSP430FW42X,MSP430F41X。
但是,其中某些型号的部分IO可能不可用,具体内容请参考相应型号MCU的数据手册(datasheet)。
三、使用说明本最小系统板上默认焊接了MSP430F149型单片机,如果用户需要使用其他兼容型号的单片机那么可以直接向我们定制或者自行将F149型单片机拆下再焊接其他型号的MSP430单片机。
本最小系统板上默认焊接了32768Hz的晶体(Y2),如果用户需要此时钟振荡器工作在更高的频率那么可以直接向我们定制或者自行将32768Hz的晶体拆下再焊接更高频率的晶体,同时要在背面的C9、C10上焊接适当容值的谐振电容。
TI MSP430FR604参考设计
TI MSP430FR604(3)xSoC超声波水流量检测参考设计TIDM-1019 TI公司的MSP430FR604x和MSP430FR603x系列是超声检测和测量系统级芯片(SoC),提供集成的超声波检测解决方案(USS)模块,为宽范围流速提供高精度的测量.USS模块由于最大化集成度而很少外部组件,因而把超低功耗的计量和低成本系统组合在一起.MSP430FR604x和MSP430FR603x MCU实现高速基于ADC的数字信号收集,采用集成的低能量加速度计(LEA)模块进行优化的信号处理,以得到高精度计量解决方案和电池供电的测量应用的超低功耗.USS模块包括可编程的脉冲发生器(PPG)和带低阻抗输出驱动器的物理接口(PHY),以及精确的阻抗匹配,以提供零流量漂移(ZFD).模块还包括可编程增益放大器(PGA),高速12位8Mbps sigma-delta ADC (SDHS),用来对工业标准超声传感器进行精确的信号收集.此外,MSP430FR604x和MSP430FR603x MCU还集成电其它外设,以改善计量系统集成度.器件具有计量测试接口(MTIF)模块,以实现脉冲发生.此外MCU还具有8复接器的LCD驱动器,RTC,12位SAR ADC,模拟比较器,高档加密加速度计(AES256)和循环冗余校验(CRC)模块.主要用在超声智能水表,超声智能热表,液为检测和漏水检测.中电网为您整理如下详细资料,本文介绍了MSP430FR604x系列主要特性,MSP430FR604(3)x系列功能框图,以及参考设计TIDM-1019主要特性和主要系统指标,框图,软件架构框图,电路图,材料清单和PCB设计图.The Texas Instruments MSP430FR604x and MSP430FR603x family of ultrasonic sensingan dmea surement SoCs are powerful, highly integrated microcontrollers (MCUs) that are optimized for waterand heat meters. The MSP430FR604x MCUs offer an integrated Ultrasonic Sensing Solution (USS)module, which provides high accuracy for a wide range of flow rates. The USS module helps achieveultra-low-power metering combined with lower system cost due to maximum integration requiring very fewexternal components. MSP430FR604x and MSP430FR603x MCUs implement a high-speed ADC-basedsignal acquisition followed by optimized digital signal processing using the integratedLow-EnergyAccelerator (LEA) module to deliver a high-accuracy metering solution with ultra-low power optimum forbattery-powered metering applications.The USS module includes a programmable pulse generator (PPG) and a physical interface (PHY) with alow-impedance output driver for optimum sensor excitation and accurate impendence matching to deliverbest results for zero-flow drift (ZFD). The module also includes a programmable gain amp lifi er (PGA) anda high-speed 12-bit 8-Msps sigma-delta ADC (SDHS) for accurate signal acquisition from industrystandard ultrasonic transducers.Additionally, MSP430FR604x and MSP430FR603x MCUs integrate other peripherals to improve systemintegration for metering. The devices have a metering test interface (MTIF) module to implement pulsegeneration to indicate flow measured by the meter. The MSP430FR604x and MSP430FR603x MCUs alsohave an on-chip 8-mux LCD driver, an RTC, a 12-bit SAR ADC, an analog comparator, an advancedencryption accelerator (AES256), and a cyclic redundancy check (CRC) module.MSP430FR604x and MSP430FR603x MCUs are supported by an extensive hardware and softwareecosystem with reference designs and code examples to get your design started quickly. Developmentkits include the MSP-TS430PZ100E 100-pin target development board andEVM430-FR6047 ultrasonicwater flow meter EVM. TI also provides free software including the ultrasonic sensing design center,ultrasonic sensing software library, and MSP430Ware™ software.TI’s MSP430 ultra-low-power (ULP) FRAM microcontroller platform combines uniquely embedded FRAMand a holistic ultra-low-power system architecture, letting system designers increase performance whilelowering energy consumption. FRAM technology combines the low-energy fast writes, flexibility, andendurance of RAM with the nonvolatility of flash.MSP430FR604x系列主要特性:• Best-in-Class Ultrasonic Water-Flow MeasurementWith Ultra-Low Power Consumption– <25-ps Differential Time-of-Flight (dTOF)Accuracy– High-Precision Time Measurement Resolution of<5 ps– Ability to Detect Low Flow Rates (<1 Liter perHour)– Approximately 3-μA Overall CurrentConsump tion With One Measurement perSecond• Compliant to and Exceeds ISO 4064, OIML R49,and EN 1434 Accuracy Standards• Ability to Directly Interface Standard UltrasonicSensors (up to 2.5 MHz)• Integrated Analog Front End – Ultrasonic SensingSolution (USS)– Programmable Pulse Generation (PPG) toGenerate Pulses at Different Frequencies– Integrated Physical Interface (PHY) With Low-Impedance (4-Ω) Output Driver to Control Inputand Output Channels– High-Performance High-Speed 12-Bit Sigma-Delta ADC (SDHS) With Output Data Rates upto 8 Msps – Programmable Gain Amplifier (PGA) With–6.5 dB to 30.8 dB– High-Performance Phase-Locked Loop (PLL)With Output Range of 68 MHz to 80 MHz• Metering Test Interface (MTIF)– Pulse Generator and Pulse Counter– Pulse Rates up to 1016 Pulses per Second (p/s)– Count Capacity up to 65535 (16 Bit)– Operates in LPM3.5 With 200 nA (Typical)• Low-Energy Accelerator (LEA)– Operation Independent of CPU– 4KB of RAM Shared With CPU– Efficient 256-Point Complex FFT:Up to 40× Faster Than Arm® Cortex®-M0+ Core• Embedded Microcontroller– 16-Bit RISC Architecture up to 16-MHz Clock– Wide Supply Voltage Range From 3.6 V Downto 1.8 V (Minimum Supply Voltage is Restrictedby SVS Levels, See the SVS Specifications)• Optimized Ultra-Low-Power Modes–Active Mode: Approximately 120 μA/MHz– Standby Mode With Real-Time Clock (RTC)(LPM3.5): 450 nA (1)– Shutdown (LPM4.5): 30 nA• Ferroelectric Random Access Memory (FRAM)– Up to 256KB of Nonvolatile Memory– Ultra-Low-Power Writes– Fast Write at 125 ns Per Word (64KB in 4 ms)– Unified Memory = Program + Data + Storage inOne Space– 1015 Write Cycle Endurance– Radiation Resistant and Nonmagnetic• Intelligent Digital Peripherals– 32-Bit Hardware Multiplier (MPY)– 6-Channel Internal DMA– RTC With Calendar and Alarm Functions– Six 16-Bit Timers With up to SevenCapture/Compare Registers Each– 32-Bit and 16-Bit Cyclic Redundancy Check(CRC)• High-Performance Analog– 16-Channel Analog Comparator– 12-Bit SAR ADC Featuring Window Comparator,Internal Reference, and Sample-and-Hold, up to16 External Input Channels– Integrated LCD Driver With Contrast Control forup to 264 Segments• Multifunction Input/Output Ports– Accessible Bit-, Byte-, and Word-Wise (in Pairs)– Edge-Selectable Wake From LPM on All Ports– Programmable Pullup and Pulldown on All Ports• Code Security and Encryption– 128- or 256-Bit AES Security Encryption andDecryption Coprocessor– Random Number Seed for Random NumberGeneration Algorithms– IP Encapsulation Protects Memory FromExternal Access– FRAM Provides Inherent Security Advantages• Enhanced Serial Communication– Up to Four eUSCI_A Serial CommunicationPorts– UART With Automatic Baud-Rate Detection– IrDA Encode and Decode– Up to Two eUSCI_B Serial CommunicationPorts– I2C With Multiple-Slave Addressing– Hardware UART or I2C Bootloader (BSL)• Flexible Clock System– Fixed-Frequency DCO With 10 SelectableFactory-Trimmed Frequencies– Low-Power Low-Frequency Internal ClockSource (VLO)– 32-kHz Crystals (LFXT)– High-Frequency Crystals (HFXT)• Development Tools and Software (Also See Toolsand Software)– Ultrasonic Sensing Design Center GraphicalUser Interface– Ultrasonic Sensing Software Library– EVM430-FR6047 Water Meter EvaluationModule Board– MSP-TS430PZ100E Target Socket Board for100-Pin Package– Free Professional Development EnvironmentsWith EnergyTrace++ Technology–MSP430Ware™ for MSP430™ Microcontrollers• Device Comparison Summarizes the AvailableDevice Variants and Package Options • For Complete Module De scriptions, See theMSP430FR58xx, MSP430FR59xx, and MSP430FR6xx Family User ’ s GuideMSP430FR604x系列应用:• Ultrasonic Smart Water Meters• Ultrasonic Smart Heat Meters• Liquid Level Sensing• Water Leak Detection图1.MSP430FR604x系列功能框图图2.MSP430FR603x系列功能框图水流测量的超声波检测子系统参考设计TIDM-1019This reference design helps designers develop anultrasonic water-metering subsystem using anintegrated, ultrasonic sensing solution (USS) module,which provides superior metrology performance, withlow-power consumption and maximum integration.Thedesign is based on the 256KB MSP430FR6047microcontroller (MCU), with integratedhigh-speed,ADC-based, signal acquisition and an integrated lowenergyaccelerator (LEA) to optimize digital signalprocessing.The TIDM-1019 device was built using the MSP430FR6047 MCU from TI and other discrete components.The implementation is based on the calculation of differential time of flight (ToF), involving two transducersfor upstream and downstream paths. Transducer excitation and signal captures are implemented usingthe internal, ultrasonic sensing solution (USS) module of the MSP430FR6047 MCU. The signal is thenpassed through a series of algorithms using the LEA of the MSP430™ MCU, to calculate the necessaryoutput data in a quick and power-effective manner.The TIDM-1019 device uses the EVM430-FR6047 evaluation kit, targeted specifically for ultrasonicsensing applications like water-flow meters. The EVM includes a connector to interface with otherBoosterPack™ plug-in modules. The reference design includes all the hardware files required.The software is written in a modular and portable manner by using MSP430Ware™ softwareandMSP430’s Ultrasonic Sensing Water Metering Library from TI.The reference design also includes the Ultrasonic Design Center, which enable s designers to modify andoptimize different configuration parameters through an easy-to-use GUI. The USS Design Center letsusers implement and customize different transceivers easily without modifying the application code in theexample project.The design files include source code for an application example and corresponding Code ComposerStudio™ (CCS) and IAR Embedded Workbench™projects.参考设计TIDM-1019主要特性:• Best-In-Class Metrology Performance: 25-ps Zero-Flow Drift (ZFD) and 32-ps Single-Shot StandardDeviation• Low-Power Consumption: Approximately 2.5 μAWith 1-MHz Transducer at 1 Measurement perSecond For Metrology• Flexibility to Test Different Pipes and Transducers;Direct Interface to Pair of Transducers• Easy to Test and Customi ze Using UltrasonicSensing Design Center Graphical User Interface(GUI) • Ultrasonic Sensing Software Library Includes Timeof Flight (ToF) Algorithms• Stand-Alone Demo Using Liquid-Crystal Display(LCD)参考设计TIDM-1019应用:• Water Meter• Heat Meter• Flow T ransmitter图3.MSP430FR604x系列MCU超声检测EVM EVM430-FR6047外形图图4.参考设计TIDM-1019框图图5.参考设计TIDM-1019软件架构框图参考设计TIDM-1019主要系统指标:图6.EVM430-FR6047连接水表固定连接图图7.参考设计TIDM-1019电路图(1)图8.参考设计TIDM-1019电路图(2)图9.参考设计TIDM-1019电路图(3)图10.参考设计TIDM-1019电路图(4)图11.参考设计TIDM-1019电路图(5)。
MSP430F169
MSP430F169中文资料:内部结构,引脚图及特点介绍MSP430F169 为16-Bit RISC 架构,最高运算速度8MIPS 之单芯片微控制器,为目前业界专为低功耗应用需求,所设计的微控制器。
广泛应用在计步器、血糖计、三用电表、功率计等可携式产品应用上。
MSP430F169 芯片脚位如【图1】所示。
有五种省电工作模式,从LPM3 待机模式(消耗2.6μA @ Vcc = 3 )回复到正常工作模式( 消耗500μA @ Vcc = 3 ,1MIPS )小于6μs 的唤醒时间、且允许双外部工作频率输入、内建整合多款低功耗外围模块[17],若能再配合适当韧体程控,有相当出色优异的低功耗表现。
采用von-Neumann 结构设计共享内存地址总线(Memory address bus , MAB)及(Memory data bus , MDB),其所有内存位置,如特殊功能缓存器(SFRs)、Flash memory、RAM 或是众多模拟数字外围模块等,皆映像至同一寻址区块【图3】。
因此不需经由RAM 就能直接在Flash 内以bit、byte 及word 直接执行与存取[18]。
MSP430F169内部架构示意图如【图2】所示。
其内部各模块功能特色如下所列:1. 60KB + 256Byte可低电压作动的Flash模块(read 1.8 V、write2.7 V)可作为控制器韧体程序代码和数据的存取。
2KB 随机存取内存(RAM),在LPM4待机模式下(消耗0.5μA @ Vcc = 3),储存在RAM内的数据仍可保持。
2. 相当具弹性的工作频率系统,内建一组内部基本RC震荡频率DCO (Digitally-controlled oscillator )当外部电源供应给芯片工作电压为3.6 V时,最大可运作到8 MHz,但会随着芯片工作温度、电压而有所飘移。
另外允许两个独立外部工作频率输入,可串接的振荡器频率范围为一组LFXT1CLK(可外接低/高频振荡源):32.768KHz~8MHz及另一组XT2CLK(仅可外接高频震荡源):450KHz~8MHz。
msp430非常详细有用的讲解和例程
7
6
5
DCO.2 DCO.1 DCO.0
4 MOD.4
3 MOD.3
2 MOD.2
1 MOD.1
0 MOD.0
DCO.0-DCO.4 定义 8 种频率之一,可以分段调节 DCOCLK 频率,相邻两种频率相差 10%。而频率由注入直流发生器的电流定义。
MOD.0-MOD.4 定义在 32 个 DCO 周期中插入的 Fdco+1 周期个数,而在下的 DCO 周期 中为 Fdco 周期,控制改换 DCO 和 DCO+1 选择的两种频率。如果 DCO 常数为 7,表示 已经选择最高频率,此时不能利用 MOD.0-MOD.4 进行频率调整。
低功耗设置的技巧问题: 1、LPM4:在振荡器关闭模式期间,处理机的所有部件工作停止,此时电流消
耗最小。此时只有在系统上电电路检测到低点电平或任一请求异步响应中断的外部中断 事件时才会从新工作。因此在设计上应含有可能需要用到的外部中断才采用这种模式。 否则发生不可预料的结果。
2、LPM3:在 DC 发生器关闭期间,只有晶振是活动的。但此时设置的基本时序条 件的 DC 发生器的 DC 电流被关闭。由于此电路的高阻设计,使功耗被抑制。注:当从 DC 关闭到启动 DC0 要花一端时间 (ns-us)
微控网供应 MSP430 单片机系列开发工具,欢迎订购。 模块列表 1- 复位模块 2- 时钟模块 3- IO 端口模块 4- WDT 看门狗模块 5- Timer A 定时器模块 6- 比较器 A 模块 7- ADC12 数模转换模块 8- USART 串行异步通讯模块 9- CPU 模块及全局资料 10-MSP430 其它应用介绍
3-SMCLK: 子 系 统 时 钟 , SMCLK 是 由 2 个 时 钟 源 信 号 所 提 供 . 他 们 分 别 是 XT2CLK(F13、F14)和 DCO,如果是 F11、F11X1 则由 LFXT1CLK 代替 TX2CLK。同样 可设置相关寄存器来决定分频因子及相关的设置。