1 Basic Structure and Internal Principle of FM3164
FM3164 uses ferroelectric crystal material. This special material enables ferroelectric memory to have the characteristics of both random access memory (RAM) and non-volatile storage. FM3164 combines non-volatile FRAM with real-time clock (RTC), processor monitor, non-volatile event counter, programmable and lockable 64-bit ID number and universal comparator. Using advanced 0.35μm manufacturing process, these functions are embedded in a 14-pin SOIC package through a universal I2C interface, thus replacing multiple components on the system board. The read/write and other control functions of the memory are realized through the industrial standard I2C bus. Its internal principle is shown in Figure 1.
A0, A1 are device address selection signals (the bus can connect up to 4 I2C devices); SCL and SDA are the communication interfaces with the CPU, where SDA is a bidirectional data port; PFI is the comparator input, and the output result is sent to the CAL/PFO pin, and it is also the clock correction signal output. When the power supply voltage is lower than 2.5 V, the clock power supply is switched to the backup battery. CNT1, CNT2 are the inputs of two external event counters.
2 FM3164 Functions
There are 25 special function registers SFRs in FM3164. The CPU controls these registers through the I2C bus to implement various functions. The internal function diagram of FM3164 is shown in Figure 2.
2.1 Memory Operation
The FM3164 series products provide different memory capacities, including 4 Kb, 16 Kb, 64 Kb and 256 Kb. The series products are software compatible, and all versions use consistent two-byte addresses to operate the memory. The memory is manufactured using ferroelectric technology, and can be read and written at the clock speed of a two-wire bus. The read and write are in bytes, and the write operation has no delay and has passed an unlimited number of read and write times. It has advantages that other similar serial memories cannot match.
2.2 Processor Detection Function
FM3164 provides two basic functions, early power failure detection and watchdog function to prevent software deadlock. When the power supply drops below the pre-programmed action point VTP, the RST pin is pulled low, which will remain at a low level until the power supply voltage is too low to maintain circuit operation. When the power supply voltage rises above VTP, the RST pin will continue to remain at a low level for about 100 ms to provide sufficient reset time at a reliable voltage level. When 1OO ms is up, the RST pin will restore the weak pull-up state to reset the system. The watchdog counter can also generate a valid reset signal. The watchdog counter is a free-running programmable counter. It is programmed to a period of 100 ms to 3 s in 100 ms steps through a 5-bit non-volatile register. It has two control bits: watchdog enable WDE and watchdog reset control bit WR. The reset signal is valid only when the watchdog is enabled and the counter times out.
2.3 Clock Operation
The real-time clock (RTC) can be backed up by a battery or capacitor. It provides a software calibration function to provide higher accuracy. The real-time clock includes a crystal oscillator, a clock divider, and a register system for user access. It divides the 32.768 Hz time base signal to provide a resolution of 1 s. The static register provides the user with read and write access to the time. The registers include seconds, minutes, hours, weeks, months, and years. The time register is synchronized with the time core through the R and W bits located in 00H. When the R bit is changed from 0 to 1, the time information is transferred from the core to the holding register for the user to read. The R bit is used to read the time. Setting bit W to 1 will freeze the user register, and clearing it to 0 will cause the value in the user register to be loaded into the time core. The W bit is used to set a new time value. The user must ensure that no illegal values are written to the register. The time value can be continuously updated except during the period when the register is frozen.
2.4 Clock Calibration
When the CAL bit in register 00H is set to 1, the clock enters calibration mode. When entering calibration mode, the CAL/PFO output pin is used for calibration function, and the comparator output is temporarily invalid. The clock calibration operation is performed by correcting the counter data through the crystal offset. In CAL mode, the CAL/PFO pin outputs a 512 Hz square wave. Any regular frequency error that deviates from 512 Hz is converted into a clock error. The user converts this error into PPM format and writes the appropriate correction value into the calibration register. The factors related to clock calibration are listed in Figure 3. Positive PPM errors require negative adjustments to reduce pulses; negative PPM errors require positive adjustments to increase pulses. Positive PPM adjustments require setting the CALS bit to 1, and negative PPM adjustments set the CLAS bit to 0. After calibration, the highest accuracy of the clock at the calibration temperature can reach ±2.17 PPM or ±0.09 minutes per month. The calibration settings are stored in FRAM, so they will not be lost even if the backup power fails. The setting value is located in the CA L. register 01H. 4-0, this value can only be written when the CAL bit is set to 1. In order to exit the calibration mode, the user must set the CAL bit to 0, at which time the CAL/PFO pin resumes the comparison output function.
2.5 Event Counter
The counting adopts programmable edge trigger mode. If the C1P position of the 0CH address is 1, CIN1 adopts the upper Rising edge trigger, otherwise falling edge trigger is used. C2P controls CIN2.
One is the memory. When accessing, bits 7 to 4 of the slave address must be set to 1010B. To access the real-time clock/processor, etc., bits 7 to 4 of the slave address must be set to 1101B. The device uses a two-wire I2C interface. The two-wire protocol consists of two pins, SDA and SCL. There are four states: start, stop, data transmission and response. The basic communication format is shown in Figure 4.
FM3164 strictly follows the timing and data format of the I2C bus. The access operation process can be described in The steps are as follows: Start → Slave address → Response → Target address → Response → (Start → Slave Address → Response) → Data (single or multiple bytes) → Response → Stop (the slave address contains the read Write command, the steps in brackets are specific to the Current Address Read and Continuous Address Read commands).
In the construction and management of important buildings and facilities, the national fire protection regulations require the installation of independent Fire alarm system. It is essential that the fire alarm system operates quickly, safely, reliably and accurately. The clock device and information storage are the most critical parts of the alarm host. Using the latest process technology, the ferroelectric non-volatile memory FM3164 can achieve The rapid storage function of alarm information and the accurate system time guarantee also solve the problem Problems with power supply voltage failure and processor freeze due to interference. |
The fire alarm controller uses STC89C54RD+ microcontroller. FM3164 is used as the information storage unit to communicate with the microcontroller through SCL and SDA. Since the microcontroller does not have an I2C bus interface, any two I/O ports are used for simulation. The real-time clock automatically switches to the backup power supply after Vcc loses power. The power supply is connected to the comparator input port PFI through a resistor divider. When VCC is lower than 3.7 V, the comparator output PFO changes from a high level to a low level. When PFO is connected to the external interrupt port of the microcontroller, the CPU generates an interrupt to complete the power-off protection function. The working principle diagram of FM3164 is shown in Figure 5.
4.2 Programming
|
|
5 Conclusion
This paper introduces the functional principle and usage of FM3164 series chip ferroelectric memory in detail and comprehensively, and gives the general hardware circuit and some control programs. FM3164 series chips replace ordinary serial memory and clock chips with their powerful functions and performance, and will be increasingly used in embedded control systems.
Previous article:Distillation CAN bus control system based on LABVIEW and OPC technology
Next article:Design of CAN/CAN Bridge in Bus Network Control
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- EEWORLD University ----3
- EEWORLD University Hall----Live Replay: STMicroelectronics SiC Products and Industrial Application Guide
- Changed the layout again
- Explanation of common parameters of transformers
- GD32E231 Learning 2: GPIO drive OLED and TC0 timing interrupt
- Ofweek Talent Network recruitment and job search results, let's talk about it
- A flaw in the MSP430F672x, 673x microcontrollers
- Looking forward to Huawei's operating system!
- Test parameters of 1630MHz125 amplifier
- Analysis of the types of pads and design standards in PCB design