基于PIC單片機的低功耗讀卡器硬件設計:本文提出了一個完整的基于串口的智能讀卡器子系統設計方案并將其實現。讀卡器的設計突出了小型化的要求,全部器件使用貼片封裝。為了減小讀卡器的體積,設計中還使用了串口竊電的技術,使用串口信號線直接給讀卡器供電。為此,讀卡器使用了省電的設計,采用了省電的集成電路,并大膽簡化了許多傳統的設計電路。關鍵字: 讀卡器, 單片機, 串口竊電
Abstract: This paper aims to put forward a complete design of Smart IC card reader based onSerial Port and propose the way of realizing it for the purpose of Network Security. SMD isadopted to make Smart IC reader smaller in this design. To reduce the volume of Smart ICreader, Serial Port powered technology is employed to get power from the signal line of Serial Port. For this reason, low-power consumption components are adopted in the design and some traditional designs are simplified to reduce the power consumption.Keywords: Card Reader; Single-chip Computer; Serial Port Powered
IC 卡系統保存了加密算法所需要的工作密鑰,供加密算法對網絡上傳輸的數據加密使用,是整個系統網絡安全的核心。在IC 卡子系統中,讀卡器是一個重要的部分。它起著管理IC卡、在IC 卡和PC或網絡計算機間傳遞數據的重要作用。本文以一片PIC單片機為核心完成了基于RS232 串口的讀卡器的硬件設計。
load initial_track s; % y:initial data,s:data with noiseT=0.1;
% yp denotes the sample value of position% yv denotes the sample value of velocity% Y=[yp(n);yv(n)];% error deviation caused by the random acceleration % known dataY=zeros(2,200);Y0=[0;1];Y(:,1)=Y0;A=[1 T 0 1]; B=[1/2*(T)^2 T]';H=[1 0];
C0=[0 0 0 1];C=[C0 zeros(2,2*199)];Q=(0.25)^2; R=(0.25)^2;
為了提高直接轉矩控制(DTC)系統定子磁鏈估計精度,降低電流、電壓測量的隨機誤差,提出了一種基于擴展卡爾曼濾波(EKF)實現異步電機轉子位置和速度估計的方法。擴展卡爾曼濾波器是建立在基于旋轉坐標系下由定子電流、電壓、轉子轉速和其它電機參量所構成的電機模型上,將定子電流、定子磁鏈、轉速和轉子角位置作為狀態變量,定子電壓為輸入變量,定子電流為輸出變量,通過對磁鏈和轉速的閉環控制提高定子磁鏈的估計精度,實現了異步電機的無速度傳感器直接轉矩控制策略,仿真結果驗證了該方法的可行性,提高了直接轉矩的控制性能。
Abstract:
In order to improve the Direct Torque Control(DTC) system of stator flux estimation accuracy and reduce the current, voltage measurement of random error, a novel method to estimate the speed and rotor position of asynchronous motor based on extended Kalman filter was introduced. EKF was based on d-p axis motor and other motor parameters (state vector: stator current, stator flux linkage, rotor angular speed and position; input: stator voltage; output: staror current). EKF was designed for stator flux and rotor speed estimation in close-loop control. It can improve the estimated accuracy of stator flux. It is possible to estimate the speed and rotor position and implement asynchronous motor drives without position and speed sensors. The simulation results show it is efficient and improves the control performance.