Various knowledge analysis solutions related to the single-chip monitoring chip X25043

Publisher:艺泉阁Latest update time:2012-07-02 Source: 21ic Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Preface

X25043 is a single-chip monitoring chip from XICOR. It combines four commonly used functions: power-on reset, watchdog timer, voltage monitoring and serial EEPROM functions into a single package. This combination reduces system cost and board space requirements. The following will introduce their functions separately.

2. Principle of X25043

X25043 integrates multiple functions. Figure 1 is its functional block diagram:


Figure 1 X25043 block diagram

/WP is the write protection of X25043, which is valid at low level.

SI is the serial data input port, and the rising edge of the serial clock is valid.

SO is the serial data output port, and the falling edge of the serial clock is valid.

SCK is the serial clock, which is used to control the I/O of serial data.

/CS is the chip select signal, low level is valid.

VCC is the power supply.

/RESET is the output reset signal, which is valid at low level.

2.1 Power-on reset and voltage monitoring functions

In the application of single-chip microcomputer system, the reset circuit needs to provide at least 2 states of valid reset signals after the power supply VCC and the oscillator are stable, which is a low-level signal for X25043. X25043 can provide a valid low-level signal for 200ms after the power supply and oscillator are stable, and then restore to a high-level signal. During operation, X25043 will always monitor the power supply VCC. When VCC drops to less than a preset voltage VTRIP, the /RESET output signal will be low, resetting the single-chip microcomputer system. The /RESET signal is still valid until VCC drops to 1V. The action when the power is restored is the same as the action when the power is reset. Among them, VTRIP can be reset through programming.

2.2 Watchdog Timer Function

The watchdog timer provides an independent protection system for the microcontroller. When the system fails, the X25043/45 watchdog will respond with a /RESET signal after an optional timeout period (timeout interval). The user can select this period from three preset values. Once selected, this period does not change even after the power cycle changes. In a normal microcomputer control system, the watchdog timer must be reset and the counting must be restarted after each control task is completed. For the X25043 chip, the watchdog can be reset by simply setting the /CS port level to a falling edge. The X25043 watchdog timer has three initial timing values ​​that can be selected, and the selection can be made by setting bits 2 and 3 of the status register.

2.3 Serial EEPROM Function

Electrically Erasable Programmable Read-Only Memory (EEPROM) can read out data online like EPROM. Because EEPROM has dedicated circuits for erasing and rewriting, it can be easily written and read online. The memory part of X25043/45 is a CMOS 4096-bit serial EEPROM, which is organized as 512×8 internally and can be block locked (Block Lock). Block lock can protect 1/4, 1/2 or all EEPROM arrays. After locking, it can only be read but not written. The characteristics of X25043/45 are serial peripheral interface (Serial Perpheral Interface, SPI) and software protocol that allow simple three-wire bus operation. X25043/45 uses Xicor's proprietary Direct WriteTM chip, providing a minimum endurance of 100,000 cycles/byte and a minimum data retention period of 100 years.

X25043 read and write operations

X25043 has an 8-bit command register to control its read and write operations. The operation command is written through the SI port. There are two write operation formats that require a command register, namely writing EEPROM data and writing status register. The read operation is through the SO port. X25043 also has two read formats that require a command register, namely reading EEPROM data and reading status register. As shown in Figure 2. For reading and writing the status register, the command register operation must be completed first, and then the data is read or written. For EEPROM operations, it is necessary to write the command register first, then perform I/O of the destination address, and finally the data operation. All operations are performed according to the SPI protocol under the SCK clock. The data I/O starts from the highest byte.


Figure 2 Command register format [page]

The format of the status register of X25043 is shown in Figure 3. WIP is a status indicator bit, which is readable only, indicating whether X25043 is currently busy with internal writing, which is very important in judging whether EEPROM writing is completed. The WEL bit indicates whether X25043 is currently writable. When WEL=0, X25043 cannot perform a write operation. The logical combination of BL0 and BL1 controls the block lock size of the EEPROM area. The logical combination of WD0 and WD1 determines the size of the watchdog counter timing value.


Figure 3 Status register format

3. Application of X25043 in MCU system

According to the function of X25043, we can use it in the single-chip system to expand the storage space, power-on reset, watchdog timing and power monitoring functions. Figure 4 is the interface circuit between X25043 and single-chip 8051. Schmitt trigger 74LS14 is used for clock pulse shaping to improve the ability to resist noise interference.


Figure 4 X25043 and 8051 interface circuit

Here we can set the watchdog timer value to 200ms by setting WD0 and WD1 in the status register. We must first write to the command register, and then write to the status register to set the watchdog counter value. The following is the specific assembly program (8051):

Write 8-bit data subroutine: (A puts in the 8-bit serial data to be written)

INSB: MOV R4, #8

IN1: RLC A

CLR P1.0; SCK clock is set low

NOP

NOP

MOV P1.1, C

SETB P1.0; SCK clock is set high, data is shifted in

NOP

NOP

DJNZ R4, IN1

RET

The procedure for setting the watchdog is as follows:

· · ·

SETB P1.3; Chip select valid

MOV A, #6 ;Write command WREN

LCALL INSB

MOV A, #1 ; write command WRSR

LCALL INSB

MOV A, #20H ;Write to status register, set watchdog

LCALL INSB

CLR P1.3; Chip select invalid

· · ·

4. Conclusion

The author used the X25043 chip when developing a robot control system, making full use of its power-on reset, voltage monitoring, watchdog timer and external EEPROM. This not only simplifies the hardware circuit and power-off data protection, but also improves reliability and anti-interference performance, making it very feasible to use.

Keywords:MCU Reference address:Various knowledge analysis solutions related to the single-chip monitoring chip X25043

Previous article:Analytical solution highlighting the advantages of single chip microcomputer control system
Next article:Design of PTZ controller monitoring scheme using single chip microcomputer

Recommended ReadingLatest update time:2024-11-16 17:46

The difference between ARM and MCU
  1. Software   This is probably the biggest difference. The operating system was introduced. Why was the operating system introduced? What are the benefits?   1) Convenience. This is mainly reflected in the later development, that is, developing applications directly on the operating system. Unlike a single-chip mi
[Microcontroller]
Clock Interrupt in MCU Programming
This article takes the AT89C51 system with a 6MHz clock as an example to illustrate the application of clock interrupts: Timer initial value and interrupt cycle The clock interrupt does not need to be too frequent, generally 20mS (50Hz) is sufficient. If a time base signal of one hundredth of a second is requir
[Industrial Control]
Realizing infrared remote control using enhanced 51 single-chip microcomputer experimental board
Tags: infrared receiver, infrared receiver Infrared remote control is currently the most widely used means of communication and remote control. In industrial equipment, in environments such as high voltage, radiation, toxic gases, and dust, infrared remote control is not only completely reliable but also ca
[Microcontroller]
Realizing infrared remote control using enhanced 51 single-chip microcomputer experimental board
Some words for you who are just starting to learn microcontrollers
Learning MCU ---- What should we do? Why do we need to learn microcontrollers? Microcontroller is a common course in electrical engineering majors in colleges and universities. Some schools even list it as an elective course. Among the many courses, it does not show its How important. Why should we study it? There are
[Microcontroller]
MSP430 MCU key interrupt program
#include "IRRemote.h"  void main(void)  {      //初始化      Initialize();                                 //Infinite loopwhile      (1)      {          unsigned int transmit;          //Initialize variable          transmit = ENDTRANSMIT;          //Wait for a key to be pressed          SetForPress();          //Enter
[Microcontroller]
ADC0809 made 51 single chip microcomputer 8-channel voltage acquisition
#include "reg52.h" float  shuju; unsigned char sj; unsigned int gata; unsigned char gw,sw,bw; unsigned char kk,tdao; //4-link common anode digital tube, the highest bit shows the channel number, the other three bits are voltage values ​​unsigned char code shuzi ={                                              
[Microcontroller]
Design and implementation of network switch based on single chip microcomputer control
introduction 随着计算机性能的提高及通信量的聚增,传统局域网已经越来越超出了自身负荷,交换式以太网技术应运而生,大大提高了局域网的性能。网络交换机能显著的增加带宽,可以建立地理位置相对分散的网络。局域网交换机的每个端口可并行、安全、实时传输信息,而且性能稳定、结构灵活、易于安装、便于管理,能很好地满足企业网和电信运营商宽带接入的需求。 1 Hardware Design of Network Switch As people demand more security and high bandwidth in network applications, network
[Microcontroller]
Design and implementation of network switch based on single chip microcomputer control
LPC1114 (CORTEX-M0) MCU unlock and close SWD (ISP download)
When debugging ADC with LPC1114, I changed the settings of PIO1_3, turned off SWD, and could not write programs into the microcontroller. LPC1114 also supports ISP download mode, which only requires a USB to TTL level serial port downloader and a free software Flash Magic. The method is as follows: 1. Establish hard
[Microcontroller]
LPC1114 (CORTEX-M0) MCU unlock and close SWD (ISP download)
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号