Summary of Contents for Microchip Technology DM182017-4
Page 1
® MCS3142 Dual K Encoder Wireless Remote Control Development Kit User’s Guide 2014 Microchip Technology Inc. DS40001746A...
Page 2
Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA and Z-Scale are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. GestIC and ULPP are registered trademarks of Microchip Technology Germany II GmbH &...
Page 3
® Object of Declaration: MCS3142 Dual K Encoder Wireless Remote Control Development Kit 2014 Microchip Technology Inc. DS40001746A-page 3...
Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1} character: { | } arguments; an OR selection Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... 2014 Microchip Technology Inc. DS40001746A-page 6...
Microchip consultant program member listing • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives 2014 Microchip Technology Inc. DS40001746A-page 7...
Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (February 2014) • Initial Release of this Document. 2014 Microchip Technology Inc. DS40001746A-page 8...
The following latest software builds should be obtained from the Microchip web site: • Embedded Security Development Board source code • MPLAB X Integrated Development Environment Plugin (see Chapter 7. “K MPLAB X Plugin”) • K Graphical Interface for the Embedded Security Development Board 2014 Microchip Technology Inc. DS40001746A-page 9...
3. Plug in the RF receiver daughter board on the PICtail slot of the demo board. Make sure that the RF receiver daughter board has the side with the RF receiver chip facing the center, as shown in Figure 2-1. 2014 Microchip Technology Inc. DS40001746A-page 10...
Page 12
- To power from an external power supply, place jumper J6 to pins 2-3. Connect the test points labeled +V and GND to a bench power supply that is set to 3.3 V 2014 Microchip Technology Inc. DS40001746A-page 11...
This kit is configured to transmit a Seed transmission with both buttons assigned to a particular encoder are pressed. The pairing phase also requires a Typical transmission to complete the pairing process. 2014 Microchip Technology Inc. DS40001746A-page 12...
LCD, as shown in Figure 2-3 and Figure 2-4. The type of transmission and the transmitter’s serial number are also displayed on the screen. OQ ® FIGURE 2-3: CLASSIC K ENCODER NOT LEARNED ® FIGURE 2-4: ULTIMATE K ENCODER NOT LEARNED 2014 Microchip Technology Inc. DS40001746A-page 13...
Page 15
TYPICAL TRANSMISSION DATA ® ‘ULT’ Indicates an Ultimate K encoder ‘12345666’ The encoder’s serial number ‘T: 00330A1F’ The encoder’s time-stamp ‘F: 04’ The encoder’s function code OQ ® FIGURE 2-6: TYPICAL ULTIMATE K TRANSMISSION 2014 Microchip Technology Inc. DS40001746A-page 14...
Page 16
The receiver must complete the learn process within a fixed window. If the necessary data is not received from the transmitters within this window, the process will abort and a message similar to Figure 2-9 is displayed. FIGURE 2-9: LEARN MODE TIMEOUT 2014 Microchip Technology Inc. DS40001746A-page 15...
Page 17
PAIRING COMPLETE A message similar to Figure 2-13 is shown if an otherwise valid Classic K packet is received, but is not a Seed transmission. ® FIGURE 2-13: CLASSIC K NO SEED TRANSMISSION 2014 Microchip Technology Inc. DS40001746A-page 16...
Page 18
FIGURE 2-15: AUTHORIZATION CODE INVALID The kit allows the user to erase, or ‘forget’, all paired transmitters. If done, the LCD will display a message similar to Figure 2-16. FIGURE 2-16: DELETE EEPROM 2014 Microchip Technology Inc. DS40001746A-page 17...
Observe that the clock is advancing. Once the RTCC test is done, SW1 needs to be pressed to move forward to the SPI test. 2014 Microchip Technology Inc. DS40001746A-page 18...
Daughter Board, is plugged into the PICtail connector (even though the SPI bus may still be working), the SPI test might show failure status. The demo board expects an SX1239 to be identified on the SPI interface. 2014 Microchip Technology Inc. DS40001746A-page 19...
The MCS3142 Wireless Remote Key Fob is a demonstration and development platform for wireless security remote control applications. Please see http://ww1.microchip.com/downloads/en/DeviceDoc/41646A.pdf for similar information about the transmitter printed circuit board and its antenna design. 2014 Microchip Technology Inc. DS40001746A-page 20...
USB Interface Port J3 PICtail™ Connector J1 16x2 character LCD display Real-Time Clock and Calendar (RTCC) module U5 Push Buttons LEDs Voltage Regulator ICSP™ Programming Ports, J4 for Host; J5 for Target Application 2014 Microchip Technology Inc. DS40001746A-page 21...
• 3 or 4-wire SPI • I C™ • USART Jumpers J7 and J8 connect pull-up resistors, typically useful when I C is selected and the pull-up resistors are not available on the daughter board. 2014 Microchip Technology Inc. DS40001746A-page 22...
The RTCC module can be powered either by the 3.3V power from the Embedded Security Development Board, or by a separate coin battery when external power is not available. For details on operating this RTCC module, refer to the data sheet of the MCP795W10 at http://www.microchip.com/MCP795W10. 2014 Microchip Technology Inc. DS40001746A-page 23...
USB power is selected; when the right side, pins 2-3 of J6 are closed, external power source is selected. When the USB port is used to power the board, the input voltage is stabilized by a Microchip MCP1703, LDO regulator U3. 2014 Microchip Technology Inc. DS40001746A-page 24...
Figure 5-3 shows the SX1239 Receiver PICtail Daughter Board. The schematic, PCB layout, and Bill of Materials are listed in Appendix B. “SX1239 Receiver PICtail™ Daughter Board Schematics”. FIGURE 5-3: SX129 PICtail™ DAUGHTER BOARD 2014 Microchip Technology Inc. DS40001746A-page 25...
Page 27
PCB. A whip or sleeve dipole antenna can then be used. If an SMA+ different antenna is used, the matching circuit will be less ideal. Pre-made antennas have a fixed, lower impedance. The wire used has a higher impedance. 2014 Microchip Technology Inc. DS40001746A-page 26...
PC interface. The developer should only need to develop on the target side. The prototyping area under the four push buttons for target application controller can be used to prototype the application. 2014 Microchip Technology Inc. DS40001746A-page 27...
} else if (Decode_Advanced_KeeLoq(&inData) != NOT_VALID_PACKET) { //Custom code to interpret a valid Advanced Keeloq Packet. } else if (Decode_Ultimate_KeeLoq(&inData) != NOT_VALID_PACKET) { //Custom code to interpret a valid Ultimate Keeloq Packet. } else { validated_packet.type = INVALID_ENCODER; 2014 Microchip Technology Inc. DS40001746A-page 28...
Page 30
NVM Mediator The “nonvolatile” mediator provides access to the EEPROM where learned devices and their settings are saved. The developer should access this using the find(), write(), read() methods. 2014 Microchip Technology Inc. DS40001746A-page 29...
FIGURE 7-1: SELECTING AN HCS200 K DEVICE IN STEP 2 OF THE NEW PROJECT CREATION INSIDE OF MPLAB X For more information about MPLAB X New Project Creation, please see the MPLAB X documentation. 2014 Microchip Technology Inc. DS40001746A-page 30...
Page 32
FIGURE 7-3: THE PLUGIN REQUIRES A MAIN PROJECT THAT HAS A OQ ® DEVICE SELECTED The device for this project can be easily modified by: (Right-Click) project-> Properties 2014 Microchip Technology Inc. DS40001746A-page 31...
The utility can then output a file that can be sent to Microchip for production programming or used on a variety of Microchip and third party programmer tools. 2014 Microchip Technology Inc. DS40001746A-page 32...
EXPORT FILE DATA Format BBAAAATTHHHH..HHHCC 64-bit Key 0xB0B8C53F37D7 Synchronization 0x0000 Serial 0x00000000 Seed 0x177AA550 Configuration 0x0000 Please consult with your specific encoder data sheet for more information about the various key generation methods. 2014 Microchip Technology Inc. DS40001746A-page 33...
The user can now connect to the programmer and Flash a K device. To program the K device, simply click on the Make and Program Device Main Project button located on the MPLAB X toolbar. 2014 Microchip Technology Inc. DS40001746A-page 34...
In order to be able to use the MCP2200 with Linux, the kernel must have support for USB CDC class drivers. For more information, Linux users should read the readme installation notes found here: http://ww1.microchip.com/downloads/en/Device- Doc/mcp2200_linux_driver_readme.txt. 2014 Microchip Technology Inc. DS40001746A-page 35...
In Windows, a notification stating that the MCP2200 device was installed and found successfully will show. If not, the MCP2200 driver may need to be installed manually as stated in the Section 8.2 “Installation”. 2014 Microchip Technology Inc. DS40001746A-page 36...
Page 38
SemTech data sheet for much more information regarding their receiver. Other settings such as learned devices and manufacturing numbers are also displayed and saved. The demo board should now display the version of the PC application on its LCD. 2014 Microchip Technology Inc. DS40001746A-page 37...
CLASSIC TABLE TAB UPDATED WITH A SINGLE LEARNED CLASSIC TRANSMITTER Not all of the columns are populated since those depend on the transmitter being active. The Graphic tab will also update with new data as seen below: 2014 Microchip Technology Inc. DS40001746A-page 38...
The figures below show the two panels that have been updated after the previously learned device has its transmission received by the demo board. FIGURE 8-6: CLASSIC TABLE UPDATED WITH A SINGLE TRANSMISSION BY A PREVIOUSLY LEARNED DEVICE 2014 Microchip Technology Inc. DS40001746A-page 39...
CLASSIC GRAPHIC UPDATED WITH A SINGLE TRANSMISSION BY A PREVIOUSLY LEARNED DEVICE 8.5.1 Graphic Specifics Each graphic contains a “Pie” on the right-hand side of the panel. Every K technology provides its own set of unique features. 2014 Microchip Technology Inc. DS40001746A-page 40...
Page 42
Storing the new synchronization counter value effectively rotates the entire Synchronization window. Note: The proportional aspects of the pie have been manipulated so that it is easier to view the fundamental operation 2014 Microchip Technology Inc. DS40001746A-page 41...
After applying the changes, the graphic will update itself from the new stimulus. Note that the effects are not saved to the transmitter, receiver, or inside the learned devices table. These changes do not persist between sessions. 2014 Microchip Technology Inc. DS40001746A-page 42...
1. AN1265 – K with AES Microcontroller-Based Code Hopping Encoder 2. DS41646 – Wireless Security Remote Control Development Kit User’s Guide ® 3. MCS3142 Dual K Encoder Data sheet 4. DS41378 – K 3 Development Kit 2014 Microchip Technology Inc. DS40001746A-page 43...
® MCS3142 DUAL K ENCODER WIRELESS REMOTE CONTROL DEVELOPMENT KIT USER’S GUIDE Appendix C. Embedded Security Development Board Schematics FIGURE C-1: EMBEDDED SECURITY DEVELOPMENT BOARD PCB ASSEMBLY 2014 Microchip Technology Inc. DS40001746A-page 50...
Page 52
Embedded Security Development Board Schematics FIGURE C-2: HOST CONTROLLER OF THE EMBEDDED SECURITY DEVELOPMENT BOARD SCHEMATIC 2014 Microchip Technology Inc. DS40001746A-page 51...
Page 53
® MCS3142 Dual K Encoder Wireless Remote Control Development Kit User’s Guide FIGURE C-3: TARGET APPLICATION OF THE EMBEDDED SECURITY DEVELOPMENT BOARD SCHEMATIC 2014 Microchip Technology Inc. DS40001746A-page 52...
Need help?
Do you have a question about the DM182017-4 and is the answer not in the manual?
Questions and answers