The issuer of this manual has made every effort to provide accurate information. The issuer will not be held
liable for any technical and editorial omission or errors made herein; nor for incidental consequential damages
resulting from the furnishing, performance or use of this material. This document contains proprietary
information that is protected by copyright. All rights are reserved. No part of this document may be
photocopied, reproduced, or translated without the prior written consent of the issuer. The information
provided in this manual is subject to change without notice.
AGENCY APPROVED
- FCC class B
- CE class B
NOTE:This equipment has been tested and found to comply with the limits for a Class B digital device,
pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against
harmful interference in a residential installation. This equipment generates, uses and can radiate radio
frequency energy and, if not installed and used in accordance with the instructions, may cause harmful
interference to radio communications. However, there is no guarantee that interference will not occur in a
particular installation. If this equipment does cause harmful interference to radio or television reception, which
can be determined by turning the equipment off and on, the user is encouraged to try to correct the
interference by one or more of the following measures:
—Reorient or relocate the receiving antenna.
—Increase the separation between the equipment and receiver.
—Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
—Consult the dealer or an experienced radio/ TV technician for help.
You are cautioned that any change or modifications to the equipment not expressly approve by the party
responsible for compliance could void your authority to operate such equipment.
WARRANTY
This product is served under one-year warranty to the original purchaser. Within the warranty period,
merchandise found to be defective would be repaired or replaced. This warranty applies to the products only
under the normal use of the original purchaser, and in no circumstances covers incidental or consequential
damages through consumers’ misuse or modification of the products.
PREFACE
This manual provides detailed information relating to the overall operational, electrical, mechanical,
environmental and functional aspects of the MFC242. This document should be read and understood prior to
initial operation of the product.
For ease of installation and programming use, we have addressed everything from its attractive features to its
various configurations.
When designing the MFC242, we selected what we feel are the most useful features and functions. If in some
cases you find that your specific needs differ from our existing products, we welcome your comments and
suggestions. Custom-designed models are also available.
If further questions do arise, please call for technical support, our FAE will assist you in any way we can.
I
MFC242Programmer’s Manual Rev. 1.0
General Description
This section presents general information about the basic characters of the MFC242.
1.1 Features
The MFC242 provides the following features:
1 Read Type A 13.56Mhz RFID Mifare card
2 Programmable illuminated color bezel
3 Support GDS protocol
4 Firmware upgradeable
5 USB interface, no external power supply required
Light weight:130g
6
Compact size:108.0 L x 75 W x 32 H mm
7
1.2 Application
This MFC242 card reader is designed to read RFIID Mifare card as well as performing programmable
illuminated color bezel.
For the RFID module, it can read and decode Type A 13.56Mhz RFID Mifare card. This product
communicates with a host computer or a terminal via GDS protocol using an USB 2.0 full speed interface.
The reader is widely accepted in the financial industry applications as its transmitting protocol is highly
reliable and easy to use.
1.3 Operation Behavior
1.3.1 RFID Card read Operation:
While operating, the MCU reads commands from host USB interface and send them to the RFID Reader
IC PN512 for the control of reading contactless TAG, then getting the response from PN512 and send it
back to host through USB interface.
1.3.2 Illuminated color bezel Operation.
The MCU reads commands from host USB interface and send them to G5126TB1U circuitry. Then
G5126TB1U circuitry will output the different output voltage to the 4 pieces of Red, Green and Blue color’s
LED. In this way, LED components will have different color and emit to the bezel
Page 2
MFC242Programmer’s Manual Rev. 1.0
1.4 Dimensions of MFC242
2 Technical Specifications
2.1 Magnetic Card Specifications
2.1.1 Card Type
Mifare Ultralight C and 4K Mifare DESFire EV1
2.1.2 Card Format
Mifare format
2.1.3 Card Operation
Test Ca r d Card reading distance from Bezel
Mifare Ultralight C 0 cm
Mifare Ultralight C 1 cm
Mifare Ultralight C 2 cm
2.2 Mechanical Specifications
2.2.1 Body Material
PC SABIC 945A
2.2.2 Dimension
Length: 108mm
Width: 75mm
Height: 32mm
Page 3
MFC242Programmer’s Manual Rev. 1.0
2.2.3 Weight
Approx. 130g
2.3 Electrical Specifications
2.3.1 Power Required
DC 5V 5%
2.3.2 Power Consumption
Stand-by current <50mA
Max operating current <300mA
2.3.3 Communication
GDS Card Reader Communication Protocol Standard V1.04
GDS® Card Reader: Communication Protocol v1.0.4
Universal Serial Bus (USB) Specification, v2.0
Device Class Definition for USB HID, v1.12
USB Engineering Change Notice – UNICODE UTF-16LE for String Descriptors
RFC 2781 (Unicode standard version 3.0) new REV 5.2
System Memory is divided into three parts:
Base addresses
0xFFFF
0xE800
0xE7FF
0x3000
0x2FFF
0x0000
Device Properties Block
Application Program Block
Block Size
Boot Loader Block
6K Bytes
46K Bytes
12K Bytes
Page 6
MFC242Programmer’s Manual Rev. 1.0
2.6.1 Boot Loader Block
The first 12Kbyte of memory is factory programmed with a boot loader. The boot loader is designed to update
application program through USB communication per HID V1.12 with a predefined communication protocol.
Please refer to the appendix section for more information.
Note:
The <Header> of Command/Response must be ‘C2’ (Hex).
The <LEN 1> field indicates the length from <Command_1> to <XORLRC>, it is two bytes.
The <LEN 2> field indicates the length from < Command_2> to < ADDLRC>, it is two bytes.
The <Data> fields are command or response data. See following section “Command and Response
Code” for details.
Response Format:
< Header>< Length><DATA>
Command_1 Command_2 Description
0x09 0x042 0x4C Enter to Boot Loader Block
0x21 0x7E CHECK Uniform produce
0x057 0x46 Program Flash address data length (max size 1024)
0x042 0x4E Get previous command
0x045 0x42 0x4C Get Boot Loader Version
0x45 0x4D Erase Flash
0x39 Get Application Program Version
0x7F Warm Reset
0x09 - Enter to Boot Loader Block
Command Length: 3 bytes
Response Data: = 06h, if success. Length is 1 byte.
0x057 0x46 - Program Flash address data length (max size 1024)
Command Length: 3 bytes
Response Data: = 06h, if success. Length is 1 byte.
= 15h, if failure. Length is 1 byte.
0x042 0x4E get previous command
Command Length: 3 bytes
Response Data: = ”OK”, if success. Length is 2 bytes.
= 15h, if failure. Length is 1 byte.
0x045 0x42 0x4C Get Boot Loader Version
Command Length: 4 bytes
Response Data: = [Version], if success. Length is 8 bytes.
= 15h, if failure. Length is 1 byte.
0x45 0x4d Erase Flash
Command Length: 3 bytes
Response Data: = ”OK”, if success. Length is 2 bytes.
= 15h, if failure. Length is 1 byte.
0x39 - Get Application Program Version
Page 7
MFC242Programmer’s Manual Rev. 1.0
Command Length: 1 byte
Response Data: = [Version], if success. Length is 8 bytes.
= 15h, if failure. Length is 1 byte.
0x7F - Warm Reset
Command Length: 1 byte
Response Data: = 06h, if success. Length is 1 byte. Warm Reset will perform.
= 15h, if failure. Length is 1 byte. Warm Reset not allowed
2.6.2 Application Program Block
The 46Kbyte from 0x3000 to 0xE7FF is Application Program. It is the main application code held in the
microprocessor. The microprocessor will execute it to perform related operation per USB HID V1.12. Please
refer to the appendix section for more information.
HID COMMAD Response format
Byte 0 Page report ID
Byte 1 Data or length or states
Byte 2 Data or length
Commutation
Report ID Usage ID Name
0x020x41 Enable YesYes
Operation When
Device Enabled
Operation When
Device Disabled
0x03 0x42 Disable Yes Yes
0x04 0x43 Self Test No Yes
0x05 0x44
0x08 0x47 Calculate CRC No Yes
0x5A 0x0610 Get CRD Configuration No Yes
0x5B 0x0611 Read Card Data Yes No
0x5C 0x0612
0x5D 0x0613
0x5E 0x0614
0x5F 0x0615 Light Control Yes Yes
0x60 0x0616 Clear Buffer Yes No
0x61 0x0617
0x68 0x061E
0x7F
User set
feature
(Not implemented)
Request GAT Report
(Not implemented)
Get ATR
(Not implemented)
Transfer to ICC
(Not implemented)
Release Latch
(Not implemented)
Get Count Status
(Not implemented)
Latch Mode
Dump Memory Yes Yes
No Yes
Yes No
Yes No
Yes Yes
Yes Yes
Yes Yes
Page 8
MFC242Programmer’s Manual Rev. 1.0
0x5F 0x0615 Light Control
This command is used to control the LEDs of a reader.
Bit 7 6 5 4 3 2 1 0
Byte 0
0x5F
Byte 1 Pattern 1Red LSB
Byte 2 Pattern 1Red MSB
Byte 3 Pattern 1Green LSB
Byte 4 Pattern 1Green MSB
Byte 5 Pattern 1Blue LSB
Byte 6 Pattern 1Blue MSB
Byte 7 Pattern 2 Red LSB
Byte 8 Pattern 2 Red MSB
Byte 9 Pattern 2 Green LSB
Byte 10 Pattern 2 Green MSB
Byte 11 Pattern 2 Blue LSB
Byte 12 Pattern 2 Blue MSB
Byte 13 Flashing Frequency
0x7F Dump Memory
This command is used to read the binary code of Boot Loader or Application Program. The parameter
[EEPROM Address] must be in the range 0x0000 to 0xE7FF.
RX:[ Result 0 - LSB ]
[ Result 1 ]
[ Result 2 ]
[ Result 3 - MSB ]
- 0x0A 0x49 Device State
7 6 5 4 3 2 1 0
Byte 0 0x0A
Byte 1 Disable Enable
- 0x62 0x0618 Failure Status
7 6 5 4 3 2 1 0
Byte 0 0x062
Byte 1 ICC Power Fail Firmware Fail
Byte 2 Diagnostics
- 0x63 0x0619 CRD Configuration
7 6 5 4 3 2 1 0
Byte 0 0x63
Byte 1 Track3Track2Track1 ICC
- 0x64 0x061A Card Status
7 6 5 4 3 2 1 0
Byte 0 0x64
Byte 1
Byte 2 Track3Track2Track1 ICC
- 0x65 0x061B Card Data
7 6 5 4 3 2 1 0
Byte 0 0x65
Byte 1 Index (LSB)
Byte 2 Index (MSB)
Byte 3 Size
Partially
Inserted
Card
Present
Removed Inserted
Byte 4 Type
Byte 5 Data 1
… …
Byte 63 Data 59
- 0x66 0x061C Error Data
Page 10
MFC242Programmer’s Manual Rev. 1.0
7 6 5 4 3 2 1 0
Byte 0 0x63
Byte 1 Error Code
- 0x67 0x061D Count Status
7 6 5 4 3 2 1 0
Byte 0 0x65
Byte 1 Index (LSB)
Byte 2 Index (MSB)
Byte 3 Size
Byte 4 Type
Byte 5 Data 1
… …
Byte 63 Data 59
2.7 Device Properties
The final 6Kbyte of memory is called Device Properties block and contains a group of option bytes that allow
the user to configure some device settings such as Serial Number, prefix, suffix and Preamble.
The details of device properties will be provided in next version.
Page 11
MFC242Programmer’s Manual Rev. 1.0
3 Appendix A. Application Program Block Related
Information
3.1 Device Descriptor
Field
GAME CONTROLS PAGE
Length 12
DescriptorType 01
USB 0200
DeviceClass 00
DeviceSubClass 00
DeviceProtocol 00
MaxPacketSize 08
Vendor 6352
Product 242B
Device 0103
Manufacturer 01
Product 02
SerialNumber 00
NumConfigurations 01
Value
Page 12
MFC242Programmer’s Manual Rev. 1.0
3.2 Report Configurations Descriptor
Field Value Description
Length 9 Configurations Descriptor size
Descriptor Type 2 Configuration
Total Length 34 Bytes returned
Num Interfaces 1 1 interface
Value 1 Configuration value
Configuration 03 Index of string descriptor describing
Attributes 80 BUS powered
Max Power 500 mA
Length 9 Interface Descriptor size
Descriptor Type 3 Interface
Interface Number 0
Alternate Setting 0 Alternate setting
Num Endpoints 1 Usage (Card Encode Type)
Interface Class 3 HID
Interface Sub Class 0 no boot
Interface Protocol 0 0=none
Interface 0 string descriptor
Length: HID
Descriptor size
Descriptor Type 21 HID
BCD HID 1.12 HID Class Spec release number
Country Code 0
Num Descriptors 1 HID class descriptors to follow
Descriptor Type 22 HID
Item Length Report descriptor
Length 7 Endpoint Descriptor size
Descriptor Type 05 Endpoint
Endpoint Address 81
Attributes 3 Interrupt endpoint
Max Packet Size 8
Interval 1
9 HID Descriptor size
Taiwan
Page 13
MFC242Programmer’s Manual Rev. 1.0
3.3 Report STRING Descriptor
Manufacturer index of string descriptor
Interface index of string descriptor
SerialNumber index of string descriptor
Manufacturer
- May be used to give a Unicode representation of the idVendor. This is assigned by each manufacturer
and kept consistent with regards to case and spelling.