NEC Electronics 78K0/Lx3 microcontroller is a high-performance 8-bit general-purpose microcontroller that uses NEC Electronics' 78K0 core. It has a variety of packages from 48Pin to 80Pin, and has a built-in 4Com/8Com mode LCD driver that can drive up to 288 LCD segments.
The Lx3 microcontroller has a built-in high-precision 8MHz oscillator circuit, and the speed of the internal oscillator circuit can be controlled through registers. For water meters that do not require a real-time clock, this can save costs and speed up software development. If you need to use an RTC, you need to connect an external 32.768kHz oscillator, which can easily implement a stepped multi-rate water fee.
In terms of communication, Lx3 has three built-in serial interfaces and two hardware modules: Manchester encoder and remote control receiver. The multiple options in remote transmission and wireless allow customers to easily cope with the ever-changing market demands.
In terms of power consumption, the static power consumption of Lx3 is less than 1μA, which can effectively extend the battery life and help improve the stability and anti-interference of the system. The operating voltage of 1.8V to 5.5V can maximize the use of battery energy. The built-in 16-level LVI module eliminates the customer's worries and monitors the battery voltage at any time. Once the battery voltage drops beyond the limit, it will immediately notify the user and store key data.
The Lx3 series microcontrollers are not only suitable for measuring meters, but also for household appliances and digital devices.
NEC Electronic Water Meter Solution
NEC electronic water meter solution uses NEC Electronics' 78K0/Lx3 microcontroller, which can store data on the microcontroller's built-in Flash memory, saving EEPROM chip costs.
In terms of power consumption, through various power-saving measures and in combination with NEC Electronics' low-power microcontroller, the whole machine achieves an ultra-low power consumption of 3.8μA when the LCD is always on. The smart water meter solution is shown in Figure 1.
● Features of NEC electronic water meter solution
NEC electronic water meter solution is a card meter solution that supports a variety of reader/writer cards and communicates with the microcontroller using the IIC protocol through the card socket.
The basic functions are as follows.
(1) Basic metering function: data is written every 0.1 cubic meter.
(2) LCD display function: Displays error information, alarm water volume, remaining water volume, overdraft water volume and other data.
(3) Water purchase management function: supports factory preset, water purchase, water stop, water volume query, meter reading and other functions.
(4) Alarm and water cut-off function: When the remaining water volume reaches the alarm water volume, the valve will automatically close, prompting the user to purchase water. If the remaining water volume is 0, the valve will close, but after reinserting the card, water can continue to be used within the preset overdraft water volume range. If the user's overdraft water volume reaches the preset overdraft water volume, the valve will close and the water will be cut off.
● Special functions of NEC electronic water meter
Data storage function: There are two ways to store data in this solution. One is to use EEPROM to store data, and the other is to implement EEPROM emulation function on NEC Electronics' Flash memory, storing data in the Flash memory built into NEC Electronics' microcontroller to achieve the same storage effect as EEPROM. The library file provided by NEC Electronics can easily implement the EEPROM emulation function of the Flash memory.
Power saving function: turn off the power supply of EEPROM and card holder to put them in sleep mode. The internal voltage divider resistor of NEC Electronics 78K0/Lx3 LCD is about 60K. In order to further reduce power consumption, we use 330K external voltage divider resistor. Through these methods, the power consumption of the water meter solution is kept at 1.8μA in standby mode.
Attack prevention function: It can determine whether it is attacked and close the valve if it is attacked. There are many processing in the software to effectively prevent interference with the microcontroller.
Overdraft water fee metering: If the valve cannot be closed normally due to external attack or mechanical failure, the overdraft water fee will still be measured when the water is used.
Automatic descaling function: The valve automatically opens and closes twice a month to prevent motor failures when not in use for a long time.
Battery capacity monitoring: Use the internal LVI module to monitor the battery voltage. When the voltage is insufficient, it will alarm in time, close the valve, and prompt to replace the battery on the LCD.
Software Structure
The system software consists of a main program and an interrupt handler. The main program mainly completes the system initialization function, and then periodically queries each flag bit. If each flag bit is 0, it enters the STOP standby mode. The interrupt handler includes LVI low voltage detection interrupt, water pulse measurement interrupt, card detection interrupt, as well as magnetic attack handler, LCD and watchdog handler. The main program flow is shown in Figure 2.
Summary and Outlook
NEC Electronics' water meter solution has been tested in terms of self-programming EEPROM simulation and can meet the data storage needs of water meter users. In terms of power consumption, it can fully meet the stringent requirements for low power consumption and contribute to green environmental protection.
The RTC module is not used in this solution for the time being, but from the perspective of future trends, the tiered water charges and the demand for water resource consumption statistics from management departments will increase, and the use of RTC is an inevitable trend. In foreign markets, RTC is already a necessary module.
The built-in Manchester encoder and remote control receiver help designers and developers expand the wireless remote transmission. Wireless meter reading technology can effectively reduce the workload of meter reading and minimize the impact on end users. The design of wireless water meter can be completed by slightly expanding this solution.
Previous article:Realization of Data Communication between Dual CPUs
Next article:STC89C52 minimum system
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- [RVB2601 Creative Application Development] 2. CDK Development Environment Installation and HelloWorld Experience
- AS3933 3D low frequency wake-up receiver
- Safety Withstand Voltage and Leakage Current Q&A
- [Me and Yatli] + A story about to begin
- Obtaining the Hongmeng source code for BearPi HM Nano (be careful of pitfalls)
- How many times is the throughput of SX1301 compared to SX1276/8?
- MSP430Ware Software Library
- Can the life of a transparent LED display really reach 100,000 hours?
- Does anyone know how to initialize the input capture function of GD32?
- EEPROM analysis based on single chip microcomputer