• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > 电子设计 > 电源技术 > 电源技术 > MicrochipPIC18F87J72单相电表参考设计

MicrochipPIC18F87J72单相电表参考设计

录入:edatop.com    点击:
Microchip公司的PIC18F87J72是集成了双路24位AFE,LCD驱动器的高性能微控制器,具有nanoWatt技术,每路的模拟特性包括90 dB SINAD, -101 dBc THD (到35次谐波)以及103 dB SFDR,和10ppm INL,差分输入引脚,可编程数据速率到64ksps,高增益PGA到32V/V,基准电压源低漂移(12ppm/度C),主要用在低成本电表,电源测量和监视,手持仪表和医疗监视.本文介绍了PIC18F87J72主要特性,功能框图,单相电表应用电路图以及PIC18F87J72单相电表参考设计主要特性,电路图,材料清单和PCB布局图.

This family combines the traditional advantages of all PIC18 microcontrollers – namely, high computational performance and a rich feature set – with a versatile on-chip LCD driver and a high-performance, high-accuracy analog front end. These features make the PIC18F87J72 family a logical choice for many high-performance power and metering applications where price is a primary consideration.

PIC18F87J72主要特性:

Analog Features:

E Dual-Channel, 24-Bit Analog Front End (AFE):

- 90 dB SINAD, -101 dBc THD (to 35th harmonic),103 dB SFDR for each channel

- 10 ppm INL

- Differential voltage input pins

- Low drift internal voltage reference (12 ppm/C)

- Programmable data rate to 64 ksps

- High-gain PGA on each channel (up to 32 V/V)

- Phase delay compensation between channels (1 gs resolution)

12-Bit, 12-Channel SAR A/D Converter:

- Auto-acquisition

- Conversion available during Sleep

E Two Analog Comparators

E Programmable Reference Voltage for Comparators

E Charge Time Measurement Unit (CTMU):

- Capacitance measurement

- Time measurement with 1 ns typical resolution

- Temperature sensing

LCD Driver and Keypad Interface

Features:

E Direct LCD Panel Drive Capability:

- Can drive LCD panel while in Sleep mode

- Wake-up from interrupt

E Up to 33 Segments and 132 Pixels: Software Selectable

E Programmable LCD Timing module:

- Multiple LCD timing sources available

- Up to four commons: static, 1/2, 1/3 or

1/4 multiplex

- Static, 1/2 or 1/3 bias configuration

E On-Chip LCD Boost Voltage Regulator for

Contrast Control

E CTMU for Capacitive Touch Sensing

E ADC for Resistive Touch Sensing

Flexible Oscillator Structure:

E External Crystal and Clock modes, with operation

up to 48 MHz

E 4x Phase Lock Loop (PLL)

E Internal Oscillator Block with PLL:

- Eight user-selectable frequencies from 31.25 kHz to 8 MHz

E Secondary Oscillator using Timer1 at 32 kHz

E Fail-Safe Clock Monitor (FSCM):

- Allows for safe shutdown if peripheral clock fails

Low-Power Features:

E Power-Managed modes:

- Run: CPU on, peripherals on

- Idle: CPU off, peripherals on

- Sleep: CPU off, peripherals off

E Two-Speed Oscillator Start-up

Peripheral Highlights:

E High-Current Sink/Source 25 mA/25 mA (PORTB and PORTC)

E Up to Four External Interrupts

E Four 8-Bit/16-Bit Timer/Counter modules

E Two Capture/Compare/PWM (CCP) modules

E Master Synchronous Serial Port (MSSP) module with

Two Modes of Operation:

- 3-wire/4-wire SPI (supports all four SPI modes)

- I2C. Master and Slave mode

E One Addressable USART module

E One Enhanced Addressable USART module:

- LIN/J2602 support

- Auto-wake-up on Start bit and Break character

- Auto-Baud Detect (ABD)

E Hardware Real-Time Clock and Calendar (RTCC) with

Clock, Calendar and Alarm Functions

Special Microcontroller Features:

E 10,000 Erase/Write Cycle Flash Program Memory, Typical

E Flash Retention 20 Years, Minimum

E Self-Programmable under Software Control

E Word Write Capability for Flash Program Memory for Data EEPROM Emulators

E Priority Levels for Interrupts

E 8 x 8 Single-Cycle Hardware Multiplier

E Extended Watchdog Timer (WDT):

- Programmable period from 4 ms to 131s

E Selectable Open-Drain Configuration for Serial Communication and CCP pins for Driving Outputs up to 5V

E In-Circuit Serial Programming. (ICSP.) via Two Pins

E In-Circuit Debug via Two Pins

E Operating Voltage Range: 4.5V to 5.5V (兇兠僴ADC), 2.0V to 3.6V (digital and SAR ADC)

E 5.5V Tolerant Input (digital pins only)

E On-Chip 2.5V Regulator

PIC18F87J72目标应用:

E Energy Metering

E Power Measurement and Monitoring

E Portable Instrumentation

E Medical Monitoring

图1.PIC18F87J72功能框图


图2.PIC18F87J72单相电表应用电路图

PIC18F87J72单相电表参考设计

The PIC18F87J72 Single-Phase Energy Meter Reference Design is a fully functional single-phase meter based on the highly integrated PIC18F87J72 single-chip energy meter IC. This low-cost design does not use any transformers and requires few external components. The PIC18F87J72 directly drives the LCD, and includes both an isolated USB connection and a non-isolated RS-232 interface for meter calibration and access to the device power calculations. The system calculates active energy, active power, reactive energy, reactive power, RMS current, RMS voltage and other typical power quantities.

The Microchip Energy Meter 1-Phase Software is used to calibrate and monitor the system, and can be used to create custom calibration setups. For some accuracy requirements, only a single-point calibration may be needed. The energy meter software offers an automated step by step calibration process that can be used to quickly calibrate energy meters.


图3.PIC18F87J72单相电表外形图

PIC18F87J72单相电表参考设计主要特性:

Working single phase energy meter

Energy calculation firmware: Active/Reactive Energy; Forward/Reverse Energy; Active/Reactive/Apparent Power; RMS Current Voltage; Editable by meter designer

GUI-assisted software calibration

LCD display for energy

Low cost shunt based design

Better than IEC Class 0.5 performance

图4.PIC18F87J72单相电表参考设计电路图
PIC18F87J72单相电表参考设计材料清单(BOM):




图5.PIC18F87J72单相电表PCB布局图(顶层)(1)

图5.PIC18F87J72单相电表PCB布局图(顶层)(2)


图7.PIC18F87J72单相电表PCB布局图(底层)(1)


图8.PIC18F87J72单相电表PCB布局图(底层)(2)
详情请见:
http://ww1.microchip.com/downloads/en/DeviceDoc/39979A.pdf

http://ww1.microchip.com/downloads/en/DeviceDoc/51931a.pdf
以及
http://ww1.microchip.com/downloads/en/DeviceDoc/103-00280-R2.pdf

射频工程师养成培训教程套装,助您快速成为一名优秀射频工程师...

天线设计工程师培训课程套装,资深专家授课,让天线设计不再难...

上一篇:一种单端10-bit SAR ADC IP核的设计
下一篇:新型AC LED变换器拓扑电路设计

射频和天线工程师培训课程详情>>

  网站地图