MSP430 MCU Hardware Knowledge - Reset

Publisher:心灵飞翔Latest update time:2016-08-22 Source: eefocusKeywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The MSP430 microcontroller is an ultra-low power microprocessor that TI began to market in 1996. In addition, it also integrates many module functions, so that one MSP430 chip can complete the functions that can only be completed by multiple chips, greatly reducing the size and cost of the product. Today, the MSP430 microcontroller has been used in various fields, especially in instrumentation, monitoring, medical equipment and automotive electronics.
 
Here are its main features:
(1) Low power supply voltage range, 1.8~3.6V.
(2) Ultra-low power consumption, with 5 low power modes (to be introduced in detail later).
(3) Flexible clock usage mode.
(4) High-speed computing power, 16-bit RISC architecture, 125ns instruction cycle.
(5) Rich functional modules, including: A: multi-channel 10-14 bit AD converter; B: dual 12-bit DA converter; C: comparator; D: LCD driver; E: power supply voltage detection; F: serial port USART (UART/SPI); G: hardware multiplier; H: watchdog timer, multiple 16-bit and 8-bit timers (capable of capture, comparison, PWM output); I: DMA controller.
(6) FLASH memory, no additional high voltage is required, and the program can be controlled to write and erase the segment during operation;
(7) The MSP430 chip includes a JTAG interface. Simulation debugging can be easily realized through a simple JTAG interface converter, such as setting breakpoints, single-step execution, reading and writing registers, etc.; (8)
Fast and flexible programming mode, which can be used to load programs into the CPU through JTAG and BSL. 

    Regarding its memory structure, there is a detailed introduction in the craftsman's blog, so you can go and have a look. Here I will mainly talk about the reset of the MSP430 microcontroller. 

     There are two reset signals for MSP430: power-on reset signal (POR) and power-on clear signal (PUC). There are also signals that can trigger POR and PUC: 5 from the watchdog, 1 from the reset pin, and 1 from the signal generated by an error in writing the FLASH key value. The 

POR signal only occurs in 2 situations:
(1) the microprocessor is powered on;
(2) the system is reset when a low level is generated on the RST/NMI pin. 

    The conditions for the generation of the PUC signal:
(1) the POR signal is generated;
(2) when the watchdog is valid, the watchdog timer overflows;
(3) an error occurs when writing the watchdog timer security key value;
(4) an error occurs when writing the FLASH memory security key value. 

    The relationship between POR and PUC: the generation of the POR signal will cause the system to reset and generate the PUC signal. The PUC signal will not cause the generation of the POR signal. 

    Whether the reset is triggered by the POR signal or the PUC signal, the MSP430 will read the reset interrupt vector from address 0xFFFE, and the program will start executing from the address pointed to by the interrupt vector. Among the conditions for triggering the PUC signal, in addition to the POR generating the trigger PUC signal, the other conditions can be used to determine the cause of the PUC signal by reading the corresponding interrupt vector so as to make corresponding processing. 

    The state after the system reset (referring to POR) is:
(1) The RST/NMI pin function is set to the reset function;
(2) All I/O pins are set to input;
(3) The peripheral modules are initialized, and their register values ​​are the default values ​​in the relevant manual;
(4) The status register SR is reset;
(5) The watchdog is activated and enters the working mode;
(6) The program counter PC is loaded with the address at 0xFFFE, and the microprocessor starts to execute the program from this address. 

    There are three typical reset circuits: 
(1) Connect a 100K ohm pull-up resistor to the RST/NMI pin.
(2) On the basis of (1), connect a 0.1uf capacitor and ground one end of the capacitor to make the reset more reliable.
(3) Based on (2), a diode model IN4008 is connected in parallel with the resistor to reliably power on the system immediately after power failure.
Keywords:MSP430 Reference address:MSP430 MCU Hardware Knowledge - Reset

Previous article:MSP430 drives AT45DB041 (Flash) to read and write routines
Next article:MSP430 clock cycle machine cycle instruction cycle

Recommended ReadingLatest update time:2024-11-16 13:55

Design of smoke sensing alarm circuit with emergency lighting function
  Smoke alarms are generally composed of smoke sensors and smoke detection chips. Emergency lighting generally consists of a set of charging and discharging circuits connected to the indoor power supply. In buildings, they all need to be wired separately, which wastes resources and affects the appearance. If there is
[Microcontroller]
Design of smoke sensing alarm circuit with emergency lighting function
Application of MSP430 in frequency measurement system
1 Overview Frequency measurement plays an important role in communication systems. In recent years, the fields covered by frequency measurement technology have become more and more extensive, the measurement accuracy has become higher and higher, and the connection with different disciplines has become closer a
[Microcontroller]
Application of MSP430 in frequency measurement system
Real-time multi-task operating system based on MSP430
   introduction    1 The significance of using RTOS on MSP430   It is understandable that it is meaningless to use RTOS on MSP430. Because the hardware resources of MSP430 are limited (for example, MSP430F149 has only 2KB RAM), it is impossible to port any commercial operating system to MSP430. Currently, the only
[Microcontroller]
Real-time multi-task operating system based on MSP430
Design of weighing liquid level meter based on MSP430 single chip microcomputer
1 Introduction The liquid level measurement and control instrument is a type of intelligent instrument (referring to instruments that use microprocessors), and its development began in the 1970s . It is an intelligent product that integrates measurement and control, and is suitable for the liquid level meas
[Microcontroller]
Design of weighing liquid level meter based on MSP430 single chip microcomputer
MSP430F149 watchdog and its application
1 Overview The watchdog has two functions: 1. It can prevent the program from running away, and if the program runs away, it can reset the microcontroller; 2. It can be used as an interval generator to periodically refresh the display, read data, and perform other peripheral operations during the interrupt. 2. Setti
[Microcontroller]
Soil foundation intelligent inclinometer based on MSP430F148 single chip microcomputer
Inclinometer is an instrument for measuring the inclination, azimuth, lateral displacement and settlement of the borehole, and plays an important role in actual engineering construction. Monitoring displacement during construction is the main means of studying environmental impact. At present, most inclinometers use
[Microcontroller]
Soil foundation intelligent inclinometer based on MSP430F148 single chip microcomputer
MSP430 12864 Display
/********************************************************************  //DM430 development board controls the display test program of 12864 LCD module with font library  //The display mode is Chinese character mode, just insert 12864 into the 12864 interface  // Pay attention to the power supply of the LCD, which is l
[Microcontroller]
Experimental Challenge: Make a DDS using MSP430
http://115.com/file/c2n658ld    A software you need to use http://www.scienceprog.com/wp-content/uploads/2008/03/avrdds_proteus.zipSee    the circuit diagram and perform simulation (double-click U3, select the HEX file, and press F12 to run the simulation) The circuit diagram is also available at: Connecti
[Microcontroller]
Experimental Challenge: Make a DDS using MSP430
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号