Principle and application of microprocessor real-time clock chip MM58167B

Publisher:技术掌门Latest update time:2006-11-30 Source: 国外电子元器件 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1. Overview
  MM58167B is a real-time clock source in a bus-type microprocessing system. It includes an addressable real-time counter, 56-bit on-chip RAM and two output interrupts. The valid signal of the POWER DOWN pin can make the chip enter. Power saving working mode. The chip's time base is a 32.768kHz crystal oscillator. Its features are as follows:
  ●Compatible with microprocessor (8-bit data bus);
  ●Has counter from milliseconds to months;
  ●56-bit internal RAM can be compared with real-time time;
  ●2 interrupt outputs can generate 8 kinds of interrupt signals;
  ● The POWER DOWN input can disable all input and output and leave only one STANDBY interrupt;
  ●Status bit can indicate whether a count update occurs in a read cycle;
  ●4-year calendar (no leap year);
  ●24-hour clock;
  ●Adopt 24-pin DIP package (shown in Figure 1).

2. Function module introduction
2.1 Real-time clock counting
  Each counter of the real-time clock is divided into two numbers: tens and ones. Each number consists of 4 bits to form a BCD code (see Table 1). Any unused bits maintain logic "0" when reading. ”, is ignored when writing. Any unused bits do not participate in the synthesis of BCD codes. For example, the tens digit of the hour counter should not exceed 2, so only 2 bits are needed to represent it, while the remaining 2 bits are free and represented by a dash (-).
  The addressable part of the counter is from milliseconds to months. The counter itself is a pulsation counter, and the pulsation delay is less than 60μs when working above 4.5V (less than 300μs when working at 2.2V).
2.2 On-chip RAM
  The 56-bit RAM on-chip can be used as a general data memory, and can also latch the comparison value compared with the real-time clock. An alarm interrupt can be generated whenever the current value of the real-time clock is compared with the set value latched in RAM. Only the units digit of milliseconds and the tens digit of the week are not included in the comparison (they are not used in the counter, as listed in Table 1). If the two most significant bits of a certain BCD code in RAM are set to "1", the bits are considered to be equal and will not participate in the comparison, that is, they will be blocked. Therefore, the rule for setting alarm interrupts is: all bits higher than the specified time unit are set to 0CH (i.e. 1100B, the highest 2 bits are "1"), and bits lower than the specified time unit are set to "00H". For example, if you want an alarm interrupt to occur at 10:15 am every day, the time units higher than hours (week, date, month) are set to 0CH, and the time units lower than minutes (seconds, hundredths of seconds, milliseconds) are set to 0CH. into 00H.
2.3 Interrupts and Comparators
  The chip has a total of 2 interrupt outputs. The first is the pin INTERRUPT OUTPUT (outputs a high level when the interrupt is active). This pin is programmed to output 8 types of interrupt signals, namely 10Hz, 1Hz, once per minute, once per hour, once per day, and once per week. An interrupt is generated once, once a month, or when the time set in the on-chip RAM is equal to the clock counter time. In order to enable a certain type of interrupt, just write "1" to the corresponding bit of the interrupt control register. When one or more bits are set to "1" and the counter corresponding to the bit overflows and turns to zero, the interrupt status register will be set. The corresponding bit and generates an interrupt (making the interrupt output pin appear high). As long as the interrupt status register is read, the interrupt type can be identified and the interrupt reset, as shown in Figure 2.
  The second interrupt output is the pin STANDBY INTERRUPT (open drain, active low). As long as the time set in the on-chip RAM matches the counter, and the interrupt is enabled (write "1" to the D0 bit at address 16H Allowed, write "0" to disable), the interrupt can be generated.
2.4 Power-saving operating mode
  The POWER DONW input pin is actually the second chip select signal. It can disable all inputs and outputs and leave only the STANDBY interrupt. When the pin POWER DOWN inputs a low level, the instrument will not respond to any off-chip signals. It will save the time value and open the STANDBY interrupt (must be programmed before inputting a low level). good). Before VDD switches to backup power or power-saving mode, the POWER DOWN pin should maintain a low level for at least 1μs, and when switching the VDD and POWER DOWN pin states, the levels of all input pins should be within the valid range ( V SS -0.3V~V DD +0.3V).
2.5 Counter and RAM reset and start commands.
  Writing FFH to addresses 12H and 13H can reset the counter and on-chip RAM respectively, while the start command (a write pulse for address 15H) will reset 1/1000 seconds and 1/100 seconds. , 1/10 second, second, 10 second counter. This command is used to start the clock accurately. When this command is executed, if the second counter value is greater than 59, the minute counter will increase by 1 immediately, otherwise the minute counter value will not be affected.

2.6 Status bit
  The D0 bit at address 14H is a status bit. Whenever a count flip occurs when the counter value is read, the status bit will be set to "1". If the status bit is "1", the count value should be reread. Therefore, each time the counter value is read, the status bit should be read immediately, and the read command will reset the status bit.
2.7 Test mode When
  the chip select line and write control line remain low and the address remains at 1FH, the test mode is entered. In this mode, the clock input of the ten millisecond counter is directly connected to 32.768kHz, which allows the counter to operate normally. Count at a higher frequency to achieve the purpose of product debugging. 3. Typical applications   Figure 3 shows the application circuit of MM58167B . It should be noted that pins 9 and 10 of MM58167B should be separated by a ground wire to prevent the operation of the crystal oscillator from being interfered by the address line.

Reference address:Principle and application of microprocessor real-time clock chip MM58167B

Previous article:Principle and application of microprocessor real-time clock chip MM58167B
Next article:Principle and application of microprocessor real-time clock chip MM58167B

Recommended ReadingLatest update time:2024-11-16 20:51

Pure Storage and Meta team up to develop AI supercomputer Research SuperCluster
Pure Storage announces partnership with Meta to develop AI supercomputer Research SuperCluster Pure Storage's FlashArray and FlashBlade provide RSC with a powerful and scalable storage solution. Meta believes that RSC is the fastest AI supercomputer currently, and will become the world's fa
[Embedded]
Motorola Ibiza new phone benchmark revealed: octa-core Qualcomm processor, 6GB RAM
In January, German media Technik News revealed the code names of upcoming Motorola phones, including NIO, Capri, and Ibiza, all of which are expected to debut in the first quarter of 2021. While NIO is a smartphone equipped with Snapdragon 865, Capri and Capri Plus are expected to be launched as 4G mid-range phones. T
[Mobile phone portable]
Motorola Ibiza new phone benchmark revealed: octa-core Qualcomm processor, 6GB RAM
Portworx by Pure Storage announces partnership with MongoDB
Portworx by Pure Storage announces partnership with MongoDB to bring consistent developer experience to comprehensive data services Applications developed using MongoDB help Portworx Data Services accelerate value implementation May 17, 2023, China - Pure Storage®, a global IT pioneer that provides advanced data s
[Industrial Control]
Portworx by Pure Storage announces partnership with MongoDB
Advantech's wide temperature memory SQR-SD4E, automotive and heavy industry application solutions
Advantech recently launched a new ultra-wide temperature SQRAM DDR4 3200 durable memory solution, the SQR-SD4E, which provides reliable industrial-grade stability applications in an operating temperature range of -40~+125℃. The SQR-SD4E uses Micron's original automotive-grade DRAM IC, which supports an operating tem
[Embedded]
Advantech's wide temperature memory SQR-SD4E, automotive and heavy industry application solutions
Memory Problems of 51 MCU
The 51 single-chip microcomputer addresses the memory space not by bus but by instructions. 1:51 consists of the following memory modules ROM Flash RAM has------lower 128 bits of internal RAM (00-7F)           -------higher 128 bits of internal RAM (80-FF)---           -------Special Function Register (SFR) (80-FF)  
[Microcontroller]
Rochester Electronics joins hands with SkyHigh Memory
The two parties signed a cooperation agreement to provide continuous support for high-quality NAND products. Newburyport, Massachusetts, USA, August 2023 Rochester Electronics joins hands with SkyHigh Memory to provide continuous support for low-capacity, high-quality NAND storage solutions. Rochester Electro
[Embedded]
Rochester Electronics joins hands with SkyHigh Memory
iPhone 13 memory decryption: Apple wants to reproduce the madness of the new iPad
Apple has never been aggressive enough when it comes to the memory size of the iPhone, which can be seen as the confidence they have in optimizing their own iOS system. According to the latest news, Apple may increase the memory size of the iPhone 13. If it does so, the model that will benefit will be the top-end v
[Mobile phone portable]
Static RAM structure diagram
Figure 2.2 (1) Schematic diagram of static RAM structure The structural composition diagram of the static RAM is shown in Figure 2.2 (1). The storage body is a storage matrix composed of 64×64=4096 six-tube static storage circuits. In the storage matrix, the output end of the X address decoder provides
[Analog Electronics]
Static RAM structure diagram
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号