Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Microchip PIC16F182X Low Power Design

F: | Au:FANS | DA:2026-06-02 | 144 Br: | 🔊 点击朗读正文 ❚❚ | Share:

Design tip: To improve touch sensitivity, the sensor wiring on the PCB should be as short as possible, laid around the ground, and a series resistor should be used to limit the charging current.

4.2 10 bit ADC and comparator

ADC: Conversion speed can reach 50 ksps, with multiple positive reference voltage options (internal FVR, external VREF, VDD). In battery powered applications, internal 1.024V or 2.048V fixed references can be used to avoid VDD fluctuations affecting measurements.

Comparator: rail to rail input, output with programmable SR latch. The latch mode can construct simple hysteresis comparators or edge triggered interrupts, suitable for overcurrent protection, zero crossing detection, and other occasions.

Motor and lighting control: flexible PWM array

The PIC16F182X series offers up to 4 independent time base PWM modules (extended from standard CCP/ECCP). This means:

It can simultaneously control multiple outputs of different frequencies, such as one for LED dimming (high frequency, small duty cycle variation) and the other for DC motor speed control (low frequency, large torque range).

Each PWM module has independent cycle registers and duty cycle registers, supporting edge alignment or center alignment modes.

Combined with on-chip comparator, cycle by cycle current limitation can be constructed to protect power devices.

Application scenarios: CNC lighting (generating multiple PWM dimming after DMX decoding), six step commutation of three-phase BLDC motors (requiring external logic or the use of multiple PWM outputs).


Quick selection checklist: Quickly locate the best model

This series is divided into three sub families based on the number of pins, sharing the same peripheral framework. The main differences lie in storage capacity and the number of communication interfaces.

Model Pin Flash RAM EEPROM Featured Peripherals

PIC12F1822 8 3.5 KB 128 B 256 B 1×SPI/I2C, 4×PWM

PIC12F1840 8 7 KB 256 B 256 B Same as above, larger storage

PIC16F1823/4/5 14 3.5/7/14 KB 128/256/1024 B 256 B 8 touch channels, 2 comparators

PIC16F1826/7/47 18 3.5/7/14 KB 128/256/1024 B 256 B Dual MSSP, 2 × CCP, 12 touch channels

PIC16F1828/9 20 7/14 KB 256/1024 B 256 B up to 18 I/O, dual MSSP (only 1829)

Selection suggestion:

Only requiring simple I/O control and low power consumption, choose the 8-pin PIC12F1822.

Requires touch buttons and a lot of I/O, choose the 14 pin PIC16F1825 (14KB Flash, the most cost-effective).

It is necessary to mount both the I ² C sensor and SPI display screen simultaneously, and require dual buses. Choose the 18/20 pin dual MSSP model (such as PIC16F1847).


Development Tools and Ecology: Starting from Zero Cost

Microchip provides a complete development chain for the PIC1XF182X series with an extremely low entry-level cost:

Integrated Development Environment: Free MPLAB X IDE, supporting cross platform (Windows/Linux/macOS).

Compiler: Built in free HI-TECH C Lite compiler, with optimization levels sufficient to meet most applications. If higher code density is required, it can be upgraded to the standard or Pro version.

Debugging and programming: All devices support online debugging without the need for additional debugging heads. Simply connect PICkit 3 (DV164131) or MPLAB ICD 3 (DV164035) to program and step debug through the ICSP interface.

Development board:

PICDEM Lab Development Board (DM163035): Supports all 182X series, onboard potentiometers LED、 Button and breadboard area, suitable for rapid prototyping.

PICkit 18 pin demo board (DM164120-4): For 18 pin DIP packaging, direct plug and unplug testing.

Common problem: When programming with low voltage (such as VDD=3.3V), it is necessary to ensure that the programmer can provide sufficient voltage (PICkit 3 can output 3.3V or 5V). If the target board is powered by a battery, it is recommended to disconnect the battery during programming and have the programmer provide power to avoid voltage conflicts.


Typical application traps and avoidance

Based on the analysis of the data manual and errata for this series, engineers need to pay attention to the following points in actual development:

Sleep wake-up time: It takes approximately 3-5 clock cycles (with internal oscillator enabled) to wake up from sleep mode and execute the first instruction. If an external crystal oscillator is used, the wake-up time includes the oscillator start-up time, which may last for several milliseconds. High real-time wake-up requires the use of an internal oscillator.

ADC reference voltage: When selecting internal FVR (fixed voltage reference) as the ADC reference, the FVR module must be stably started before ADC sampling. The standard practice is to enable FVR in ADCON1 and insert a delay of at least 50 µ s before starting the conversion.

Capacitive touch PCB layout: The sensitivity of touch buttons is affected by parasitic capacitance. The key wiring should be kept away from high-frequency signals (such as SPI clock), and the reference capacitance of each touch channel (CSM module requires external Cref) should be ensured to have an accuracy of at least 5%.

Output polarity of data signal modulator: The output polarity of DSM can be configured, but it should be noted that in ASK modulation, if both the carrier and modulation signals are high and effective, the output may be constant high. It is usually necessary to invert the modulation signal or adjust the logic mode to obtain the correct envelope waveform.

  • UniOP eTOP40C-0050 - Color Touch Screen HMI
  • UniOP ETOP03-0046 - Operator Interface Panel
  • UniOp eTOP30 - Graphic Display HMI
  • UniOP ETOP307-U301 - Industrial Touch Terminal
  • UniOP eTOP507 - Operator Panel HMI
  • UniOP eTOP05-0045 - HMI Touch Screen Panel
  • UniOP eTOP05-0045 - HMI Touch Screen Panel
  • GRUNDIG NEA02 AES 0 PLC Card
  • Siemens 6ES7215-1AG40-0XB0 CPU 1215C
  • Power-One LKP 5744-9ER Converter
  • Merlin Gerin STR 58U Masterpact Trip Unit
  • Siemens G26004-A2105-P100-2 PCB
  • Siemens 6ES7 405-0RA02-0AA0 Power Supply
  • PILZ 312070 PSSu H PLC1 FS SN SD
  • Siemens 3RV2031-4WA10 Motor Switch
  • GE Fanuc IC693CBK001 PLC Module
  • Siemens 6FX2007-1AD03 MINI-BHG
  • Mitsubishi MELSEC A2ASCPU PLC System
  • PC PMC25.2-002 PLC Module
  • B&R X20CP1382 Programmable Controller
  • Siemens C98043-A7002-L4 PC Board
  • Fanuc A16B-3300-0057 PCB Board
  • Schneider LV430403 Circuit Breaker TM160D
  • ABB CI810B 3BSE020520R1 PLC Interface
  • Omron R88D-HT10 Servo Drive
  • Omron CS1G-CPU43H CPU Unit
  • Mitsubishi QD70D4 Positioning Module
  • Siemens 6FC5110-0BB04-0AA1 Sinumerik 840C CPU
  • Siemens 3RT5045-1AC20 SIRIUS Contactor 75kW
  • Siemens 3VA2340-5HL32-0AA0 Circuit Breaker 400A
  • ABB HBS01-CJC I/O MTUS SD Series Module
  • Eberle MT42 Complete PLC Rack PLS514
  • Siemens C8451-A201-A9 PLC Card Slot Backplane
  • Cherokee ACX643 REV-B Power Supply Unit 100-240VAC
  • Schneider SSD1A320BDC1 Solid State Relay 20A
  • GE Fanuc IC694APU300 High Speed Counter Module
  • Schneider 140DA175300 Analog Output Module
  • Allen Bradley 1794-OA8I FLEX 8-Point Digital Output Module
  • Phoenix Contact PLC-BPT-24DC/1/SEN Solid State Relay Module
  • Schneider IG2000PG2 PLC Module Industrial Controller Card
  • Mitsubishi LE-40MTA-E Tension Controller Web Handling Control
  • Siemens 6FX1122-1AC02 PLC Card Industrial Interface Module
  • ABB AF210-30-11 Contactor Coil Voltage 110-240VAC
  • Mitsubishi GT2508-VTBD GT2508-VTBA HMI Touch Screen Panel
  • BPT 67200020 Touch Screen PLC Display Multifunction Terminal 50Hz
  • NORIS A1-91 PCB Rack Module A1-91-4 A1-91-5 A1-91-6 A1-91-7
  • Mitsubishi A1S61PN Power Supply Unit AnS Series 5VDC 5A
  • Pilz 312070AA PSSU H PLC1 FS SN SD Safety Module
  • Pasaban MTC-3044 PLC Rack with Power Supply Card
  • Schneider METSEPM8243 Power Meter PM800
  • Fanuc A16B-1212-0100-01 Power Supply Unit
  • Honeywell DPCB21010002 PCB IRTP-161 REV A
  • Siemens 6ES7315-2AH14-0AB0 CPU 315-2 DP
  • Omron GRT1-DA2V Analog Output Module 2 Channels
  • Mitsubishi FX3U-128MT/ESS PLC CPU Module
  • Schneider SSP05EMA12 Soft Starter Altistart 22
  • Mushroom 787602 Push Button Head 40mm
  • Hydraulik Elektronik EPM8900 91221 Proportional Module
  • ABB XZ C828 A101 Didt Dioder Snubber 3BHE039453R0101
  • ABB 3BHE032593R0001 Isolated Power Supply
  • ABB 3BHB02722R0001 single-phase charging transformer
  • ABB 3BHE006412R0101 UFC762AE101 main control board
  • ABB XVC770BE101 3BHE021083R0101 interface board
  • ABB 3BHE024747R0101 GD C801 Overvoltage Protection Motherboard
  • ABB 3BHE021887R0101 3BHB002751R0102 Variable Frequency Control Board
  • ABB SD812 power module 3BSC610023R0001
  • Automotive LC4A00010 Brushless Motor Controller
  • Doric NC500 Neuroscience Data Acquisition System
  • Honeywell X-DCS2000/EN Broadcast Manager
  • Kollmorgen S60600 servo drive 6A 480V
  • Honeywell 30751044-008 ROM Card
  • Honeywell 5SE1-12 Micro Switch Specifications
  • Schneider AS-BDAU-204 Analog Output Module
  • K93712 Expansion Kit Industrial Module
  • MGE DCHEN 3400116300 Circuit Board
  • Siemens 6SE7036-1EE85-1HA0 Rectifier Board
  • Renesas UPD70F3624GBA1 Microcontroller
  • Omron E5AC-CX4A5M-014 Temperature Controller Parameters
  • GE IS200TBCIH1BCE Contact Input Board
  • Fanuc A05B-2255-C101#EAW Teach Pendant Data
  • Rieter RMC186C RMC RIO-1 PLC Controller
  • Siemens PXC24.2-EF32.A Building Automation Controller
  • Fanuc A16B-1200-0220 PC Memory Board F3
  • Omron CJ2M-CPU33 PLC CPU Module
  • Beckhoff EL1918 Safety Input Terminal EtherCAT
  • Fanuc A16B-1212-0871 CNC PCB Board
  • GE Fanuc IC697BEM713J PLC Module
  • Mitsubishi A2ACPU-R21 PLC CPU Module
  • Programmable Relay 230V AC 16 Inputs 8 Outputs T2UK
  • Schneider F3SP71-4S Safety PLC Module
  • NEED-24DC- T2UK Programmable Relay 24V 16in 8out
  • Siemens 3RT1075-6SP36 SIRIUS Power Contactor 200kW
  • GE 1C31170G02 Printed Circuit Board Module 94V-0
  • BPT 67200020 Multifunction Touch Terminal 50Hz
  • Fanuc A16B-2200-0931 Option Board with Daughter Cards
  • Honeywell FC-SDOL-0424 I/O Module Board
  • Lenze EMF2179IB DeviceNet Communication Module
  • Yaskawa CIMR-JC4A0007BAA J1000 VFD 0.4kW
  • Yokogawa PSBCMNBN Bus Continuation Module ProSafe-PLC
  • Phoenix Contact PLC-BPT-24DC/1/SEN Solid-State Relay
  • Allen-Bradley 193-EC2AB E3 Plus Overload Relay
  • GE DS200TCTGG1AFF Turbine Control Board
  • Westinghouse 1C31170G02 Ovation Module
  • Mitsubishi A2ACPU21 Programmable Controller Review
  • 710-95045-AD PLC I/O Operation Console Cable
  • Allen-Bradley 1785-L11B PLC-5 Processor Specifications
  • BEMAC UST-202-D 1307D V08B2 Circuit Board
  • Pilz 312070 PSSu H PLC1 FS Safety Module
  • Keyence QS-MB1 Safety Network Module Overview
  • GE Fanuc IC693CPU372 CPU Module 90-30 Series
  • Mitsubishi RJ71EIP91 EtherNet/IP Module
  • Schneider LXM62DD27D21000 Lexium 62 Servo Drive
  • Mitsubishi Q13UDEHCPU Universal PLC CPU Module
  • B&R X20CP3585 Programmable Controller X20 CPU
  • Siemens 6FC5203-0AF02-0AA0 Sinumerik Operator Panel
  • IWKA PG02 VKR TEL-Z Self-Sufficient Measuring System
  • Schneider BMXCPS2010 PLC Power Supply Modicon M340
  • Mitsubishi A171SCPU Motion Servo CPU Specifications
  • PLC Board with Finder 44.52 Relay Module 6A 250V
  • Honeywell DOP 09436601 Measurex Module Data
  • Fanuc A20B-8101-0320 CNC Circuit Board
  • KUAX 680I V.24 PLC Module 68142304
  • Allen Bradley 1785-L30B PLC 5/30 Processor
  • Phoenix ILC 191 ETH 2TX 2700976 Ethernet Controller
  • Siemens 6SY7000-0AC80 PLC Power Supply Module
  • Reliance Electric MACS 804.46.20 CWW PLC Drive
  • Omron CP1E-N60DR-D PLC CPU 36 Input 24 Output
  • Mitsubishi Melsec PLC System A2ACPU A63P AY13E AX82