Professional Documents
Culture Documents
Padmaraja Yedamale
Microchip Technology Inc.
INTRODUCTION
The PIC18F2331/2431/4331/4431 family of microcontrollers have peripherals that are suitable for motor
control applications. These peripherals and some of
their primary features are:
HARDWARE
A PICDEM MC demo board was used to develop,
test and debug the motor control code. The PICDEM
MC has a single-phase diode bridge rectifier, converting AC input to DC and a power capacitor bank that
keeps a stable DC bus. A 3-phase IGBT-based
inverter bridge is used to control the output voltage
from the DC bus. Figure 1 shows the overall block
diagram of the hardware.
The control circuit and power circuits are optically isolated with respect to each other. An on-board fly-back
power supply generates +5VD, with respect to the
digital ground used for powering up the control circuit,
including the PICmicro device. +5VA and +15VA are
generated with respect to the power ground (negative
of DC bus). The feedback interface circuit is powered
by +5VA, while +15VA supplies power to the IGBT
drivers located inside the Integrated Power Module
(IPM).
DS00899A-page 1
AN899
OPEN-LOOP CONTROL
As seen in AN885, BLDC motors are electronically
commutated based on the rotor position. Each
commu- tation sequence has two of three phases
connected across the power supply and the third
phase is left open. Using PWMs, the average voltage
supplied across the windings can be controlled, thus
controlling the speed. In this section, we will see how
the periph- erals on the PIC18FXX31 can be used to
control a BLDC motor.
FIGURE 1:
REF
DC+
AN1
IMOTOR
Hall A
Hall B
Hall C
Temp
PWM5
AN0
Run/Stop
PWM1
PWM4
PIC18FXX31
IC1
IC2
IC3
AN8
PWM3
PWM2
Driver
PWM1
PWM4
PWM2
Q0
IMOTOR
/FaultA
/FaultB
Q5
PWM3
PWM5
FWD/REV
Tx
Q3
PWM0
PWM0
PC
GUI
Q1
Q4
RSHUNT
IMAX
Comparator
Q2
DC-
Amplifier
Hall A
Hall B
Hall C
TABLE 1:
Sequence
Number
PWM1(Q1) PWM4(Q4)
PWM1(Q1) PWM2(Q2)
TABLE 2:
Active PWMs
Phase Current
A
DC+
Off
DC-
DC+
DC-
Off
PWM5(Q5) PWM2(Q2)
Off
DC-
DC+
PWM5(Q5) PWM0(Q0)
DC-
Off
DC+
PWM3(Q3) PWM0(Q0)
DC-
DC+
Off
PWM3(Q3) PWM4(Q4)
Off
DC+
DC-
Sequence
Number
Active PWMs
Phase Current
A
PWM5(Q5) PWM2(Q2)
Off
DC-
DC+
PWM1(Q1) PWM2(Q2)
DC+
DC-
Off
PWM1(Q1) PWM4(Q4)
DC+
Off
DC-
PWM3(Q3) PWM4(Q4)
Off
DC+
DC-
PWM3(Q3) PWM0(Q0)
DC-
DC+
Off
PWM5(Q5) PWM0(Q0)
DC-
Off
DC+
FIGURE 2:
CURRENT
0
Sequence Number
IC Interrupt
1 Electrical Cycle
1
001
2
000
3
100
360
5
111
4
110
6
011
1
001
2
000
540
3
4
100 110
720
5
111
6
011
A
Hall
Sensor
Input
1
0
1
0
1
0
+
0
-
Phase
Current
+
0
+
C
0
-
Highside
Switch
Lowside
Switch
PWM1 PWM1 PWM5 PWM5 PWM3 PWM3 PWM1 PWM1 PWM5 PWM5 PWM3 PWM3
Q1
Q1
Q5
Q5
Q3
Q3
Q1
Q1
Q5
Q5
Q3
Q3
PWM4 PWM2 PWM2 PWM0 PWM0 PWM4 PWM4 PWM2 PWM2 PWM0 PWM0 PWM4
Q4
Q2
Q2
Q0
Q0
Q4
Q4
Q2
Q2
Q0
Q0
Q4
FIGURE 3:
Note:
Sequence #
Hall Sensor
Input
001
000
100
110
111
011
OVDCOND
00010010
00000110
00100100
00100001
00001001
00011000
OVDCONS
00000000
00000000
00000000
00000000
00000000
00000000
PWM0
PWM1
PWM2
PWM3
PWM4
PWM5
EQUATION 1:
EQUATION 2:
x Speed Reference
Software Functions
Figure 4 shows the simplified flow chart of the main
loop and Figure 5 shows the flow chart of the Interrupt
Service Routine (ISR).
Main Loop: The Main Loop has the initialization
routine, Fault display and key detection and decoding.
Initialization Routine: This routine initializes all
peripherals used in this application. PWM is initialized
to output in Independent mode with a selectable PWM
frequency. Fault input is configured in Cycle-by-Cycle
mode. In this mode, PWM outputs are driven to an
inactive state until the Fault exists. In the next PWM
cycle, the outputs are resumed to active state.
Key Activity Monitoring: Both SW1 and SW2 are
monitored and each press of either button toggles the
state corresponding to the keys. SW1 is used to
toggle the states between Run and Stop of the motor.
SW2 is used to toggle between two directions. When
SW2 is pressed, the motor is decelerated to stop and
accelerated in the opposite direction.
Fault Signals: There are
monitored:
Overcurrent,
Overtemperature.
three Faults
Overvoltage
being
and
EXAMPLE 1:
EXAMPLE 2:
EXAMPLE 3:
;Defining the PWM duty cycle constant based on the Motor voltage, DC bus voltage and PWM period
#define MOTOR_VOLTAGE d'130'
#define AC_INPUT_VOLTAGE d'115'
#define MAX_SPEED_REF 256
PWM_CONSTANT =((MOTOR_VOLTAGE*PTPER_VALUE*4')/(1.414*AC_INPUT_VOLTAGE*MAX_SPEED_REF))*d16
;Multiplication factor of 16 is used to scale the result.
;------------------------------------------------------------------------------------------CALCULATE_PWM
;PWM = PWM_CONSTANT * SPEED_REF(read from ADC, only 8 MS bits are taken for simplicity)
MOVF
SPEED_REF,W
MULLW
(PWM_CONSTANT)
;PWM_CONSTANT*SPEED_REF
SWAPF
PRODL,W
ANDLW
0x0F
MOVWF
PDC_TEMPL
SWAPF
PRODH, W
ANDLW
0xF0
IORWF
PDC_TEMPL,F
SWAPF
PRODH, W
ANDLW
0x0F
;Divide the result in PRODH:PRODL by 16 and load to the
MOVWF
PDC_TEMPH
;Duty cycle registers
MOVFF
PDC_TEMPH,PDCxH
MOVFF
PDC_TEMPL,PDCxL
RETURN
FIGURE 4:
MAIN LOOP
MAIN PROGRAM
Initialization
MAIN_LOOP
Yes
Is Fault Activated?
Overcurrent Fault?
No
Yes
Blink LED1
No
Overtemp
Fault?
Key Activity?
No
Yes
Yes
Blink LED3
No
Overvoltage
Fault?
Yes
Blink LED2
No
FWD/REV Key?
Yes
Toggle FR_Key
Status
Decelerate Motor
No
Run/Stop Key?
Yes
Is Status Run?
Yes
Accelerate Motor to Set
Speed
No
Motor Speed
Ref = 0?
Yes
Toggle Direction
Bit, Toggle LED4
RETURN
No
Is Status
Stop?
Yes
Decelerate Motor to Set
Speed
No
FIGURE 5:
Direction?
Reverse
Yes
ADC Ready?
Yes
VMOTOR
PTEPR x 4
PWM Duty Cycle =
x Speed Ref
x
(PDCx Registers) VDCBUS Max. Speed Ref
Return from
Interrupt
Return from
Interrupt
speed
Operating frequency
Timer5 prescaler
Number of rotor pole pairs
EQUATION 3:
EQUATION 4:
Operating Frequency/4
Timer5 Count x Timer5 Prescale x Number of Pole Pairs x 6
EXAMPLE 4:
#define
#define
x 60
ADC Value
Maximum ADC Value
MOTOR_RATED_SPEED 3500
MAX_SPEED_REFERENCE 256
FIGURE 6:
Speed Ref
Max. Speed Ref
FOSC/4
Speed in RPM =
x 60
Timer5
x
Timer5
Prescale
x Rotor Pole Pairs x 6
(S Actual)
PID_Error = K P x E + K I x E + K D x E
Return
FIGURE 7:
Speed
Reference
Speed
Error
+
PID
PWM
6
Speed Feedback
3-Phase
Inverter
Bridge
BLDC
Motor
Commutation
Sequence
Hall Sensors
QE
CURRENT CONTROL
Motor phase current is measured using on-board
current sensors, U6, U9 and U10 (optional). The Hall
current transformer isolates the current signals with
respect to the power circuits. These signals are
connected to three Analog-to-Digital Converter
Channels on PIC18F4431.
Motor currents are read every fixed interval of time.
For constant torque application, the actual current is
com- pared with the set torque reference. The error is
ampli- fied using PID algorithm. The proportional,
integral and derivative gains are adjusted to get the
best transient and steady state responses. This
amplified error is used to readjust the PWM duty
cycle, calculated earlier, for speed control.
At time of publication, the code included with this
application note is Version 1.0. This version of the
code does not include a closed current loop operation
exam- ple as it is being considered as a future
enhancement; however, future versions of the code
may include this update. The example code is
available
from
the
Microchip
web
site
(www.microchip.com).
OVERCURRENT PROTECTION
In addition to this, these three currents are added
together and compared with a predefined voltage
using a comparator. Output of this comparator is
connected to the Fault A (/FaultA) pin on the
PIC18F4431. The Fault input to the PCPWM module
has the capability of putting PWM outputs to an
inactive state upon detection of a Fault (Fault signals
are active-low). The Fault input has two modes of
operation: the first is Catastrophic mode, where the
PWM is placed into an inactive state upon a Fault
detection until the firmware clears the Fault status bit.
The second mode is Cycle-by-Cycle mode. In this
FIGURE 8:
DC+
AD1
QEA
QEB
Index
Hall A
Hall B
QEA
QEB
INDX
INT0
INT1
INT2
Hall C
Run/Stop
PIC18FXX31
AD0
IMOTOR
PWM5
PWM5
PWM4
PWM4
PWM3
PWM3
Driver
PWM2
PWM2
PWM1
PWM1
PWM0
PWM0
3-Phase
Inverter
Bridge
Hall A
Hall B
Hall C
QE
FWD/REV
/Fault
IMOTOR
Com
parat
or
DCRS
HU
NT
IMAX
Amplifier
QEA
I
n
d
e
x
QEB
QUADRATURE ENCODER
INTERFACE PERIPHERAL
The Quadrature Encoder Interface has two main
modes: Position Measurement mode and Velocity
Measurement mode. Position Measurement modes
are used for measuring the position of shaft with
respect to index pulse, or with respect to a count
loaded in the MAXCOUNT register. The position
counter can be updated every QEA transition or every
QEA and QEB transition. Upon the position being
reached, an interrupt is generated.
In Velocity Measurement mode, Timer5 is counted
between two QEA transitions or every QEA and QEB
transition, and transferred to the Velocity register
EQUATION 5:
Speed in RPM =
EXAMPLE 5:
Operating Frequency/4
PPR x Velocity Update Rate x Pulse Reduction Ratio x Timer5 Prescale x VELR<H:L>
#define
OSCILLATOR
d'20000000'
;Define oscillator frequency
#define
ENCODER_PPR
d'1024'
;PPR of Encoder on the motor
#define
TIMER5_PRESCALE
d'1'
;Timer5 prescaler
#define
QEI_X_UPDATE
d'2'
;Define the QEI mode of operation.
;If the velocity counter is updated only on QEA transition, then enable 2x mode
;If the velocity counter is updated every QEA and QEB transition, then enable 4x mode
;Define Velocity pulse decimation ratio
#define
VELOCITY_PULSE_DECIMATION d'16'
INSTRUCTION_CYCLE = (OSCILLATOR)/d'4'
RPM_CONSTANT_QEI = ((INSTRUCTION_CYCLE)/
(ENCODER_PPR*QEI_X_UPDATE*VELOCITY_PULSE_DECIMATION*TIMER5_PRESCALE)) * 60 ;In RPM
x 60
EXAMPLE 6:
CALCULATE_SPEED
;Velocity register value is loaded in VELOCITY_READ<H:L> registers
;Actual speed = RPM_CONSTANT_QEI/ VELOCITY_READ<H:L>
MOVFF
VELOCITY_READH,ARG2H
;Timer5 count is loaded to divisible
MOVFF
VELOCITY_READL,ARG2L
MOVLW
HIGH(RPM_CONSTANT_QEI)
;Constant count is loaded to divisor
MOVWF
ARG1H
MOVLW
LOW(RPM_CONSTANT_QEI)
MOVWF
ARG1L
CALL
DIVISION_16BY16
;16 bit/16bit division performed
MOVFF
RESL,SPEED_FEEDBACKL
;Result is the actual speed in RPM
MOVFF
RESH,SPEED_FEEDBACKH
;Stored in the SPEED_FEEDBACK
RETURN
;registers
EXAMPLE 7:
PID_ALGORITHM
CONCLUSION
The PIC18F2331/2431/4331/4431 family of microcontrollers have peripherals that are well suited for
motor control applications. Using these peripherals,
speed control of a BLDC motor can be achieved with
less overhead on the firmware. Closed-loop speed
control is easy to implement as the microcontroller
has a built-in motion feedback module.
APPENDIX A:
PID CONTROLLER
FIGURE A-1:
Response
Step Input
Speed
TSETTLE
TRISE
Time
DC-
DC-
470 F 250v
6
10
100 F 25V
47 F 16V
SHORTING LINK
2
1
10 H
11DQ10
216010
GBPC2506C
100 F 25V
470 F 250v
10 H
11DQ10
DC27 ohm
100 F 25V
R4
150K
DC-
IRIS4009-HORZ
U1
VCC
D
GND
S
MOC8101
R13
2.4K
D2
TL431
3
2
C13
47 pF
750 ohm
DC-
R6
470 ohm
D10
R12
1.3 ohm
DC-
R8
4.7K
0.1 F
DCCCP/F8
47 F 25V
R7
4.7K
R10
4.7K
C7
56 pF
C10
C11
33 F 25V
0.01 F 270 VAC
47 F 25V
E7
10 ohm
C12
220 pF
DC-
DC-
PICDEMTM MC
CIRCUIT SCHEMATICS
4.7 F 400V
AN899
10 H
11DQ10
2.2 nF 400V
1 ohm 3W
APPENDIX B:
FIGURE B-1:
DS00899A-page 18
AC INPUT
FIGURE B-2:
0.1 F
INT0
INT1
INT2
0.1 F VREF
3
4
5
10K
6
7
8
9
10
11
100
12
13
10K
2
3
4
R20
20
10K
10K
MCLR/VPP
RB7/PGD
RA0/AN0
RB6/PGC
40
39
38
RA1/AN1
RB5/PWM4
RA2/AN2/VREF-
RB4/PWM5
RA3/AN3/VREF+
RB3/PWM3
RA4/CAP3
RB2/PWM2
RA5/AN5/LVDIN
RB1/PWM1
RE0/AN6
RB0/PWM0
RE1/AN7
VDD
32
RE2/AN8
VSS
31
VDD
RD7/PWM7
VSS
RD6/PWM6
1
2
36
35
34
0.1 F
AN1
8
7
CA1
V01
CA2
4 AN2
V02
GND
300
TLP2630/
SFH6326
33
30
VCC
37
300
29
28
RD5
RD4/FLTA 27
15 RC0/T1OSO/T1CKI RC7/RX/DT 26
16
25
RC1/T1OSI/CCP2 RC6/TX/CK/SS
17
24
RC2/CCP1
RC5/INT2
18
RC4/INT1 23
RC3/INT0
19
RD0/T0CKI/GPCKI RD3/SCK/SCL 22
14
300
U3
10K
R30
0.1 F
10K
OSC1/CLKI/RA7
300
OSC2/CLKO/RA6
RD1/SDO
RD2/SDI/SDA
0.1 F
1
2
3
4
21
AN1
VCC
CA1
V01
CA2
V02
8
7
6
GND 5
AN2
TLP2630/
SFH6326
PIC18F4431
R40 470
10K
PWM0
300
300
1
0.1 F
220 F 25V
MCP6002-DIP8
0.1 F 33 pF
33 pF
0.1 F
AN1
CA1
CA2
AN2
VCC
V01
0.1 F
V02 6
GND 5
TLP2630/
SFH6326
PICDEMTM MC
33 pF
AN899
DS00899A-page 19
DS00899A-page 20
0V LTS25-NP
+5V
OUT
U6
Load R124
0.01R. 1/2W
instead of U6
0.1 F
4.7 F
25V
+5V
0V LTS25-NP
OUT
U9
Load R125
0.01R. 1/2W
instead of U9
PICDEMTM MC
+5V
0V LTS25-NP
OUT
U10
Load R126
0.01R. 1/2W
instead of
U10
FIGURE B-3:
OPTIONAL
C28
33 pF
AN899
PIC18F4431 DEMO BOARD SHEET 3 OF 7
FIGURE B-4:
100K
0.1 F
100K
4
-INA
0.1 F
1
3 +INA
10K
11
300
560K
560K
560K
AN1
VCC
CA1
V01 7
CA2
V02 6
AN2
GND 5
0.1 F
TLP2630/
SFH6326
100K
0.1 F
-INB
5 +INB
300
10K
560K
560K
560K
R109
100K
0.1 F
9
0.1 F
-INC
300
10 +INC
10K
560K
560K
0.1 F
13
-IND
10K
12 +IND
560K
560K
AN1
VCC
CA1
V01 7
CA2
V02 6
AN2
GND 5
TLP2630/
SFH6326
560K
14
300
30K
AN899
DS00899A-page 21
0.1 F
R113
1K
PICDEMTM MC
30K
560K
VS2
NC
VB1
VS1
NC
V+
NC
DC-
2
3
10 F 16v
0.1 F
4
5
6
10 F 16v
1k
FUSE 6.3X32
DC- 13
DC14
H1
15
H2
16
H3
17
L1
18
L2
19
L3
20
ITRIP 21
U11:B
7
100 pF
MCP6002-DIP8
R112 91K
10K
4.7 nF
R118
360
U20
1
2
3
4
-LED
+LED
+VCCT
I1
N/C
N/C
+VCC2
I2
DC-
8
7
6
5
R119
6
51K 1%
U4:B
7
LOC111-8DIP
0.05R/3W
MCP6002-DIP8
R93
300
VCC 22
IRAMS10UP60A
33 pF
R110
12
VSS 23
R117
51K 1%
MCP6002-DIP8
R116
10
11
U11:A
1
R111
NC
VB2
10 F 16v
1
VS3
R108
4.3K
U16
1 +LED
2 -LED
COL 4
EMT 3
R94
1K
R115
1K
SFH618
PICDEMTM MC
R120
470
VB3
AN899
FIGURE B-5:
DS00899A-page 22
U15
ICD 1
1
2
J8
FIGURE B-6:
J9
J7
VREF
4
5
R95
4.7K
6
7
R96
4.7K
J10
J11
J12
1
2
3
R98
4.7K
R97
4.7K
9
10
R102
R106
R103
50
D21
1N4007
100K
R99
1N4007
R104
R101
1 RX0
FAULT/SLPS 8
2 CS/WAKE
VBAT 7
3 VDD
4 TXD
C41
0.1 F
39V
0.1 F
1
J13
D18
D19
D20
470
LIN 6
VSS 5
MCP201
R105
D17
27V
PICDEMTM MC
AN899
DS00899A-page 23
VCC
16
C44
1 F
V+
11
T1IN
14
18
T2IN
12
A1OUT
A1IN 13
A1OUT
A2IN 8
C1+
C2+ 4
C1-
C2- 5
MAX232-DIP16
C46
1 F
R107
10 ohm
V-
15
GND
C43
1 F
U19
JP9
C48
33 pF
HC - 49 US
C49
33 pF
PICDEMTM MC
PIC18F2431
AN899
FIGURE B-7:
DS00899A-page 24
C45
1 F
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 Microchips 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 intended through
suggestion only and may be superseded by updates. It is
your responsibility to ensure that your application meets
with your specifications. No representation or warranty is
given and no liability is assumed by Microchip Technology
Incorporated with respect to the accuracy or use of such
information, or infringement of patents or other intellectual
property rights arising from such use or otherwise. Use of
Microchips products as critical components in life support
systems is not authorized except with express written
approval by Microchip. No licenses are conveyed, implicitly
or otherwise, under any intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo,
Accuron, dsPIC, KEELOQ, MPLAB, PIC, PICmicro,
PICSTART,
PRO MATE and PowerSmart are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and
other countries.
AmpLab,
FilterLab,
microID,
MXDEV,
MXLAB,
PICMASTER, SEEVAL, SmartShunt and The Embedded
Control Solutions Company are registered trademarks of
Microchip Technology Incorporated in the U.S.A.
Application Maestro, dsPICDEM, dsPICDEM.net,
dsPICworks, ECAN, ECONOMONITOR, FanSense,
FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP,
ICEPIC, microPort, Migratable Memory, MPASM, MPLIB,
MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB,
rfPIC, Select Mode, SmartSensor, SmartTel and Total
Endurance are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
Serialized Quick Turn Programming (SQTP) is a service
mark of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of
their respective companies.
2004, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
DS00899A-page 25
WORLDWIDE SALES
AMERICAS
ASIA/PACIFIC
Corporate Office
Australia
Atlanta
3780 Mansell Road, Suite 130
Alpharetta, GA 30022
Tel: 770-640-0034
Fax: 770-640-0307
Boston
2 Lan Drive, Suite 120
Westford, MA 01886
Tel: 978-692-3848
Fax: 978-692-3821
Chicago
333 Pierce Road, Suite 180
Itasca, IL 60143
Tel: 630-285-0071
Fax: 630-285-0075
Dallas
4570 Westgrove Drive, Suite 160
Addison, TX 75001
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Tri-Atria Office Building
32255 Northwestern Highway, Suite 190
Farmington Hills, MI 48334
Tel: 248-538-2250
Fax: 248-538-2260
Kokomo
2767 S. Albright Road
Kokomo, IN 46902
Tel: 765-864-8360
Fax: 765-864-8387
Los Angeles
18201 Von Karman, Suite 1090
Irvine, CA 92612
Tel: 949-263-1888
Fax: 949-263-1338
AND
SERVICE
China - Beijing
Unit 706B
Wan Tai Bei Hai Bldg.
No. 6 Chaoyangmen Bei
Str. Beijing, 100027, China
Tel: 86-10-85282100
Fax: 86-10-85282104
China - Chengdu
Rm. 2401-2402, 24th Floor,
Ming Xing Financial Tower
No. 88 TIDU Street
Chengdu 610016, China
Tel: 86-28-86766200
Fax: 86-28-86766599
China - Fuzhou
Unit 28F, World Trade Plaza
No. 71 Wusi Road
Fuzhou 350001, China
Tel: 86-591-7503506
Fax: 86-591-7503521
China - Shanghai
Room 701, Bldg. B
Far East International Plaza
No. 317 Xian Xia Road
Shanghai, 200051
Tel: 86-21-6275-5700
Fax: 86-21-6275-5060
China - Shenzhen
Rm. 1812, 18/F, Building A, United
Plaza No. 5022 Binhe Road, Futian
District Shenzhen 518033, China
Tel: 86-755-82901380
Fax: 86-755-8295-1393
Phoenix
China - Shunde
San Jose
1300 Terra Bella Avenue
Mountain View, CA 94043
Tel: 650-215-1444
Toronto
6285 Northam Drive, Suite 108
Mississauga, Ontario L4V 1X5, Canada
Tel: 905-673-0699
Fax: 905-673-6509
China - Qingdao
Rm. B505A, Fullhope Plaza,
No. 12 Hong Kong Central Rd.
Qingdao 266071, China
Tel: 86-532-5027355 Fax: 86-532-5027205
India
Divyasree Chambers
1 Floor, Wing A (A3/A4)
No. 11, OShaugnessey Road
Bangalore, 560 025, India
Tel: 91-80-2290061 Fax: 91-80-2290062
Japan
Benex S-1 6F
3-18-20, Shinyokohama
Kohoku-Ku, Yokohama-shi
Kanagawa, 222-0033, Japan
Tel: 81-45-471- 6166 Fax: 81-45-471-6122
DS00899A-page 26
Korea
168-1, Youngbo Bldg. 3 Floor
Samsung-Dong, Kangnam-Ku
Seoul, Korea 135-882
Tel: 82-2-554-7200 Fax: 82-2-558-5932 or
82-2-558-5934
Singapore
200 Middle Road
#07-02 Prime Centre
Singapore, 188980
Tel: 65-6334-8870 Fax: 65-6334-8850
Taiwan
Kaohsiung Branch
30F - 1 No. 8
Min Chuan 2nd Road
Kaohsiung 806,
Taiwan Tel: 886-7-5364818
Fax: 886-7-536-4803
Taiwan
Taiwan Branch
11F-3, No. 207
Tung Hua North Road
Taipei, 105, Taiwan
Tel: 886-2-2717-7175 Fax: 886-2-2545-0139
EUROPE
Austria
Durisolstrasse 2
A-4600 Wels
Austria
Tel: 43-7242-2244-399
Fax: 43-7242-2244-393
Denmark
France
Parc dActivite du Moulin de Massy
43 Rue du Saule Trapu
Batiment A - ler Etage
91300 Massy, France
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Germany
Steinheilstrasse 10
D-85737 Ismaning, Germany
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Italy
Via Quasimodo, 12
20025 Legnano (MI)
Milan, Italy
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands
P. A. De Biesbosch 14
NL-5152 SC Drunen, Netherlands
Tel: 31-416-690399
Fax: 31-416-690340
United Kingdom
505 Eskdale Road
Winnersh Triangle
Wokingham
Berkshire, England RG41 5TU
Tel: 44-118-921-5869
Fax: 44-118-921-5820
01/08/04
1
2
3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MCLR/RE3
RB7
RA0/AN0
RB6
RA1/AN1
PWM4
RA2/VREFPWM5
RA3/VREF+
PWM3
RA4/AN4
PWM2
VDD
PWM1
VSS
PWM0
OSCI/RA7
VDD
OSC2/RA6
VSS
RC0
RC7
RC1/CCP2
RC6
RC2/CCP1 RC5/INT2
RC3
RC4/INT1
28
27
26
25
24
23
22
21
20
19
18
17
16
15