With the continuous promotion and application of intelligent control, IC cards, which are one of the intelligent applications, have also entered various fields, such as IC card access control systems, bus unmanned ticketing systems, and the like. As an IC card billing system, this design uses a member of Motorola's new 08 series microcontroller - 68HC908GP32. introduction Sunscreen,Sunscreen For Face,Sun Cream,Sun Bum Sunscree Guangzhou cosmeceuticals daily chemicals PTY,.LTD. , https://www.guangzhoucosmetics.com
The system uses the Motorola 68HC908GP32 single-chip microcomputer to control the IC card reader to read the data in the IC card, and then analyzes the signal transmitted from the external sensor, and then commands the IC card reader to read and write the IC card accordingly, thereby Complete the function of a meter. The Motorola microcontroller is the core of the entire system. The system block diagram is shown in Figure 1.
68HC908GP32 microcontroller
This design uses GP32 microcontroller, which is a general-purpose chip in Motorola's new 08 series microcontroller. It has the advantages of high speed, strong function and low price, and is backward compatible with the original M68HC05 series MCU, which greatly protects the interests of users, and the new generation M68HC08 series models have different sizes of on-chip according to various models. Flash (FLASH) memory, with very high cost performance. According to different applications, the 08 series MCUs are divided into many models, and the MC68HC908GP32 MCU used in this design adds an enhanced serial communication interface SCI and serial peripheral interface SPI on the basis of the standard 08 MCU core.
The main features of the MC68HC908GP32 microcontroller are:
1, 32K on-chip FLASH program memory, with online programming capabilities and security features.
2, 512 bit on-chip RAM
3, 8MHz internal bus frequency.
4, enhanced serial communication port SCI
5, serial peripheral interface SPI
6. Two 16-bit dual channel timer interface modules (TIM1 and TIM2).
7, 8 channel A / D converter
8, system protection features
·Computer work reset (COP)
Low voltage detection reset, optional 3V or 5V operation
·Illegal instruction code detection reset
·Illegal address detection reset
9, the time generation module, with 32KHz crystal oscillator PLL circuit, can produce a variety of operating frequencies.
10, with PDIP40, SDIP42, DIP40 and QFP44 and other package forms, can be easily applied to a variety of embedded systems.
System hardware and software design
The whole system can be divided into three parts, one is the peripheral circuit part such as sensor, the other is the single-chip microcomputer and its peripheral circuit part, and finally the IC card reader part.
The core control program is programmed in the on-chip FLASH of the GP32 microcontroller and interpreted and executed by the GP32. The length is 1.54K bytes, which occupies 4.82% of the EEPROM resources. Figure 2 is a program flow chart.
Conclusion
Since the system is an IC card billing system for controlling a copying machine, the sensor uses a photoelectric sensor composed of a photoresistor and a potentiometer, and the relay is used to control the power of the copying machine. Thus, as long as we correspond to different applications, correspondingly using different sensors and different output control circuits, IC card billing systems of different application surfaces can be constructed.