The Rfid Reader is powered by an external power supply connected to the Rfid Reader. When Rfid Reader is turned on, a voltage of 125 kHz is provided on the integrated antenna on the circuit. The antenna starts to emit a magnetic field needed to read the code stored in the RFID tag. This code is sent from the RFID tag when placing the RFID tag on the antenna surface on the RFID Reader. This code is received through the antenna and sends the signal to the microcontroller.
The Rfid Reader communicates with the external microcontroller via a 1x6 connector and "ATCBus" on the circuit.
RFID READER Rev 1.1 www.at-sky.com.vn
Source code reference: Use CCS compiler and use PIC16F887 microcontroller
#include
#include
#fuses HS, NOWDT, NOPROTECT, NOLVP, NOBROWNOUT, PUT
#include // Controls the reader IC
#include // Allows reading 4102 transponders
#include
#use delay(clock=12000000)
//#use rs232(baud=9600, xmit=PIN_c6,rcv=PIN_c7)
#byte porta=0x05
#byte portb=0x06
#byte portc=0x07
#byte portd=0x08
#byte porte=0x09
#define buzzer pin_a3
//#bit RB5 =0x06.5
int8 msg[32];
int8 so1,so2,so3,so4,so5,so6,so7,so8,so9,so10;
void main()
{
lcd_putc("\f");
lcd_init();
delay_ms(100);
lcd_gotoxy(3,2);
printf(lcd_putc,"at-sky.com.vn");
lcd_gotoxy(4,1);
printf(lcd_putc,"Rfid Reader");
int8 customerCode;
int32 tagNum;
rf_init(); // Initialize the RF reader
rf_powerUp(); // Power up the antenna
delay_ms(3000);
while(1)
{
if(read_4102(msg)) {
lcd_gotoxy(14,2);
customerCode = msg[0];
tagNum = make32(msg[1], msg[2], msg[3],msg[4]);
so1=tagnum;
so2=(tagnum0)/10;
so3=(tagnum00)/100;
so4=(tagnum000)/1000;
so5=(tagnum0000)/10000;
so6=(tagnum00000)/100000;
so7=(tagnum000000)/1000000;
so8=(tagnum0000000)/10000000;
so9=(tagnum00000000)/100000000;
so10=(tagnum00000000)/1000000000;
lcd_gotoxy(1,2);
printf(lcd_putc,"code: ");
printf(lcd_putc,"\%u",so10);
printf(lcd_putc,"\%u",so9);
printf(lcd_putc,"\%u",so8);
printf(lcd_putc,"\%u",so7);
printf(lcd_putc,"\%u",so6);
printf(lcd_putc,"\%u",so5);
printf(lcd_putc,"\%u",so4);
printf(lcd_putc,"\%u",so3);
printf(lcd_putc,"\%u",so2);
printf(lcd_putc,"\%u",so1);
delay_ms(10);
}}
}
Quantity | Unit Price | Extended Price |
---|---|---|
1 | 130đ | 130đ |
10 | 117đ | 1,170đ |
49 | 104đ | 5,096đ |
100+ | 91đ | 9,100đ |
và bọn em muốn bên anh chị hỗ trợ em về tài liệu lập trình.
dạng như cấu trúc đầu ra của con EM4095 lập mỗi chân quy định vè vấn đề gì.
vì sao lại dùng tới 6 ạ.
nếu anh chị hỗ trợ em về tài liệu đầy đủ thì em xin cám ơn.