MB89160/160A is a new 8-bit microcontroller series launched by Fujitsu of Japan. Because it adopts CMOS technology, high-density integrated process and modular structure, it has the characteristics of low power consumption, wide applicability and high cost performance. Therefore, it is particularly suitable for applications in remote control intelligent instruments and battery-powered equipment.
MB89163 is a model in the MB89160/160A series. It has two packages, QFE-80 and MQFP-80. It has 16K bytes of ROM and 512 bytes of RAM on the chip. The power supply voltage is 2.2V-6.0V, and the main clock and sub-clock are 4.194MHz and 32.768KHz respectively.
2. Internal structure and features
The internal functional block diagram of MB89163 is shown in Figure 1. As can be seen from the figure, the chip is a multi-functional microcontroller, which consists of LCD control/driver, A/D converter
Figure 1: Internal functional block diagram
The main features of MB89163 are as follows:
1. 8-bit, CMOS single-chip microcomputer; 2. Dual clock pulse control; 3. Modular structure; 4. High-density integrated process; 5. 54 programmable I/O lines; 6. The minimum execution time of instructions is 9.5μs (4.2MHz) and 400ns (10MHz) respectively; 7. Three power saving modes: sleep, monitor and stop mode; 8. 8-channel, 8-bit A/D converter; 9. 2-channel 8-bit PWM timer/controller; 10. Single-channel, 15-bit monitor prescaler; 11. Single-channel, 8-bit serial I/O port; 12. 12 external interrupts, 4 of which are edge-enabled and 8 are level interrupts; 13. The CPU is compatible with MB89600; 14. It has a remote control carrier frequency generator; 15. Built-in booster to drive LCD.
3. Hardware circuit and software analysis
The remote control receiving circuit composed of MB89163 and a few peripheral components is shown in Figure 2. This circuit is a remote control receiving circuit in communications and home appliances. It can be seen that the hardware circuit is very simple. The main clock and sub-clock both use external crystals, and their frequencies are 4.194MHz and 32.768KHz respectively. The external crystal is mainly used to improve the accuracy of the crystal frequency.
Figure 2: Remote control receiving circuit
The remote controller can use various data formats. Most of the "0" and "1" signals in them are composed of pulse width and high and low levels. The detailed data format is shown in Figure 3.
Figure 3: Remote control receiving data format
The basic functions of the remote control are timer and external interrupt. If the microcontroller receives a signal, an external interrupt is generated immediately, and then the pulse width type is determined by the timer. When the pulse width is consistent with the received signal, it is stored and the receiving cycle continues until the 12-bit data is received.
The program flow chart of the remote control receiver is shown in Figure 4. Now a brief description of the block diagram is given. Before the remote control receives, the system must be initialized, that is, the clock is selected, the stack pointer, interrupt layer, external interrupt 1, timer 1, time base timer, etc. are set, and the values of various units such as L pulse, H pulse, input bit counter, frame cycle timer, and input data are cleared. After initialization, the above units meet the requirements before receiving.
Figure 4: Remote control receiver program flow chart
When the signal of the infrared remote control sensor is sent to P10/INT10 of the microcontroller, an external interrupt is generated. In the interrupt program, the main thing is to detect what type of pulse (H and L) is received. If the received signal is determined to be an L pulse, it is necessary to further determine whether it is the same as the guide pulse. If it is the same, the frame timer can be entered to complete the task of receiving 12 bits; if it is different, the quality of the H and L pulses must be evaluated. If the pulse quality is good, it is stored and the cyclic reception continues until the 12-bit data is received; if the pulse quality is not good, the cycle timer is stopped and the remote control condition is indicated to be invalid.
Previous article:Research on LPC900 series microcontrollers in radio frequency data transmission modules
Next article:Hardware design and implementation of wireless electronic ordering system based on single chip microcomputer
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Which domestic DC-DC and LDO should I choose?
- 【CH579M-R1】+ Turn on timer 0 to control LED flashing and refresh LCD time display
- Xunwei i.MX6ULL development board Platform device driver running test
- Huawei and Alibaba employees who switched to Microsoft were boycotted just because of the crazy overtime?
- [Analysis of the topic of the college electronic competition]——2022 TI Cup Shanghai C topic "Active two-way audio amplifier circuit"
- PYPL programming language popularity ranking in December 2019
- Smart wearable devices based on RSL10
- Soft start control software
- 2006 Germany World Cup knockout stage schedule
- Is the IRFP460 I bought a fake tube?