TB3094
PIC18F67J94 Development Board
Author:
LCD DISPLAY
Stephen Allen
Microchip Technology Inc.
A
4-common,
4-digit
LCD
display
(Lumex #LCD-S401M16KR) is being used to display
the score. The PIC18F67J94 can support up to
8-common displays, but 4-common is a very popular
configuration among LCD displays. The PIC18F67J94
also has the capability to drive many more segments,
but this provides a starting point for many LCD
applications.
INTRODUCTION
This development board has been created to
demonstrate many of the capabilities of the
PIC18F97J94 processor family (specifically, the
PIC18F67J94 device), including:
Individual segments can be controlled using Table 1
(see LCD-S401M16KR data sheet for bit explanations):
• Direct LCD drive, using a 4-common LCD display
• Serial interfacing, using the SPI protocol to
interface with an accelerometer and an IEEE
802.15.4 radio
• Use of the CTMU (Charge-Time Measurement
Unit) to perform capacitive touch sensing.
• Low-power operation, using a single 1.5V AA
battery as a power source (in conjunction with
voltage boosting chip)
• USB HID bootloader, allowing programming
through a USB cable (without requiring a
programmer)
TABLE 1:
Register
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
LCDDATA0
COL
4D
DP3
LCDDATA8
LCDDATA16
LCDDATA24
3D
DP2
4C
4E
4B
4G
4A
4F
2D
DP1
3C
3E
3B
3G
3A
3F
1D
2C
2E
1C
1E
2B
2G
1B
1G
2A
2F
1A
1F
The image below (Figure 1) shows the development
board with many of the main board components
indicated.
In order to demonstrate the capabilities of the
demonstration board, a simple dancing game has been
developed. See Section “Dance Game”.
FIGURE 1:
DEVELOPMENT BOARD
™
2013 Microchip Technology Inc.
DS90003094A-page 1
TB3094
IEEE 802.15.4 RADIO
Wireless communication is provided through an
MRF24J40MA module, and uses the MiWi® P2P
protocol. The MRF24J40MA transceiver allows for
easy wireless interfacing and communicates with the
microcontroller through an SPI interface.The software
stack for the MiWi protocol is available as part of the
Microchip Library for Applications. It should be noted
that the software stack has some modifications from
the standard library release, so the files provided in the
downloaded (source code package) directory should
not be replaced with files in the MLA release. More
information can be found on the MRF24J40MA product
page.
FIGURE 2:
USB BOOTLOADER
WINDOW
ACCELEROMETER (MOTION
SENSING)
A 3-axis accelerometer ST #LIS331DL is used for
motion sensing. Deltas in acceleration are recorded
and flagged as an event, if the magnitude is above a
certain threshold (SIGMA). Motion is detected when a
change in acceleration (delta) occurs. If the delta is
above a predetermined threshold (SIGMA), it is flagged
as an event. Acceleration deltas are used instead of
using acceleration directly because acceleration due to
the force of gravity is always present. If the readings
were used directly, the measurement of gravity would
interfere with comparison of the measurements.
The accelerometer data is read out via an SPI
interface. The SPI signals (CS, SCK, SDI, SDO) are
available through test points on the board. The
accelerometer is configured to generate an interrupt on
the INT1 pin when accelerometer data is available.
Accelerometer data is available at a 100 Hz sample
rate.
USB HID BOOTLOADER
To allow ease of reprogramming, the development
board supports a USB HID bootloader. The USB
bootloader is available separately, as a part of the
Microchip Library for Applications, “Device –
Bootloader – HID” demonstration project. The HID
bootloader application will run on Windows®, Mac®,
and Linux systems and allows programming of new
firmware through a USB cable.
To put the development board into Bootloader mode,
simply connect a USB cable. Rapid blinking of LEDs
D3 and D4 indicate that the USB connection is
successful. The screenshot below shows bootloader
messages after successful reprogramming of the
PIC18F67J94 development board.
DS90003094A-page 2
The bootloader code resides in the lower part of
program memory (locations 0–0x0FFF). If the
bootloader is mistakenly overwritten, it can be
reprogrammed into the device through the
programming connector, by programming the “HID
Bootloader PIC18F67J94.hex” file into the device. This
file can be found in the “HID bootloader” project
directory.
It should be noted that the bootloader application code
provided with the PIC18F67J94 demonstration board
has been slightly modified from the bootloader that is in
the Microchip Library for Applications release. The
bootloader is not entered with a key press, but is
entered by connecting the USB cable. When a USB
cable is connected, it causes a high signal to be
present on the RF7 pin. Be sure to use only the
bootloader (.hex file) that is contained in the project
directory.
PROGRAMMING/DEBUG INTERFACE
As an alternative to the bootloader, full programming
and debug support is available through header J2.
Developers will need to install the header pins in order
to connect using one of Microchip’s programmers
(PICkit™ 3, MPLAB® REAL ICE, or MPLAB ICD3). If
the bootloader is accidentally deleted from memory, the
bootloader can only be reprogrammed with the use of
an external programmer through the J2 programming
header.
2013 Microchip Technology Inc.
TB3094
POWER
DANCE FOLLOWER
Power is supplied by a single 1.5V AA battery. An
MCP1640 boosts the voltage to the 3.3V operating
level for the PIC18F67J94. Resistor values used on the
development board differ slightly from those listed
below. Reference the schematic in Appendix A:
“PIC18F67J94 Development Board Schematic” for
actual resistor values used.
After one member of the group has been chosen to be
dance leader, all other devices within radio range will
become dance followers, and presses of the capacitive
touch button will have no effect. Each time LED D1
changes, it indicates that motion data is being received
from a dance leader. Activity on this LED indicates that
the device is in Follower mode.
FIGURE 3:
Full source code for the game has been provided.
Developers that wish to modify the game (and
reprogram through the HID bootloader) are free to do
so.
1.5V BATTERY AND
MCP1640 BOOST CIRCUIT
BATON OPERATION
The baton contains a 3-axis accelerometer with the
axes oriented as shown below (Figure 4). The ‘Z’ axis
comes out of the page.
FIGURE 4:
FRONT VIEW BATON WITH
X, Y, Z AXES INDICATED
DANCE GAME
This is intended to be a dynamic game that includes
physical activity. If this type of activity has any risk of
injury or damage to property, it can be operated as
“sorcerer’s apprentice” where all participants remain
safely seated and attempt to mirror the movements of
a leader.
In order to demonstrate the features of the board, a
game has been created wherein one baton
(development board) establishes itself as a dance
leader, and other boards are dance followers. Dance
leader is selected by pressing the capacitive touch
button. If a dance follower is able to closely mirror the
movements of the dance leader, then their score will
increase.
The wireless module has a range of approximately
30 feet with a fully charged battery.
DANCE LEADER
After the capacitive touch button is pressed to become
dance leader, an “L” will appear on the left-hand side of
the display. The right-most digit will have segments
move in a circular fashion. The circular motion of the
right-most digit indicates that motion data is being
broadcast to all followers within radio range.
2013 Microchip Technology Inc.
ORIENTATION OF X, Y, Z AXES
The game should be started with the dance leader
facing the group of dancers. Each player should have
the baton in their right-hand, slightly in front of them, so
that the LCD display is visible. The dance leader will be
holding the baton so that he/she can see the “back” of
the baton of the followers and vice versa. This scenario
means that dance followers can mirror the movements
of the dance leader, and the data from each axis can be
compared directly, with the exception of the Y-axis,
which will require a sign change. For the dance leader,
the Y-axis comes out of the page, while for the Dance
Followers, the Y-axis goes into the page. In order to
compensate for this, the dance leader will switch the
sign on its Y-axis data prior to transmission.
For instances where the follower is moving in unison
with the group (not mirrored), this can be changed by
commenting the sign change in main.c.
MiApp_WriteData(-DeltaAccel[1]);
// y (sign change on y-axis data) for
mirroring "dance leader"
DS90003094A-page 3
TB3094
//MiApp_WriteData(DeltaAccel[1]);
// y (no sign change on y-axis data) for
same movement as "dance leader"
FIGURE 5:
SIDE VIEW OF MULTIPLE
DANCE BATONS WITH X, Y,
Z AXES INDICATED
Figure 6 shows an example of how score is increased.
For measurements below the EVENT_THRESHOLD,
there is no comparison made. If measurements are
above the EVENT_THRESHOLD (in magnitude), then
the measured delta in acceleration will be compared
with the value in the circular event buffer. If the two
values fall within a delta of each other, then the score
will be increased, proportionally to how close the event
lies in the event buffer to the current time.
FIGURE 6:
EXAMPLE OF HOW SCORE
IS RELEASED
START OF GAME PLAY
For start of Game Play, the dance leader will press the
touch-sensitive button. This will establish the dance
leader and the game starts one second later. The next
button press will terminate the game and allow
selection of a new dance leader.
ACCELEROMETER SAMPLING
The accelerometer samples data at 100 Hz, and each
sample from the dance leader is transmitted wirelessly
to the other units in radio range. Receiving a packet
which contains motion data will force the receiving unit
into Follower mode. Units in Follower mode cannot
request being dance leader.
SCORE CALCULATION
Score is calculated by determining how well dance
follower actions mirror that of the dance leader. The
currently measured accelerations are compared
against a circular history log of the dance leader. When
events are closely correlated, the score will increase. If
the dance leader is not moving, there will be no events
registered, and the score will not increase. High scores
are obtained through close correlation of dynamic
movements.
DS90003094A-page 4
Figure 7 shows actual ΔX acceleration data taken from
the game. During periods of no movement, the value
will lie close to zero. When the development board is
moved along the X-axis, variations in ΔX are produced.
If current time = 80, data in the log prior to this will be
compared with current measurements. To compare
against prior events in the log, a countdown register is
used. Once the countdown register falls below a certain
value, the comparison stops. The countdown register is
bit-shifted to produce the resultant increase in score.
This causes movements that are closely correlated in
time to result in larger increases in score. More intricate
(and CPU intensive) methods are available for
movement correlation, but this method works fairly well
and leaves processor bandwidth for servicing wireless
messages and taking care of other game-related tasks.
2013 Microchip Technology Inc.
TB3094
FIGURE 7:
ACCELERATION DATA
20
15
10
deltaX
5
0
0
20
40
60
80
100
deltaX
Ͳ5
Ͳ10
Ͳ15
Ͳ20
time
GAME WINNER
The participant with the highest score is the game
winner, and will see the blue LEDs at the top of the
development board flash. The participant with the
lowest score will have the red LEDs (D3 and D4) light
up momentarily.
BATTERY LOW INDICATOR
If the AA battery drops below a certain voltage, then the
message “-Lo-” will appear on the screen. If the battery
is not replaced, the game may not work properly and
wireless transmissions will have limited range. This
level is set by BATTERY_LOW_VALUE in main.c.
3.
f) TP6 – SDO signal connects to
accelerometer and RA5
g) TP7 – connects to RF5, and commonly used
for UART ‘printf’ data
h) TP8 – connects to RF6, and can be
user-defined
i) TP9 – CS signal connects to accelerometer
and RC7
j) TP10 – battery output voltage, connects to
RG4
k) TP11 – Ground
ICSP™ programming connection is available on
J2. The connector is not populated, but can be
added to allow programming with supported
Microchip programmers.
BOARD FEATURES
The development board contains the following features
to enable development:
1.
2.
USB HID bootloader – the PIC18F67J94 microcontroller can be reprogrammed using a USB
cable.
Multiple test points:
a) TP1 – DI signal connects to MRF24J40 and
RA1
b) TP2
–
SCK
signal
connects
to
accelerometer and RA6
c) TP3 – DO signal connects to MRF24J40 and
RA0
d) TP4 – SDI signal connects to accelerometer
and RA4
e) TP5 – CLK signal connects to MRF24J40
and RA3
2013 Microchip Technology Inc.
DS90003094A-page 5
TB3094
4.
Error messages – Error messages (sent to LCD
display) are provided to alert when unintended
operation occurs. Unused error messages are
available for development use.
TABLE 2:
Error
message
5.
Cause
0
Did not receive score header on response
from follower
1
Time-out on score retrieval
2
Leader has not sent message in long time
3
Invalid radio channel has been selected
4
Message received with invalid header
5
Invalid leader value
6
No response from accelerometer at start-up
7
Unused
8
Unused
9
Unused
Multiple LEDs – LEDs are available to indicate
status.
D1 – flashes as wireless data is received.
D2 – unused
D3, D4 – light to indicate lowest score among
group.
TEST POINT FLEXIBILITY
Test Points 7 and 8 (TP7 and TP8) are currently configured as UART TX and RX. However, these pins can be
reconfigured through PPS-Lite to have many other
functions including interrupts, PWM outputs, timing
capture inputs, etc. See Section 11-15 (PPS-Lite) of the
PIC18F97J94 family data sheet for a list of available
peripheral functions.
DS90003094A-page 6
2013 Microchip Technology Inc.
ICSP
VPP/MCLR
VDD
GND
ICSPDAT
ICSPCLK
NC
GND
BHAA-3
B1
TP11
S2
1 MCLR
2
3
4 PGD
5 PGC
6
2
J2
1
GND
3
TP10
GND
VCC
RG4
TP3
3
6
GND
C9
4.7uF
4.7uH
L1
39
40
PGC
PGD
RB0
RB1
RB2
RB3
MIWI_DO
48
47
46
45
44
43
42
37
24
22
MIWI_CLK 21
TP4
SDI 28
SDO 27
TP6
SCK2
U4
GND
EN
VFB
GND
GND
5
4
GND
R8
309K
R7
453K
C11
10uF
VCC
19
26
38
57
10
C8
10V
10 uF
GND
GND
C7
0.1µF
GND
C6
0.1µF
RC0/PWRCLK/SCLKI/SOSCO
RC1/SOSCI
RC2/RP11/AN9/CTED7/SEG13
RC3/RP15/SCL1/CTED8/SEG17
RC4/RP17/SDA1/CTED9/SEG16
RC5/RP16/CTED10/SEG12
RC6/RP18/UOE/CTED11/SEG27
RC7/RP19/CTED12/SEG22
RB0/RP8/INT0/CTED13/VLCAP1
RB1/RP9/VLCAP2
RB2/RP14/SEG9/CTED1
RB3/RP7/SEG10/CTED2
RB4/RP12/SEG11/CTED3
RB5/RP13/CTED4/SEG8
RB6/CTED5/PGC
RB7/CTED6/PGD
MCP1640T-I/CHY
VIN VOUT
U1A
PIC18F67J94-X_PT
GND
Shield
6
DD+
5
GND
D+
4
D-
3
VBUS
2
1
H2961CT-ND
VBUS
J1
AVDD
VDD_2
VDD_3
VDD
VDDCORE/VCAP
RA0/RP0/AN0/AN1-/SEG19
RA2/RP2/AN2/VREF-/SEG21
RA3/RP3/AN3/VREF+
RA4/RP4/AN6/SEG14
RA5/RP5/AN4/C1INA/C2INA/C3INA/LVDIN/SEG15
OSC1/CLKI/RA7
OSC2/CLKO/RA6
MCLR
RA1/AN1/SEG18
VBAT
RE2/CS/RP30/LCDBIAS3
C5
0.1µF
GND
C4
0.1µF
VCC
30
29
33
MIWI_WAKE
MIWI_RESET 34
35
INT1
36
INT2
MIWI_INT
31
CS 32
TP9
TP2
TP1
TP5
R1
4.7K
CAP TOUCH
GND
C1
0.1µF
VCC
R6
10K
7
MCLR
MIWI_DI
23
18
64
VCC
1
SW
2013 Microchip Technology Inc.
GND
R14
100K
R13
56.0K
RF7
RB0
D5
Blue
R9
330R
AVSS
VSS_2
VSS_3
VSS_4
VSS
20
9
25
41
56
VCC
RB1
D6
Blue
R10
330R
GND
U1B
PIC18F67J94-X_PT
RB2
D7
Blue
R11
330R
COM4/SEG28/AN8/RP46/RG0
COM5/SEG29/AN19/RP39/RG1
COM6/SEG30/AN18/C3INA/RP42/RG2
COM7/SEG31/AN17/C3INB/RP43/RG3
SEG26/AN16/C3INC/RP44/RTCC/RG4
VUSB3V3
SEG20/C2INB/CTMUI/AN7/RP36/RF2
D-/RP41/RF3
D+/RP45/RF4
SEG23/CVREF/AN10/C1INB/RP35/RF5
SEG24/AN11/C1INA/RP40/RF6
SEG25/AN5/RP38/RF7
LCDBIAS1/RD/RP28//RE0
LCDBIAS2/WR/RP29/RE1
COM0/REFO1/RP33/RE3
COM1/RP32/RE4
COM2/RP37/RE5
COM3/RP34/RE6
LCDBIAS0/RP31/RE7
SEG0/PSP0/RP20/RD0
SEG1/PSP1/RP21/RD1
SEG2/PSP2/RP22/RD2
SEG3/PSP3/RP23/RD3
SEG4/PSP4/RP24/RD4
SDA2/SEG5/PSP5/RP25/RD5
SCL2/SEG6/PSP6/RP26/RD6
REFO2/SEG7/PSP7/RP27/RD7
3
4
5
6
8
17
16
15
14
13
12
11
2
1
63
62
61
60
59
58
55
54
53
52
51
50
49
RB3
D8
Blue
R12
330R
RG0
RG1
RG2
RG3
RG4
MIWI_CS
DD+
TP7
TP8
VCC
COM0
COM1
COM2
COM3
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
RG0
D1
Red
R2
330R
GND
D2
Red
R3
330R
RG1
6
MIWI_CLK
D3
Red
R4
330R
LIS331DL
RG3
D4
Red
R5
330R
VDD_IO
NC
NC
SPC
GND
SDI
SDO
CS
INT2
RESERVED-GND
INT1
GND
GND
VDD
RESERVED-VDD
GND
U3
RG2
1
2
3
SCK2 4
5
SDI 6
SDO 7
CS
8
INT2 9
10
INT1 11
12
13
14
15
16
VCC
GND
VCC
C3
10uF
GND
C2
0.1µF
RF7
5
MIWI_DI
4
3
MIWI_WAKE
MIWI_INT
2
1
MIWI_RESET
GND
MRF24J40MA
SCK
SDI
INT
WAKE
RESET
GND
U2
11
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
SEG0
COM3
COM2
COM1
COM0
12
11
10
SEG7
SEG6
SEG5
SEG4
SEG1
6
SEG3
SEG0
5
9
COM3
4
SEG2
COM2
3
8
COM1
2
7
COM0
1
MIWI_DO
LCD1
MIWI_CS
8
7
9
10
GND
GND
VCC
12
LCD-S401M16KR
SDO
CS
NC
VIN
GND
GND
APPENDIX A:
2
RESET
S1
TB3094
PIC18F67J94 DEVELOPMENT BOARD SCHEMATIC
DS90003094A-page 7
LCD-S401M16KR
BILL OF MATERIALS
Quantity
Designator
Description
Manufacturer 1
Manufacturer Part Number 1
2013 Microchip Technology Inc.
1
B1
BHAA-3
MPD (Memory Protection Devices)
BHAA-3
6
C1, C2, C4, C5,
C6, C7
Cap, Ceramic, 0.1uF, 50V X7R, Cap, Ceramic, 0.1uF, 50V, Cap,
Ceramic, 0.1uF, 50V X7R, Cap, Ceramic, 0.1uF, 50V X7R, Cap,
Ceramic, 0.1uF, 50V X7R, Cap, Ceramic, 0.1uF, 50V X7R
TDK Corporation
C1608X7R1H104M080AA
2
C3, C11
Cap, Ceramic, 10uF, 16V X5R
Taiyo Yuden
LMK212BJ106KG-T
1
C8
Cap, Ceramic, 10uF, 10V X5R 10%
TDK
C1608X5R1A106K
1
C9
Cap, Ceramic, 4.7uF, 10V, 20% X7R SMD
TDK
C2012X7R1A475M
4
D1, D2, D3, D4
LED, SMD, RED, 0603 package
Kingbright Corp
APT1608EC
4
D5, D6, D7, D8
LED, SMD, BLUE, 0603 package
Kingbright Corp
LB Q39G-L2N2-35-1
1
J1
CONN RECEPT MINI USB2.0 5POS
Hirose Electric Co Ltd
UX60A-MB-5ST
1
J2
Header, PICkit™ 2, 1X6 0.1sp
SAMTEC
TSW-106-07-F-S
1
L1
INDUCTOR MULTILAYER 4.7UH 0603
TDK Corporation
MLZ1608E4R7M
1
LCD1
LCD-S401M16KR
Lumex
LCD-S401M16KR
1
R1
Res, 4.7K 1/10W 1%
Stackpole Electronics Inc
RMCF0603FT4K70
8
R2, R3, R4, R5,
R9, R10, R11,
R12
Res, 330 Ohm, 1/10W 1%
Stackpole Electronics Inc
RMCF0603FT330R
1
R6
Res, 10K, 1/10W 1%
Stackpole Electronics Inc
RMCF0603FT10K0
1
R7
Res, 453K 1/10W 1%
Panasonic Electronic Components
ERJ-3EKF4533V
1
R8
Res, 309K 1/10W 1%
Stackpole Electronics Inc
RMCF0603FT309K
1
R13
Res, 56K 1/10W 1%
Panasonic Electronic Components
ERJ-3EKF5602V
1
R14
Res, 100K, 1/10W 1%
Stackpole Electronics Inc
RMCF0603FT100K
1
S1
Switch, Tact, PB MOM SMT, Series TL3302
E-Switch
TL3302AF180QJ
1
S2
Switch, Slide, SPDT, Rt Angle, SMT, Low Profile
TE Connectivity
MLL1200S
1
A
COSMOS 10 pcs black nylon hand wrist strap lanyard for camera
1
U1
PIC18F67J94-X_PT
Microchip Technology
PIC18F67J94-I/PT
1
U2
IEEE 802.15.4 2.4 GHz RF Transceiver
Microchip Technology
MRF24J40MA
1
U3
IC ACCELEROMETER 3AXIS 16-LGA
STMicroelectronics
LIS331DL
Microchip Technology
MCP1640T-I/CHY
1
U4
MCP1640T-I/CHY
CELL-LG-WL-BKx10
TB3094
DS90003094A-page 8
TABLE 3:
Note the following details of the code protection feature on Microchip devices:
•
Microchip products meet the specification contained in their particular Microchip Data Sheet.
•
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.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro,
PICSTART, PIC32 logo, rfPIC, SST, SST Logo, SuperFlash
and UNI/O are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MTP, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O,
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 & Co. KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
© 2013, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 9781620772485
QUALITY MANAGEMENT SYSTEM
CERTIFIED BY DNV
== ISO/TS 16949 ==
2013 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
DS90003094A-page 9
Worldwide Sales and Service
AMERICAS
ASIA/PACIFIC
ASIA/PACIFIC
EUROPE
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
Asia Pacific Office
Suites 3707-14, 37th Floor
Tower 6, The Gateway
Harbour City, Kowloon
Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4123
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Japan - Osaka
Tel: 81-6-6152-7160
Fax: 81-6-6152-9310
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Indianapolis
Noblesville, IN
Tel: 317-773-8323
Fax: 317-773-5453
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
China - Hangzhou
Tel: 86-571-2819-3187
Fax: 86-571-2819-3189
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
China - Hong Kong SAR
Tel: 852-2943-5100
Fax: 852-2401-3431
Malaysia - Kuala Lumpur
Tel: 60-3-6201-9857
Fax: 60-3-6201-9859
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
Taiwan - Hsin Chu
Tel: 886-3-5778-366
Fax: 886-3-5770-955
China - Shenzhen
Tel: 86-755-8864-2200
Fax: 86-755-8203-1760
Taiwan - Kaohsiung
Tel: 886-7-213-7828
Fax: 886-7-330-9305
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
Taiwan - Taipei
Tel: 886-2-2508-8600
Fax: 886-2-2508-0102
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08-91
UK - Wokingham
Tel: 44-118-921-5869
Fax: 44-118-921-5820
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
DS90003094A-page 10
Japan - Tokyo
Tel: 81-3-6880- 3770
Fax: 81-3-6880-3771
11/29/12
2013 Microchip Technology Inc.