PIC16F72是一款哈佛结构,精简指令集的MCU,由于其数据总线和指令总线分开,总共35条单字指令,0-20M的时钟速度,所以其运算速度和抗干扰性能都非常出色,2K字长的FLASH程序空间,22个可用的IO口,同时又附加了3个定时/计数器,5个8位AD口,1个比较/捕捉/脉宽调制器,8个中断源,这些优异的性能为电动车控制器控制提供了良好的硬件环境和软件基础,一经推出就赢得众多设计人员的热捧。
那么如何使用PIC16F72来设计一个电动车控制器呢?我们下面以目前市面流行的硬件设计为基础,尽量通俗易懂地介绍一下程序设计思路和注意点。
DAERYUK DCP52DF CIRCUIT BREAKER PROTECTOR 10AMP 2-POLES AC220V DC65V
OMRON C200H-CPU01 PLC PROGRAMMABLE CONTROLLER W/ 2-ID215 & 2-OD212 MODULE
CUTLER-HAMMER WESTINGHOUSE IQ DP-4000 ELECTRICAL DISTRIBUTION SYSTEM MONITOR
PIECES SAMWHA EOCR-SE TYPE 30R ELECTRONIC OVERLOAD RELAY
OMRON WLCA12-TS TWO-CIRCUIT LIMIT SWITCH 1/2"-NPT600A 2A 15-250VAC
KUN HUNGKH-8012 FOOT SWITCH125VAC 14VDC 15A
SHAMWA EOCR-SS-30N OVERLOAD RELAY 3~30A 90-250VAC
PIECES TERMINAL BLOCK CONNECTOR7-POINTS
51 NEW PIECES BRACKET CEILING QED RIGHT/LEFT SUB
PIECES BRACKET QED CEILING SUBRIGHT/LEFT
OMRON C500-OC223/3G2A5-OC223OUTPUT UNIT 32-POINTMODULE
TRW A31-B15A-23W3-000 AXIAL FAN 230VAC 50/60HZ 10/8WATTS
OMRON C500-OC221 OUTPUT UNIT250VAC GENERAL PURPOSE 2A/P
PIECES FUJIFA-1008PB2-C SHOCK ABSORBER 8MM STROKE
2 NEW PIECES 15 FTMONITOR/MOUSE EXTENSION DB9 M/F BEIGE
SMC VP542PNEUMATIC SOLENOIDVALVE 3-PORTS 1/4" 0.2-0.8MPA 21-26VDC
PIECES ASA.SALES SKB08729 BAND HEATER 4.7" DIA X 6"W 1250W 240/480V
LOT OF 5 FUJI ELECTRIC AH30-P1 COMANDSWITCH 10AMP 600VACMAX.
OMRON C200H-IM212 DISCRETE INPUT UNIT 24VAC/DC 7mA 16-POINTS
LOT OF 5 KOINO KH-3008 RED PUSH BUTTONAC250V 6AMP
SMC PNEUMATIC 20-CDG1DA40-300AIR CYLINDER 40MM BORE 300MM STROKE
CONTROL FEEDER SYSTEM HJ94-C3 100V
5 NEW PIECES SMR63BEARINGS 3MM x 6MMx 2MM
LOT OF 30 LAMP BULB 909 LIGHTBULBS MINIATURE 6V 0.62A (NEW)
SGS TOOL 38265 CORNER RADIUS END MILL 1/2" .045 SOLID CARBIDE (3 PIECES)
LOT OF 32 IRWIN T10 TORX INSERT BITS1" x 1/4"
OMRON G730-VID16-B INPUT REMOTE TERMINAL 16-POINTS 10MA/POINT 24VDC
LOT OF 10 HONEYWELL MAGNET RELAY SZR LY2-N1 AC200V SILVER-CADMIU
KOINO KPB30M RED PUSH BUTTON1NO CONTACT 250VAC 6AMP
POWER ONE HB12-1.7-APOWER SUPPLY 100-240VAC 12VDC 1.7AMP
OMRON C200H-ID211 INPUT UNIT12-24VDC 10mA 8 POINTS
LOT OF 4 CABLES PAN PACIFIC IEEE-1284COMPUTER COMPLIANT CABLE 6" (NEW)
8 NEW PIECES RUSH10LET SEMI CONDUCTORFUSE 10AMP 240V
IMPERIAL STRIDE 208-F INNER-OUTER REAMERCOPPER ALUMINUM & BRASS TUBING (2 PCS)
LOT OF 10 FITTINGSSMC KQT06-01S PNEUMATIC T CONNECTOR PIPE 6MM THREAD 1/8''
150 NEW PIECES STRAP GALVANIZED STEELLOOP 2 HOLES LEATHERBROWN 3/8"-OD
OMRON C200HW-PA204S POWER SUPPLY UNIT 100-120/200-240VAC 120VA 0.8A
160-BA03NSF1 ALLEN-BRADLEY ACSPEED DRIVER 380-460VAC 3PH 2.3A 1HP
PIECES MARATHON NZ1010-20125 MICA NOZZLE HEATER 120V125W 1.1"DIA x 1"W
HAKKO IRON HOLDER 607 SOLDERING IRON STAND (NEW)
57 NEW PIECES 3" x1.4" TYPE-L ROMAN BLIND ACCESSORIES FORFOLDS STEEL
2 NEW PIECES NORGREN SPUSR/000J0152 AIR CYLINDER BORE 3/4"STROKE 3"
85 NEW PIECES ROLLEASE SPLICING CONNECTORS DRIVE DISK KHAKI
5 NEW PIECES OIL SHAFT SEALS 70 x 80 x6 MM
LG ABS 33MOLDED CASE CIRCUITBREAKER 5AMP 3-POLES 660VAC
LOT OF 5 OMRON WLCA12-TS LIMIT SWITCH2A 250V NEMA A600 LEVEL ACTUATOR
LOT OF 50 SEAL PINK 35 x 47 x 6 MM HIGH TEMP
ALCO AMI-1MM5 FLAREMOISTURE LIQUID INDICATOR IN-OUT 5/8" 500PSIG
LOT OF 12 SHACHIHATA 22114 XSTAMPER REFILL GREEN INK 10ML
50 NEW PIECES ROLLEASE SHADE STOP BRACKET 2-3/8"
FUJI ELECTRIC AH30-L2 YELLOWILLUMINATED PUSH BUTTON 600V 10A 1NC-1NO
LOT OF 4 OMRON WLCA12-2LXD LIMIT SWITCH 180° 200mA 24VDC WLCA12
LOT OF 24 DONG-A DAGL 21 STRAIN RELIEVERS CABLE GLANDS
SMC PNEUMATIC MHQG2-16D AIR PARALLEL GRIPPER 4MMFITTING
LOT OF 4 SQUARE-DQ0 TYPE HACR CIRCUITBREAKER 30AMP 1-POLE 120-240V 10kA
2 NEW PIECES LASCO 4" 90 DEG. ELBOW SCH 80 CPVC
OMRON R88A-RR220047S REGENERATION RESISTOR 47 Ohm220W
6 NEW PIECES SHACHIHATA XSTAMPER CS-10N REFILL INK GREEN 22114 10ML
FOXBORO 841GM-AI1-C ELECTRONIC PRESSURE TRANSMITTER 30PSIG 12-36VDC
SMC 20-CM2B32-60 AIRCYLINDER 32MM BORE60MM STROKE (2 PIECES)
LOT OF 14 V2 TERMINAL BLOCK END CAPS
LOT OF 9 HAICOCK AIR COUPLER FITTING 20S AIR COMPRESSOR 3/8"
LOT OF 4 GOLDSTAR SZR-MY4-N1 RELAY 4-POLES COIL-220VAC WITHBASE SOCKET
FUJI ELECTRIC SJ-0G MAGENTICCONTACTOR 15A 24VDC3-POLE
4 NEW PIECES SMC PNEUMATIC VX2233 SOLENOID VALVE 24VDC
OMRON PLCGT1-BSC03 DEVICENETRELAY UNIT 8-POINTS24VDC
ORIENTAL MOTOR VEXTAASD24A-A SERVO DRIVE CONTROLLER MODULE110-115V 50/60HZ
ALLEN-BRADLEY 100-C09Z*400 CONTACTOR 32A24V COIL
CABLES ROHS 10D3-01106 COMPLINANT DB 25 MM 6FT
CIRCLE MACHINE AGD-156-05-CM1 REPLACEABLE COATED GROOVING INSERT 16078 5 PIECES
BIMBA MRS-087-XBL REED SWITCH 3-WIRE 24VDC 500mA
2 NEW PIECES GLASFLOSS PURACELL II MERV14 MINI PLEAT AIR FILTER 24" x 12" x 2"
ORIENTALMOTOR SB31-IN BRAKEPACK 3A 100V SB31IN
MAC 82A-AC-000-TM-DAAP-1DA/PR82A-GADA SOLENOID VALVE 110-120VAC 5.4W
LOT OF 16 GOLDSTARSZR-MY4-N1 RELAY W/SOCKET BASE 4-POLE24VDC 3A 220VAC
250 NEW PIECES RING STEEL WASHER BLACK1/4" OD 3/8" ID
6 NEW PIECES SMC D-Z73 REED SWITCH SENSOR 2-WIRE 1.2MS 24VDC 100VAC
LOT OF 21 OSG MINI-CUTTER BRASS 20MM LENGTH 7MM WIDTH
TDK ZCW2206-115 NOISE FILTER6A 250V
107 NEW PIECES STRAP 3/8" GALVANIZED STEEL TWO HOLE
LOT OF 10 DAITO UPH 30A FUSE HOLDER 250V
160 NEW PIECES BUSHING WHITE DERLIN 2"MID-SHADE
LOT OF 11 CHICAGOHARDWARE 50020-3 U-BOLT 1/4"x1-1/8" x2"
MOELLER FAZ-C6 CIRCUIT BREAKER 1-POLE 6AMP
YANKEE 433 HSS STRAIGHT FLUTE CHUCKING REAMER 1/2" 0.5000"( 5 PIECES)
5 NEW PIECES AMERICAN & EFIRD MEDALLION 2003 SERGER THREADSPOOLS 5000M
2 NEW PIECES TELEMECANIQUE LB1 LC03M07OVERLOAD PROTECTIONMODULE 1.6/2.5A
LOT OF 9 SMC ZP63HBS VACUUM PAD HEAVYDUTY 63MM
SHAMWA EOCR SS-05 R 220 OVERLOAD RELAY 0.5-6.5A 90-260VAC
LOT OF 4 CURTAIN ROD STEEL 34-1/4"-L 1"-BALL DIA. HOT ROLLED ROUND
50 NEW PIECES STAINLESS STEEL ANGLE BRACKET 90-DEGREES
LOT OF 4 TELEMECANIQUE DF6-AB10 TERMINAL BLOCK FUSEHOLDER690VAC 32A
FUJI 6RI75E-080 POWER DIODE MODULE 75A 800V
ALLEN BRADLEY 802T-B OILTIGHTLIMIT SWITCH 120-600VAC 60A NEMA-A600
4 NEW PIECES PIT 30 x 50 x 11MM NITRILE OIL SEAL
BANDO TL1008 TAPER LOCK BUSHING 5/8" BORE (PIECES)
SMC VPG2145 SOLENOID VALVE 0-1MPa 110VAC-COIL 50/60HZ 1/2"-PORT SIZE
BUSS JP60030-3CR FUSEBLOCK TYPE J 30AMP W/ 3 FUSES LPJ-65P
TERMINALBLOCK SERIE KH -61300 300A 250VAC 5 TERMINALS EA BOX
CUNO NT10T700S0NG POLYNET WATER FILTER 70 MICRON 10" LENGTH(6 PIECES)
12 NEW PIECES CEJN315 - 5404 NIPPLES3/8" FEMALE
2000 NEW PIECES RING CLEAR POLYCARBONATE 13.73MM-OD 9.08MM-ID
CONVUM MPS-74M-NGHX DIGITAL VACUUM PRESSURE SWITCH W/4 SENSORS MPS-R8
2 NEW PIECES MILLER PNEUMATIC A92B2B AIR CYLINDER 2" BORE3" STROKE 250PSI
LOT OF 5 CR 30725OIL SEAL 78x100x10MM
TELEMECANIQUE CA2-DN2229 CONTACTORS 600VOLTS 10AMP 24VDC
BUSS COOPER H25030-3P FUSE HOLDER WITH HINODE F70C20 FUSES 20A
TELEMECANIQUE LP20123 CONTACTOR 25A 24VDC COIL
ALLEN BRADLEY 800T-PTF16 ORANGE PUSH TOTEST PILOT LIGHT 120VAC 50/60Hz
OMRON C500-OD213 OUTPUT MODULE 24VDC 64-POINTS
CGW 38004 A60 WB1 ABRASIVES BENCH GRINDING WHEELS 6" x1/2"x1" (2 PIECES)
2 NEW PIECES INA 6208-C3 BALL BEARINGS40 x 80 x 18MM
LOT OF 4 MALENA M-50-T23-01-003 MINIATURE FLOW MONITOR SENSOR SWITCH 120VAC
8 NEW PIECES LG SZR LY4-N1 MAGNET RELAY AC 200/220V
20 NEW PIECES BARREL WOODEN CORD PULLROMAN SHADES COLOR-WHITE
LOT OF 5 GOULD MODICON AS-B351-001 INPUT MODULE 115VAC
AMEC GEN2 T-A 4C1YH-.390" ALLIED MAXCUTDRILL INSERT COATED25/64" (4 PIECES)
2 NEW PIECES INA 6003 2RS SINGLE ROW BALL BEARING 17MM x 35MM x 10MM
SMC D-A54SOLID STATE REED SWITCH SENSOR 24VDC
CGW 35006 A53660 ABRASIVES BENCH GRINDING WHEELS 6" x1/2"x 1" (2 PIECES)
4 NEW PIECES COATSASTRA SERGER THREADSPOOLS 6117-BABYBLUE SPUN POLY 5000M
OMRON E3S-BT11-L PHOTOELECTRIC SENSOR EMITTER 12-24VDC
OMRON DRT1-ID16T REMOTE INPUTTERMINAL NPN 16-POINTS 24VDC
LOT OF 5 OMRON E3S-R66 PHOTOELECTRIC RETROREFLECTIVE SENSOR 1M-DIST 1MS 30VDC
4 NEW PIECES PISCOJSC6-M5MB NEEDLE VALVE 6mm TUBE FITTING
OMRON C200H-0D218 OUTPUT UNIT24VDC 0.1A/POINT 3.2A/UNIT
OMRON WLCA2-LXD LIMIT SWITCHW/ OPERATION INDICATOR 180° 200mA 24VDC
LOT OF 25 GOULD SHAWMUT 30311 FUSE BLOCK 600VAC 30A 1-POLE
SEALEVEL SYSTEMS MM+2/EX 3087 I/O INTERFACE CARD 2-SERIAL PORT (2 NEW PIECES)
15 NEW PIECES GEARBOX FOR TUBULAR MOTOR CURTAINS WHITE
LOT OF 200 PLASTIC STANDARD DVD CD-RVIDEO GAME CLEAR CASES BOXES
PIECES BRACKET QED WALL MOUNT LEFT WHITE
LOT OF 20 OMRON MY4N RELAY 4-POLE WITHSOCKET BASE 24VDC 5AMP 250VAC
2 NEW PIECES NUMATICS 0301SA456B000061AIR SOLENOID VALVE160PSIG 24VDC COIL
MOELLER PKZM0-6.3 MOTOR STARTER PROTECTOR 6.3A 120V DISCONNECT SWITCH
RKC THERMO COUPLE SENSOR PROBE 25MM GROUNDED 2METERS CABLE (2 NEW PIECES)
OMRON D4NS-2BF GUARD LOCK SAFETY DOOR SWITCH 24VDC
RKC THERMO COUPLE SENSOR PROBE 25MM GROUNDED 2 METERS CABLE0.75 (2 NEW PIECES)
LOT OF 13 FITTINGSKOGANEI SC6-M5-MB ELBOW TUBE 6mm R1/8
8 NEW PIECES DACODAERYUK DCP51DF CIRCUIT PROTECTOR 220VAC5A 1P
PIECES CASTEC PAIR END CAP COVER BRACKET LEFT & RIGHT KHAKI-FOSSIL
PIECES JG5DISK ENDS CLEAT CURTAIN DARK RUST
PIECES ENDCAP SET 4040 REVEALBLACK 4" x 4"
LOT OF 6 IDEC 3-HOLE 2MM PUSHBUTTON BOX ENCLOSURE THERMOPLASTIC