3. MCU reads ID card (EM4100 data format)

Publisher:创新火箭Latest update time:2022-07-01 Source: csdnKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. EM4100 data format

insert image description here

Now let us explain.

(1) The first line contains 9 “1s”, which is the fixed format of EM4100.

(2) The following D00~D03 is the first ID number. P0 represents the even parity of the first row (e.g. 0000_0/0001_1/0110_0). When it is not an even number, the even parity is set to 1. P0-P9 are the even parity of the first four bits of each row.

(3) PC0~PC3 are the even parity of each column (P0-P9), (e.g.: 0000000110_0)

(5) For example: the card number is 06001259E3

insert image description here

(After completing the microcontroller card reading, we will use the microcontroller to simulate the ID card and will use this data format to send the card number)


2. Manchester encoding

In order to read the card and simulate the ID card with the microcontroller, we need to understand the working method of Manchester Encoding. Let's take a look at the following figure

insert image description here

Mainly observe the four states in the above figure: 11, 10, 01, 00


(III) References

http://bbs.mydigit.cn/read.php?tid=1536395

http://www.priority1design.com.au/em4100_protocol.html

https://blog.csdn.net/TonnyBrown/article/details/75200601#commentsedit


Keywords:MCU Reference address:3. MCU reads ID card (EM4100 data format)

Previous article:N76E003 pin interrupt
Next article:2. MCU reads ID card (generates carrier)

Recommended ReadingLatest update time:2024-11-16 13:54

Design of Serial Data Acquisition and Transmission Module for Single Chip Microcomputer
In microcomputer measurement and control systems, A/D conversion is often used. The common method is to expand one or more A/D acquisition cards. When the analog quantity is small or the temperature, pressure and other slow-changing signals are used, the bus-type A/D card is not the most suitable and economical solutio
[Microcontroller]
Design of Serial Data Acquisition and Transmission Module for Single Chip Microcomputer
Low-cost LIN bus based on Microchip microcontroller and transceiver
With the increasing popularity of automotive bus applications and increasingly stringent requirements on automotive costs, the market share of LIN bus is increasing. This article implements the nodes of LIN bus from the perspective of low cost, which has very high practical value. 1 Basic knowledge and developm
[Microcontroller]
Low-cost LIN bus based on Microchip microcontroller and transceiver
Summary of experience on 51 series MCU program failure
 1. Program running out of control: The value of the program counter (PC) in the microcontroller is beyond our expectations. An abnormal deviation has occurred, deviating from the location where the program was originally set to be executed and entering an area outside the original program, such as a blank area of ​
[Microcontroller]
51 MCU timer generates square wave
Use the microcontroller timer to generate a 200Hz square wave program at port P1.0 #include  reg52.h void  main() {         P1^0  =  0;        //  Clear P0 port          /////////       TMOD  =  0x00;        //  T0 uses timing mode, working mode 0, no gate bit       TH0  =  0x60;        //  Fill in initial val
[Microcontroller]
Research and design of an ultrasonic sensor based on single chip microcomputer
Modern industry is developing towards intelligence and automation. As an important part of industrial production, ranging technology has increasingly stringent requirements for stability and accuracy. Traditional measurement methods can no longer meet the requirements of modern industrial measurement due to the infl
[Microcontroller]
How to design a digital electronic scale based on AVR microcontroller?
    In recent years, the emergence of new single-chip microcomputers and the development of integrated circuit technology have provided conditions for updating product design and developing cost-effective weighing controllers. This design adopts as the control core, combined with the resistive strain pressure sensor a
[Microcontroller]
How to design a digital electronic scale based on AVR microcontroller?
Design of a simple digital RVI tester based on single chip microcomputer
0 Introduction Currently, a basic measurement tool is widely used in electronic and electrical measurement, industrial automation instrumentation, automatic test system and other intelligent measurement fields, showing strong vitality. This paper designs a simple digital multimeter for the measurement of three b
[Microcontroller]
Design of a simple digital RVI tester based on single chip microcomputer
MCU key scanning method
I have browsed the Internet for a long time and read a lot of source code, but I have not found any trace of this key processing method, so I share it with my colleagues. I firmly believe that this key processing method is convenient and efficient, and you can port it to any embedded processor because of the powerful p
[Microcontroller]
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号