PIC16F639 PKE System Design Guide
PIC16F639 PKE System Design Guide
Encrypted
Codes Response
(UHF)
LED
LED
UHF
Ant. X Transmitter
UHF
Receiver LF Command
(125 kHz)
PIC16F639
Microcontroller
Ant. Y
MCU
(MCU)
(PIC16F636)
LF +
Ant. Z
Transmitter/ 3-Input
Receiver Analog Front-End
(MCP2030)
LF Talk-back
125 kHz (125 kHz) 125 kHz
LC Series LC Parallel
Resonant Circuit Resonant Circuit
Data LED
(UHF TX) 5 16
RFEN
6 15 CS
LFDATA/RSSI/SDIO 7 14 SCLK/ALERT
D4
VDDT VSST
8 13
LCZ LCCOM
9 12
Battery D3 C1
(2-3.6V) D1 LCY LCX
10 11
air-core
coil
ferrite-core ferrite-core
coil coil
D2
FIGURE 3: INPUT SIGNAL AND DEMODULATED OUTPUT WHEN OUTPUT ENABLE FILTER IS
ENABLED AND INPUT MEETS THE FILTER TIMING REQUIREMENT
FIGURE 4: INPUT SIGNAL AND DEMODULATED OUTPUT WHEN OUTPUT ENABLE FILTER IS
ENABLED AND INPUT DOES NOT MEET THE FILTER TIMING REQUIREMENT
Ferrite-core Antenna
a (LCX Input Pin)
Transponder’s LF antenna
with surface area S
Ferrite-core Antenna
Effective Antenna Surface Area = S cos a (LCY Input Pin)
70
60
Capacitance (pF)
50
40 Ch. X
Ch. Y
30 Ch. Z
20
10
0
0 20 40 60 80
Bit Setting (steps)
Start
No
Input Signal in?
Yes
No
No Wake-up Filter
Enabled?
Yes
Yes Yes
Detected Output on LFDATA Pin Set ALERT Output Pin Low
(LFDATA output wakes up MCU)
Set Alarm Status Bit High
(If ALRTIND Bit is Set)
No
Correct Data?
Yes
= Controlled by MCU
Firmware Send Response via
LF Talk-back or RF Link
Step 1
Step 2
Step 3
Base Station
Command
Transponder
Response
Step 4
CONCLUSION REFERENCES
The PIC16F639 device is an easy-to-use, low cost and “PIC12F635/PIC16F636/639 Data Sheet,” DS41232,
secure bidirectional communication transponder. This Microchip Technology Inc.
device can be used for various smart hands-free AN710, “Antenna Circuit Design for RFID
passive keyless entry applications. A basic configura- Applications,” Application Note (DS00710), Microchip
tion of the Passive Keyless Entry (PKE) transponder is Technology Inc.
shown in Figure 2. Example schematics for the tran-
sponder and the base station are shown in Appendix AN959, “Using the PIC16F639 MCU for Smart
B: “Transponder” and Appendix C: “Base Station”. Wireless Applications,” Application Note (DS00950),
Microchip Technology Inc.
The firmware examples for the transponder and the
base station are also provided (see Appendix A: TB088, “PIC16F639 Microcontroller Overview,”
“Source Code”). Users can modify the provided Technical Brief (DS91088) Microchip Technology Inc.
examples for their application purposes. TB090, “MCP2030 Three - Channel Analog Front-End
Device Overview,” Technical Brief (DS91090A)
MEMORY USAGE Microchip Technology Inc.
“MCP2030 Data Sheet”, (DS21981), Microchip
Transponder: Technology Inc.
“Coilcraft Data Sheet”, (P/N 4308 and 5315 Series);
• Program Memory - 1131 words
http://www.coilcraft.com
• Data Memory - 65 Bytes
Base Station:
• Program Memory - 1178 words
• Data Memory - 405 Bytes
1 BTH-20MM-PTH-MTL BT1 3V/6V 20MM THRU HOLE MT COIN HOLDER Keystone® Electronics 3003
1 CAP-0603-DOUBLE CX 180pF CAP,180PF,50V,CERAMIC,0603,SMD Panasonic® ECJ-1VC1H181J
2 CAP-0603-DOUBLE CY 220pF CAP,220PF,50V,CERAMIC,0603,SMD Panasonic ECJ-1VC1H221J
CZ
2 CAP-CRCW0603 C5 1uF CAP 1UF 16V CERAMIC F 0603 Panasonic ECJ-1VF1C105Z
C9
DS01024A-page 19
FIGURE D-1: TRANSPONDER BOM (CONTINUED)
Qty Component Name RefDes Value Description Mfr. Mfr. P/N Notes
3 LED-SML-LX231C-TR-RED- D4 RED LED 2X3MM 635NM RED WTR CLR SMD Lumex® SML-LX23IC-TR
2X3MM-SM D5
D6
5 RES-CRCW0603 R6 4.7K RES 4.75K OHM 1/10W 1% 0603 SMD Yageo® 9C06031A4751FKHFT
DS01024A-page 20
R10
AN1024
R12
R14
R16
1 RES-CRCW0603 R4 10 RES 10.0 OHM 1/10W 1% 0603 SMD Yageo 9C06031A10R0FKHFT
1 RES-CRCW0603 R1 47 RES 47.0 OHM 1/16W 1% 0603 SMD Yageo 9C06031A47R0FKHFT
1 CRCW0603 R2 47K RES 47.0K OHM 1/16W 1% 0603 SMD Yageo 9C06031A4702FKHFT
2 CRCW0603 R13 100K RES 100K OHM 1/10W 1% 0603 SMD Yageo 9C06031A1003FKHFT
R18
1 CRCW0603 R3 220 RES 220 OHM 1/16W 1% 0603 SMD Yageo 9C06031A2200FKHFT
1 CRCW0603 R19 270 RES 270 OHM 1/16W 1% 0603 SMD Yageo 9C06031A2700FKHFT
6 CRCW0603 R5 475 RES 475 OHM 1/16W 1% 0603 SMD Yageo 9C06031A4750FKHFT
R11
R15
R17
R22
R23
2 CRCW1206 R7 10M RES 10.0M OHM 1/10W 1% 0603 SMD Yageo 9C12063A1005FKHFT
R9
1 CRCW1206 R8 Rlimit 1.7 RES 1.00 OHM 1/4W 1% 1206 SMD Yageo 9C12063A1R00FGHFT
1 CRCW0603 U2 433.92MHz RESONATOR SAW 433.92MHZ 1 PORT ECS Electronics ECS-SDR1-4339-TR
6 SWT-EVQ-PLMA15 SW0 MOM-NO LIGHT TOUCH SWITCH SMD 260GF 5MM Panasonic EVQ-PLMA15
SW1
SW2
SW3
SW4
SW5
1 TRS-NE94433-SOT23-3 Q1 NE-94433 TRANS NPN OSC FT=2GHZ SOT-23 NEC® Electronics NE94433-T1B
5 TSP-P60R38 TP1 RFPEN TEST POINT PC MINI .040"D WHITE Keystone Electronics 5002
TPC
TPX
TPY
TPZ
1 CR2032 3V BATTERY ST1 Lithium Cell BATTERY 20MM LITHIUM COIN Panasonic-BSG CR2032
10 SHORTING SHUNT J1-J10 Shunt CONN JUMPER SHORTING SHUNT TIN Sullins® STC02SYAN
1 SOCKET 20-PIN SU1 Socket PCB TRANSPONDER CC W/GND Mill-Max® 110-99-320-41-001000
1 PCB PCB1 PCB PLANE Microchip 05-50011_RevB.pcb
1 ANTENNA-LEAD A1 6.8” 20MM THRU HOLE MT COIN HOLDER Keystone® Electronics 3003
2 CAP-200LS-NONPOLAR C3 0.200LS CAP,180PF,50V,CERAMIC,0603,SMD Panasonic® ECJ-1VC1H181J
CAP-200LS-NONPOLAR C4
1 CAP-250LS-NONPOLAR C5 1.0nF CAP,220PF,50V,CERAMIC,0603,SMD Panasonic ECJ-1VC1H221J
1 CAP-375LS-NONPOLAR C6 2.2nF CAP 1UF 16V CERAMIC F 0603 Panasonic ECJ-1VF1C105Z
5 CAP-CRCW1206 C1 0.1uF CAP,0.5PF,50V,CERAMIC,0603,SMD Panasonic ECJ-1VC1H0R5C
CAP-CRCW1206 C7
CAP-CRCW1206 C10
CAP-CRCW1206 C16
DS01024A-page 21
FIGURE D-2: BASE STATION BOM (CONTINUED)
Qty Component Name RefDes Value Description Mfr. Mfr. P/N Notes
DS01024A-page 22
AN1024
2 LED-SML-LX231C-TR-RED-2X3MM- D2 GRN LED 2X3MM 565NM GRN WTR CLR SMD Lumex SML-LX23GC-TR
SM D3
1 RES0805 R14 1K RES 1.00K OHM 1/8W 1% 0805 SMD Yageo 9C08052A1001FKHFT
1 RES0805 R13 4.7K RES 4.75K OHM 1/8W 1% 0805 SMD Yageo 9C08052A4751FKHFT
2 RES0805 R18 15K RES 15.0K OHM 1/8W 1% 0805 SMD Yageo 9C08052A1502FKHFT
RES0805 R19
2 RES0805 R17 25K RES 24.9K OHM 1/8W 1% 0805 SMD Yageo 9C08052A12492FKHFT
RES0805 R20
1 RES0805 R15 120 RES 121 OHM 1/8W 1% 0805 SMD Yageo 9C08052A1210FKHFT Do Not
Populate
1 RES0805 R21 Do Not Pop. RES 121 OHM 1/8W 1% 0805 SMD Yageo
1 RES0805 R25 0 RES 0.0 OHM 1/8W 5% 0805 SMD Yageo 9C08052A0R00JLHFT
1 RES-CRCW1206 R12 1K RES 1.00K OHM 1/4W 1% 1206 SMD Yageo 9C12063A1001FKHFT
1 RES-CRCW1206 R6 3.92K RES 3.92K OHM 1/4W 1% 1206 SMD Yageo 9C12063A3921FKHFT
1 RES-CRCW1206 R9 4.87K RES 4.87K OHM 1/4W 1% 1206 SMD Yageo 9C12063A4871FKHFT
1 RES-CRCW1206 R3 4.99K RES 4.99K OHM 1/4W 1% 1206 SMD Yageo 9C12063A4991FKHFT
4 RES-CRCW1206 R1 4.99M RES 4.99M OHM 1/4W 1% 1206 SMD Yageo 9C12063A4994FKHFT
R2
R11
R22
1 RES-CRCW1206 R10 5.11K RES 5.11K OHM 1/4W 1% 1206 SMD Yageo 9C12063A5111FKHFT
1 RES-CRCW1206 R7 16.5K RES 16.5K OHM 1/4W 1% 1206 SMD Yageo 9C12063A1652FKHFT
2 RES-CRCW1206 R23 49.9K RES 49.9K OHM 1/4W 1% 1206 SMD Yageo 9C12063A4992FKHFT
RES-CRCW1206 R24
1 RES-CRCW1206 R8 78.7K RES 78.7K OHM 1/4W 1% 1206 SMD Yageo 9C12063A7872FKHFT
1 RES-CRCW1206 R4 80.6K RES 80.6K OHM 1/4W 1% 1206 SMD Yageo 9C12063A8062FKHFT
1 RES-CRCW1206 R5 162K RES 162K OHM 1/4W 1% 1206 SMD Yageo 9C12063A1623FKHFT
1 RES-CRCW1206 R16 270 RES 270 OHM 1/4W 1% 1206 SMD Yageo 9C12063A2700FKHFT
1 RF-MODULE-RR8 U4 433.92MHz RR8 433.92MHZ ASK RF RECEIVER Tellicontrolli AMHRR3-433
7 TSP-P90R60 TP1 WHI TEST POINT PC MULTI PURPOSE WHI Keystone Electronics 5012
TP2
TP3
TP4
TP5
TP6
TP7
2 TSP-P90R60 TP8 BLK TEST POINT PC MULTI PURPOSE BLK Keystone Electronics 5011
TP9
1 VRG-5.0V-ZMR500F-SOT23 (223) VR1 LM3480IM3-5.0 IC 5.0 100MA LDO VREG SOT23 National Semiconductor LM3480IM3-5.0
1 XTL-200LS-PTH-CAN Y1 20.0MHz CRYSTAL 20.000MHZ 20PF HC-49/US ECS Inc. ECS-200-20-4
1 SOC-SOCKET-MACH.PINS-40-PIN SU3 40-PIN IC SOCKET 40PIN MS TIN/TIN .600 Mill-Max Corp. 110-93-640-41-001000
1 PCB-BLANK PCB1 Microchip 05-50020_RevB
1 BUZZER BZ1 AUD SIG DEVICE 3-20VDC PCB Mallory Sonalert MSR320
1 NO PATTERN - MODIFICATION Rmod1* 11.0K RES 11.0K OHM 1/4W 1% METAL FILM Yageo MFR-25FBF-11K0
1 NO PATTERN - MODIFICATION Dmod1* 1N41418 RECTIFIER SILICON .15A 75V DO-35 Micro Commercial 1N4148
DS01024A-page 23
AN1024
NOTES:
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
10/31/05