データシート目次MCP3901 Low-Cost Power Monitor Reference Design User’s Guide1Table of Contents3Preface5Introduction5Document Layout5Conventions Used in this Guide6Recommended Reading7The Microchip Web Site7Customer Support7Document Revision History7Chapter 1. Product Overview91.1 Overview91.1.1 Feature Highlights91.2 Analog Input Circuit101.3 Power Circuit101.4 PIC18F25K20 Microcontroller and Liquid Crystal Display (LCD)10Chapter 2. Installation and Operation112.1 Power Monitor Firmware Description112.1.1 Samples Acquisition112.1.2 Signal Processing112.1.3 Power Factor Compensation132.1.4 Line Frequency Compensation142.2 Calibration Procedure18Appendix A. Schematics and Layouts21A.1 Board Schematic – Analog and Power22A.2 Board Schematic – Microcontroller and LCD23A.3 Board Schematic – Universal Serial Bus24A.4 Board – Top Trace and Top Silk25A.5 Board – Bottom Trace and Bottom Silk25Appendix B. Bill of Materials27Worldwide Sales and Service30サイズ: 1020KBページ数: 30Language: Englishマニュアルを開く
データシート目次1.0 Electrical Characteristics3FIGURE 1-1: Serial Output Timing Diagram.7FIGURE 1-2: Serial Input Timing Diagram.7FIGURE 1-3: Data Ready Pulse Timing Diagram.8FIGURE 1-4: Specific Timing Diagrams.8FIGURE 1-5: MCP3901 Clock Detail.82.0 Typical Performance Curves9FIGURE 2-1: Spectral Response.9FIGURE 2-2: Spectral Response.9FIGURE 2-3: Spectral Response.9FIGURE 2-4: Spectral Response.9FIGURE 2-5: Spectral Response.9FIGURE 2-6: Spectral Response.9FIGURE 2-7: Spectral Response.10FIGURE 2-8: Spectral Response.10FIGURE 2-9: Spurious Free Dynamic Range Histogram.10FIGURE 2-10: Spurious Free Dynamic Range vs. Oversampling Ratio.10FIGURE 2-11: Signal-to-Noise and Distortion and Effective Number of Bits vs. Oversampling Ratio.10FIGURE 2-12: Signal-to-Noise and Distortion vs. Gain.10FIGURE 2-13: Signal-to-Noise and Distortion vs. Gain (Dithering On).11FIGURE 2-14: Total Harmonic Distortion vs. Oversampling Ratio.11FIGURE 2-15: Total Harmonic Distortion vs. Input Signal Frequency.11FIGURE 2-16: Total Harmonic Distortion Histogram (Dithering On).11FIGURE 2-17: Total Harmonic Distortion vs. Temperature.11FIGURE 2-18: Signal-to-Noise and Distortion vs. Input Frequency.11FIGURE 2-19: Signal-to-Noise and Distortion Histogram.12FIGURE 2-20: Signal-to-Noise and Distortion vs. Temperature.12FIGURE 2-21: Signal-to-Noise and Distortion vs. Input Signal Amplitude.12FIGURE 2-22: Channel 0 Offset vs. Temperature.12FIGURE 2-23: Channel 1 Offset vs. Temperature.12FIGURE 2-24: Channel-to-Channel Offset Match vs. Temperature.12FIGURE 2-25: Positive Gain Error vs. Temperature.13FIGURE 2-26: Negative Gain Error vs. Temperature13FIGURE 2-27: Internal Voltage Reference vs. Temperature.13FIGURE 2-28: Internal Voltage Reference vs. Supply Voltage.13FIGURE 2-29: Signal-to-Noise and Distortion vs. Master Clock (MCLK), BOOST ON.13FIGURE 2-30: Noise Histogram.13FIGURE 2-31: Integral Nonlinearity (Dithering Off).14FIGURE 2-32: Integral Nonlinearity (Dithering On).14FIGURE 2-33: Operating Current vs. Master Clock (MCLK).143.0 Pin Description15TABLE 3-1: Pin Function Table153.1 RESET153.2 Digital VDD (DVDD)153.3 Analog VDD (AVDD)153.4 ADC Differential Analog inputs (CHn+/CHn-)163.5 Analog Ground (AGND)163.6 Non-Inverting Reference Input, Internal Reference Output (REFIN+/OUT)163.7 Inverting Reference Input (REFIN-)163.8 Digital Ground Connection (DGND)163.9 Modulator Data Output Pin for Channel 1 and Channel 0 (MDAT1/MDAT0)163.10 DR (Data Ready Pin)163.11 Oscillator and Master Clock Input Pins (OSC1/CLKI, OSC2)173.12 CS (Chip Select)173.13 SCK (Serial Data Clock)173.14 SDO (Serial Data Output)173.15 SDI (Serial Data Input)174.0 Terminology And Formulas194.1 MCLK – Master Clock194.2 AMCLK – Analog Master Clock19TABLE 4-1: MCP3901 OVERSAMPLING RATIO SETTINGS194.3 DMCLK – Digital Master Clock194.4 DRCLK – Data Rate Clock19TABLE 4-2: Device data rates in function of mclk, osr AND PRESCALE204.5 Oversampling Ratio (OSR)20TABLE 4-3: MCP3901 OVERSAMPLING RATIO SETTINGS204.6 Offset Error204.7 Gain Error204.8 Integral Nonlinearity Error214.9 Signal-to-Noise Ratio (SNR)214.10 Signal-to-Noise Ratio And Distortion (SINAD)214.11 Total Harmonic Distortion (THD)214.12 Spurious-Free Dynamic Range (SFDR)214.13 MCP3901 Delta-Sigma Architecture224.14 Idle Tones224.15 Dithering224.16 Crosstalk234.17 PSRR234.18 CMRR234.19 ADC Reset Mode234.20 Hard Reset Mode (RESET = 0)244.21 ADC Shutdown Mode244.22 Full Shutdown Mode245.0 Device Overview255.1 Analog Inputs (CHn+/-)255.2 Programmable Gain Amplifiers (PGA)25TABLE 5-1: pga configuration Setting255.3 Delta-Sigma Modulator25FIGURE 5-1: Simplified Delta-Sigma ADC Block Diagram.255.4 Modulator Output Block26TABLE 5-2: Delta-sigma modulator coding26FIGURE 5-2: MDAT Serial Outputs in Function of the Modulator Output Code.265.5 SINC3 Filter27TABLE 5-3: adc RESOLUTION vs. osr27FIGURE 5-3: SINC Filter Response with MCLK = 4 MHz, OSR = 64, PRESCALE = 1.275.6 ADC Output Coding28TABLE 5-4: OSR = 256 output code examples28TABLE 5-5: OSR = 128 output code examples28TABLE 5-6: OSR = 64 output code examples29TABLE 5-7: OSR = 32 output code examples295.7 Voltage Reference295.8 Power-on Reset30FIGURE 5-4: Power-on Reset Operation.305.9 RESET Effect on Delta-Sigma Modulator/SINC Filter305.10 Phase Delay Block30TABLE 5-8: Phase Values With MCLK = 4 MHz, OSR = 256315.11 Crystal Oscillator316.0 Serial Interface Description336.1 Overview336.2 Control Byte33FIGURE 6-1: Control Byte.336.3 Reading from the Device336.4 Writing to the Device336.5 SPI MODE 1,1 – Clock Idle High, Read/Write Examples33FIGURE 6-2: Device Read (SPI Mode 1,1 – Clock Idles High).34FIGURE 6-3: Device Write (SPI Mode 1,1 – Clock Idles High).346.6 SPI MODE 0,0 – Clock Idle Low, Read/Write Examples35FIGURE 6-4: Device Read (SPI Mode 0,0 – Clock Idles Low).35FIGURE 6-5: Device Write (SPI Mode 0,0 – Clock Idles Low).356.7 Continuous Communication, Looping on Address Sets36FIGURE 6-6: Typical Continuous Read Communication.36TABLE 6-1: Register Groups37TABLE 6-2: Register Types376.8 Situations that Reset ADC Data37FIGURE 6-7: Recommended Configuration Sequence at Power-up.376.9 Data Ready Pin (DR)386.10 Data Ready Latches and Data Ready Modes (DRMODE<1:0>)38FIGURE 6-8: Data Ready Behavior.407.0 Internal Registers41TABLE 7-1: Register map41TABLE 7-2: Register Map Grouping for Continuous read modes417.1 ADC Channel Data Output Registers427.2 Modulator Output Register437.3 PHASE Register447.4 Gain Configuration Register457.5 Status and Communication Register467.6 Configuration Registers488.0 Packaging Information518.1 Package Marking Information51Corporate Office62Atlanta62Boston62Chicago62Cleveland62Fax: 216-447-064362Dallas62Detroit62Indianapolis62Toronto62Fax: 852-2401-343162Australia - Sydney62China - Beijing62China - Shanghai62India - Bangalore62Korea - Daegu62Korea - Seoul62Singapore62Taiwan - Taipei62Fax: 43-7242-2244-39362Denmark - Copenhagen62France - Paris62Germany - Munich62Italy - Milan62Spain - Madrid62UK - Wokingham62Worldwide Sales and Service62Trademarks61Worldwide Sales and Service62サイズ: 1.75MBページ数: 62Language: Englishマニュアルを開く
ユーザーズマニュアル目次Preface5Introduction5Document Layout5Conventions Used in this Guide6Recommended Reading7The Microchip Web Site7Customer Support7Document Revision History7Chapter 1. Hardware Description91.1 Overview91.2 PIM Module/MCP3901 Connection and Peripheral Usage Overview111.3 MCP3901 Delta-Sigma Sampling/MCLK Options121.4 Analog Input Structure131.5 Universal Serial Bus (USB)13Chapter 2. Firmware152.1 DSPIC33 Firmware Description152.2 Data Acquisition162.3 UART Communication Protocol18Chapter 3. MCP3901 PC Software Tool213.1 Software Overview213.2 Setting the Configuration of the ADC223.3 Connectivity and Recording Length223.4 Scope Plot Window - Time Domain Analysis223.5 Histogram Window – Noise Analysis223.6 FFT Window – Frequency Domain Analysis23Appendix A. Schematics and Layouts25A.1 Introduction25A.2 Schematic – Analog26A.3 Schematic – LCD and UART27A.4 Schematic – USB and Memory28A.5 Schematic – Microcontroller (MCU)29A.6 Schematic – PIM Module30A.7 Schematic – Power31A.8 Board – Top Trace and Top Silk32A.9 Board – Bottom Trace and Bottom Silk32A.10 Board – Layer #2 VDD33A.11 Board – Layer #3 GND33A.12 Board – Top Silk and Pads34A.13 Board – Bottom Top Silk and Pads34Appendix B. Bill Of Materials (BOM)35Corporate Office38Atlanta38Boston38Chicago38Cleveland38Fax: 216-447-064338Dallas38Detroit38Kokomo38Toronto38Fax: 852-2401-343138Australia - Sydney38China - Beijing38China - Shanghai38India - Bangalore38Korea - Daegu38Korea - Seoul38Singapore38Taiwan - Taipei38Fax: 43-7242-2244-39338Denmark - Copenhagen38France - Paris38Germany - Munich38Italy - Milan38Spain - Madrid38UK - Wokingham38Worldwide Sales and Service38サイズ: 1.14MBページ数: 38Language: Englishマニュアルを開く