根据曼彻斯***的编码原则(参见本刊2001年第一期《一种采用曼码调制的非接触IC卡读写程序编制》),非接触ID卡采用上升沿对应着位数据“0”,下降沿对应着位数据“1”,微控制器通过检测U2270B输出数据位的跳变来实现对曼彻斯***的译码。在现实工作中,数据信号会受到调制、解调、噪声各种效应的影响,其上升沿和下降沿存在抖动,可采用键盘消抖的办法来消除抖动的影响。根据非接触ID卡64位数据循环发送以及其数据绪构特点,即数据流中第64位为“0”,第1位至第9位为“1”。据此,将“0111111111”作为读数据的起始标识,如图2所示。在确定了数据起始标识后,采用延时大于0.5T采样数据位的方法,如图3所示,来避开曼彻斯***编码中的空跳对数据译码造成的影响,简化了译码程序。 通过实验得到:480μs≤1T≤520μs,220μs≤0.5T≤280μs,由此取Tnext=300μs。为了便于对读出数据进行奇校验,读出数据每5位作为一个字节。因此确定起始标识和读取数据对时钟有严格要求,所以寻找起始标识和读取数据部分程序采用汇编语言编写。数据读以后,根据前面所提到的非接触ID卡的数据结构,通过比较奇校验算法与读出数据中的奇校验位来验证出数据的正确性。
上传时间: 2016-10-14
上传用户:xhz1993
The Inter IC bus or I2C bus is a simple bidirectional two wire bus designed primarily for general control and data transfer communication between ICs. Some of the features of the I2C bus are: • Two signal lines, a serial data line (SDA) and a serial clock line (SCL), and ground are required. A 12V supply line (500mA max.) for powering the peripherals often may be present. • Each device connected to the bus is software addressable by a unique address and simple master/ slave relationships exist at all times masters can operate as master-transmitters or as master-receivers. • The I2C bus is a true multi-master bus including collision detection and arbitration to prevent data corruption if two or more masters simultaneously initiate data transfer systems. • Serial, 8-bit oriented, bidirectional data transfers can be made at up to 100 KBit/s in the standard mode or up to 400 KBit/s in the fast mode.
标签: bus bidirectional primarily designed
上传时间: 2013-12-11
上传用户:jeffery
仿真ic测试的程序,测试向量我们采用随机向量生成法,假定某人故障点存在s-a-0或s-a-1故障,由随机生成的向量对整个电路进行测试,若输出端的值与无故障电路的值不同,则测试成功,说明该向量可以检测出该故障。
上传时间: 2017-04-26
上传用户:qq521
PN5180资料 NFC射频I感应 支持ISO15693 RFID高频IC卡ICODE2读写资料STM32读写源码
标签: pn5180 nfc 射频 iso15693 rfid
上传时间: 2021-10-19
上传用户:
IC卡技术入门-电子货币与电子证件
上传时间: 2013-05-26
上传用户:eeworm
无线电感应的应答器和非接触IC卡的原理与应用
上传时间: 2013-07-06
上传用户:eeworm
IC厂家图标
标签: 家
上传时间: 2013-06-09
上传用户:eeworm
IC芯片厂家图标
上传时间: 2013-07-29
上传用户:eeworm
晶和IC中心 升压电路等
标签: 升压电路
上传时间: 2013-08-01
上传用户:eeworm
国外IC厂商网址索引 pdf版
上传时间: 2013-06-23
上传用户:eeworm