Part Number Hot Search : 
374CDR M62727ML 1545C 2SB558 SF203 LT173 TLP3520 1490H9
Product Description
Full Text Search
 

To Download MCP3913A1T-EMV Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2013 microchip technology inc. ds20005227a-page 1 mcp3913 features: ? six synchronous sampling 24-bit resolution delta-sigma a/d converters ? 94.5 db sinad, -107 dbc total harmonic distortion (thd) (up to 35 th harmonic), 112 dbfs sfdr for each channel ? enables 0.1% typical active power measurement error over a 10,000:1 dynamic range ? advanced security features: - 16-bit cyclic redundancy check (crc) checksum on all communications for secure data transfers - 16-bit crc checksum and interrupt alert for register map configuration - register map lock with 8-bit secure key ? 2.7v-3.6v av dd , dv dd ? programmable data rate up to 125 ksps: - 4 mhz maximum sampling frequency - 16 mhz maximum master clock ? oversampling ratio up to 4096 ? ultra-low power shutdown mode with < 10 a ? -122 db crosstalk between channels ? low drift 1.2v internal voltage reference: 9 ppm/c ? differential voltage reference input pins ? high gain pga on each channel (up to 32 v/v) ? phase delay compensation with 1 s time resolution ? separate data ready pin for easy synchronization ? individual 24-bit digital offset and gain error correction for each channel ? high-speed 20 mhz spi interface with mode 0,0 and 1,1 compatibility ? continuous read/write modes for minimum communication time with dedicated 16/32-bit modes ? available in a 40-lead uqfn and 28-lead ssop packages ? extended temperature range: -40c to +125c description: the mcp3913 is a 3v six-channel analog front end (afe), containing six synchronous sampling delta- sigma, analog-to-digital converters (adc), six pgas, phase delay compensation block, low-drift internal voltage reference, digital offset and gain error calibration registers, and high-speed 20 mhz spi-compatible serial interface. the mcp3913 adcs are fully configurable, with features such as: 16/24-bit resolution, oversampling ratio (osr) from 32 to 4096, gain from 1x to 32x, independent shutdown and reset, dithering and auto- zeroing. the communication is largely simplified with 8- bit commands, including various continuous read/write modes and 16/24/32-bit data formats that can be accessed by the direct memory access (dma) of an 8/16- or 32-bit mcu, and with the separate data ready pin that can directly be connected to an interrupt request (irq) input of an mcu. the mcp3913 includes advanced security features to secure the communications and the configuration settings, such as a crc-16 checksum on both serial data outputs and static register map configuration. it also includes a register-map lock through an 8-bit secure key to stop unwanted write commands from processing. the mcp3913 is capable of interfacing with a variety of voltage and current sensors, including shunts, current transformers, rogowski coils and hall-effect sensors. applications: ? polyphase energy meters ? energy metering and power measurement ? automotive ? portable instrumentation ? medical and power monitoring ? audio/voice recognition 3v six-channel analog front end
mcp3913 ds20005227a-page 2 ? 2013 microchip technology inc. package type functional block diagram 2 35 3 4 5 6 13 14 15 16 17 27 26 25 24 23 38 37 36 34 ch0+ ch0- ch1+ ch2+ ch1- ch4- ch5+ nc ch5- nc d gnd dv dd sdi sdo reset av dd ep 41 7 ch2- 8 ch3- 18 nc 19 nc 28 29 33 sck 32 cs osc2 dr 9 ch3+ 22 31 osc1/clki 20 nc a gnd 1 10 11 12 ch4+ 40 39 dv dd av dd d gnd 30 21 a gnd refin- d gnd nc nc nc nc mcp3913 5x5 uqfn* * includes exposed thermal pad (ep); see ta b l e 3 - 1 . refin+/ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 av dd ch0+ ch0- ch3+ ch4+ ch4- ch5- ch5+ refin+/out ch1- ch1+ ch2+ ch2- ch3- dv dd reset sdi d gnd nc dr d gnd a gnd refin- sdo sck cs osc2 osc1/clki mcp3913 ssop out amclk dmclk/drclk refin+/out refin- por av dd monitoring vref+ vref- vrefext voltage reference vref + - xtal oscillator mclk osc1 osc2 digital spi interface clock generation dmclk osr<2:0> pre<1:0> analog digital sdo sdi sck dr reset cs a gnd d gnd av dd dv dd ch0+ ch0- - + pga osr/2- phase1 <11:0> mod<3:0>     modulator + offcal_ch0 <23:0> gaincal_ch0 <23:0> x data_ch0<23:0>  sinc 3 + sinc 1 phase shifter offset cal. gain cal. ch1+ ch1- - + pga osr/2 mod<7:4>     modulator + offcal_ch1 <23:0> gaincal_ch1 <23:0> x data_ch1<23:0>  sinc 3 + sinc 1 phase shifter offset cal. gain cal. ch2+ ch2- - + pga osr/2- phase1 <23:12> mod<11:8>     modulator + offcal_ch2 <23:0> gaincal_ch2 <23:0> x data_ch2<23:0>  sinc 3 + sinc 1 phase shifter offset cal. gain cal. ch3+ ch3- - + pga osr/2 mod<15:12>     modulator + offcal_ch3 <23:0> gaincal_ch3 <23:0> x data_ch3<23:0>  sinc 3 + sinc 1 phase shifter offset cal. gain cal. ch4+ ch4- - + pga osr/2- phase0<11:0> mod<19:16>     modulator + offcal_ch4 <23:0> gaincal_ch4 <23:0> x data_ch4<23:0>  sinc 3 + sinc 1 phase shifter offset cal. gain cal. ch5+ ch5- - + pga osr/2 mod<23:20>     modulator + offcal_ch5 <23:0> gaincal_ch5 <23:0> x data_ch5<23:0>  sinc 3 + sinc 1 phase shifter offset cal. gain cal. por dv dd monitoring
? 2013 microchip technology inc. ds20005227a-page 3 mcp3913 1.0 electrical characteristics absolute maximum ratings ? v dd ..................................................................... -0.3v to 4.0v digital inputs and outputs w.r.t. a gnd ................ --0.3v to 4.0v analog input w.r.t. a gnd ..................................... ....-2v to +2v v ref input w.r.t. a gnd ............................... -0.6v to v dd +0.6v storage temperature .....................................-65c to +150c ambient temp. with power applied ................-65c to +125c soldering temperature of leads (10 seconds) ............. +300c esd on the analog inputs (hbm,mm) ................. 1.5 kv, 300v esd on all other pins (hbm,mm) ...........................2 kv, 300v ? notice : stresses above those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device at those or any other condi- tions, above those indicated in the operational listings of this specification, is not implied. exposure to maxi- mum rating conditions for extended periods may affect device reliability. 1.1 electrical specifications table 1-1: analog specifications electrical specifications: unless otherwise indicated, all parameters apply at av dd = dv dd = 3v, mclk = 4 mhz; pre<1:0> = 00 ; osr = 256; gain = 1 ; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c;v in = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions adc performance resolution (no missing codes) 24 ? ? bits osr = 256 or greater sampling frequency f s (dmclk) ? 1 4 mhz for maximum condition, boost<1:0> = 11 output data rate f d (drclk) ? 4 125 ksps for maximum condition, boost<1:0> = 11 , osr = 32 analog input absolute voltage on chn+/- pins, n between 0 and 5 chn+/- -1 ? +1 v all analog input channels, measured to a gnd analog input leakage current i in ? +/-1 ? na reset<5:0> = 111111 , mclk running continuously differential input voltage range (ch n+ -ch n- ) -600/gain ? +600/gain mv v ref =1.2v, proportional to v ref offset error v os -1 0.2 1 mv note 5 offset error drift ? 0.5 ? v/c gain error ge -4 ? +4 % note 5 gain error drift ? 1 ? ppm/c note 1: dynamic performance specified at -0.5 db below the maximum differential input value, v in =1.2v pp = 424 mv rms @ 50/60 hz, v ref = 1.2v. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 2: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 000000 , reset<5:0> = 000000 , vrefext = 0 , clkext = 0 . 3: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 111111 , vrefext = 1 , clkext = 1 . 4: measured on one channel versus all others channels. the av erage of crosstalk perform ance over all channels (see figure 2-32 for individual channel performance). 5: applies to all gains. offset and gain errors depend on pga gain setting, see typical performance curves for typical performance. 6: outside of this range, adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part with no damage. 7: for proper operation and for optimizing adc accuracy, amclk should be limited to the maximum frequency defined in table 5-2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amclk = mc lk/prescale in the defined range in table 5-2 .
mcp3913 ds20005227a-page 4 ? 2013 microchip technology inc. integral non-linearity inl ? 5 ? ppm measurement error me ? 0.1 ? % measured with a 10,000:1 dynamic range (from 600 mv peak to 60 v peak ), av dd =dv dd =3v, measurement points averaging time: 20 seconds, measured on each channel pair (ch0/1, ch2/3, ch4/5) differential input impedance z in 232 ? ? k ? g = 1, proportional to 1/amclk 142 ? ? k ? g = 2, proportional to 1/amclk 72 ? ? k ? g = 4, proportional to 1/amclk 38 ? ? k ? g = 8, proportional to 1/amclk 36 ? ? k ? g = 16, proportional to 1/amclk 33 ? ? k ? g = 32, proportional to 1/amclk signal-to-noise and distortion ratio ( note 1 ) sinad 92 94.5 ? db total harmonic distortion ( note 1 ) thd ? -107 -103 dbc includes the first 35 harmonics signal-to-noise ratio ( note 1 ) snr 92 95 ? db spurious free dynamic range ( note 1 ) sfdr ? 112 ? dbfs crosstalk (50, 60 hz) ctalk ? -122 ? db note 4 ac power supply rejection ac psrr ? -73 ? db av dd =dv dd = 3v + 0.6v pp 50/60 hz, 100/120 hz dc power supply rejection dc psrr ? -73 ? db av dd = dv dd = 2.7v to 3.6v dc common mode rejection dc cmrr ? -100 ? db v cm from -1v to +1v table 1-1: analog specifications (continued) electrical specifications: unless otherwise indicated, all parameters apply at av dd = dv dd = 3v, mclk = 4 mhz; pre<1:0> = 00 ; osr = 256; gain = 1 ; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c;v in = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions note 1: dynamic performance specified at -0.5 db below the maximum differential input value, v in =1.2v pp = 424 mv rms @ 50/60 hz, v ref = 1.2v. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 2: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 000000 , reset<5:0> = 000000 , vrefext = 0 , clkext = 0 . 3: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 111111 , vrefext = 1 , clkext = 1 . 4: measured on one channel versus all others channels. the average of crosstalk perfo rmance over all channels (see figure 2-32 for individual channel performance). 5: applies to all gains. offset and gain errors depend on pga gain setting, see typical performance curves for typical performance. 6: outside of this range, adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part with no damage. 7: for proper operation and for optimizing adc accuracy, amclk should be limited to the maximum frequency defined in table 5-2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amclk = mc lk/prescale in the defined range in table 5-2 .
? 2013 microchip technology inc. ds20005227a-page 5 mcp3913 internal voltage reference to l e r a n c e v ref 1.176 1.2 1.224 v vrefext = 0 , t a = +25c only temperature coefficient tcv ref ? 9 ? ppm/c t a = -40c to +125c, vrefext = 0 , vrefcal<7:0> = 0x50 output impedance zoutv ref ?0.6 ? k ? vrefext = 0 internal voltage reference operating current ai dd v ref ? 54 ? a vrefext = 0 , shutdown<5:0> = 111111 voltage reference input input capacitance ? ? 10 pf differential input voltage range (v ref+ ? v ref- ) v ref 1.1 ? 1.3 v vrefext = 1 absolute voltage on refin+ pin v ref+ v ref- +1.1 ?v ref- +1.3 v vrefext = 1 absolute voltage refin- pin v ref- -0.1 ? +0.1 v refin- should be connected to a gnd when vrefext = 0 master clock input master clock input frequency range f mclk ? ? 20 mhz clkext = 1 , ( note 7 ) crystal oscillator operating frequency range f xtal 1 ? 20 mhz clkext = 0 , ( note 7 ) analog master clock amclk ? ? 16 mhz ( note 7 ) crystal oscillator operating current diddxtal ? 80 ? a clkext = 0 power supply operating voltage, analog av dd 2.7 ? 3.6 v operating voltage, digital dv dd 2.7 ? 3.6 v operating current, analog ( note 2 ) i dd,a ? 4.5 6 ma boost<1:0> = 00 ? 5.4 8 ma boost<1:0> = 01 ? 7.4 10 ma boost<1:0> = 10 ? 12.9 17.5 ma boost<1:0> = 11 table 1-1: analog specifications (continued) electrical specifications: unless otherwise indicated, all parameters apply at av dd = dv dd = 3v, mclk = 4 mhz; pre<1:0> = 00 ; osr = 256; gain = 1 ; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c;v in = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions note 1: dynamic performance specified at -0.5 db below the maximum differential input value, v in =1.2v pp = 424 mv rms @ 50/60 hz, v ref = 1.2v. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 2: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 000000 , reset<5:0> = 000000 , vrefext = 0 , clkext = 0 . 3: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 111111 , vrefext = 1 , clkext = 1 . 4: measured on one channel versus all others channels. the av erage of crosstalk perform ance over all channels (see figure 2-32 for individual channel performance). 5: applies to all gains. offset and gain errors depend on pga gain setting, see typical performance curves for typical performance. 6: outside of this range, adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part with no damage. 7: for proper operation and for optimizing adc accuracy, amclk should be limited to the maximum frequency defined in table 5-2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amclk = mc lk/prescale in the defined range in table 5-2 .
mcp3913 ds20005227a-page 6 ? 2013 microchip technology inc. 1.2 serial interface characteristics operating current, digital i dd,d ?0.5 1 mamclk = 4 mhz, proportional to mclk ( note 2 ) ? 1.5 ? ma mclk = 16 mhz, proportional to mclk ( note 2 ) shutdown current, analog i dds,a ?0.01 2 aav dd pin only ( note 3 ) shutdown current, digital i dds,d ?0.01 7 adv dd pin only ( note 3 ) pull-down current on osc2 pin (external clock mode only) i osc2 ? 35 ? a clkext = 1 table 1-2: serial dc characteristics electrical specifications: unless otherwise indicated, all parameters apply at dv dd = 2.7 to 3.6 v, t a = -40c to +125c, c load = 30 pf, applies to all digital i/o. characteristic sym. min. typ. max. units conditions high-level input voltage v ih 0.7 dv dd ? ? v schmitt-triggered low-level input voltage v il ??0.3 dv dd v schmitt-triggered input leakage current i li ??1a cs = dv dd , v in = d gnd to dv dd output leakage current i lo ??1a cs = dv dd , v out = d gnd or dv dd hysteresis of schmitt-trigger inputs v hys ?500? mvdv dd = 3.3v only, note 2 low-level output voltage v ol ??0.2dv dd vi ol = +1.7 ma high-level output voltage v oh 0.8 dv dd ?? vi oh = -1.7 ma internal capacitance (all inputs and outputs) c int ??7 pft a = +25c, sck = 1.0 mhz, dv dd =3.3v ( note 1 ) note 1: this parameter is periodically sampled and not 100% tested. 2: this parameter is established by characterization and not production tested. table 1-1: analog specifications (continued) electrical specifications: unless otherwise indicated, all parameters apply at av dd = dv dd = 3v, mclk = 4 mhz; pre<1:0> = 00 ; osr = 256; gain = 1 ; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c;v in = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions note 1: dynamic performance specified at -0.5 db below the maximum differential input value, v in =1.2v pp = 424 mv rms @ 50/60 hz, v ref = 1.2v. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 2: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 000000 , reset<5:0> = 000000 , vrefext = 0 , clkext = 0 . 3: for these operating currents, the following configuration bit settings apply: shutdown<5:0> = 111111 , vrefext = 1 , clkext = 1 . 4: measured on one channel versus all others channels. the average of crosstalk perfo rmance over all channels (see figure 2-32 for individual channel performance). 5: applies to all gains. offset and gain errors depend on pga gain setting, see typical performance curves for typical performance. 6: outside of this range, adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part with no damage. 7: for proper operation and for optimizing adc accuracy, amclk should be limited to the maximum frequency defined in table 5-2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amclk = mc lk/prescale in the defined range in table 5-2 .
? 2013 microchip technology inc. ds20005227a-page 7 mcp3913 table 1-3: serial ac characteristics table electrical specifications: unless otherwise indicated, all parameters apply at dv dd = 2.7 to 3.6 v, t a = -40c to +125c, gain = 1, c load = 30 pf characteristic sym. min. typ. max. units conditions serial clock frequency f sck ?? 20mhz cs setup time t css 25 ? ? ns cs hold time t csh 50 ? ? ns cs disable time t csd 50 ? ? ns data setup time t su 5? ?ns data hold time t hd 10 ? ? ns serial clock high time t hi 20 ? ? ns serial clock low time t lo 20 ? ? ns serial clock delay time t cld 50 ? ? ns serial clock enable time t cle 50 ? ? ns output valid from sck low t do ? ? 25 ns output hold time t ho 0? ?ns note 1 output disable time t dis ? ? 25 ns note 1 reset pulse width (reset ) t mclr 100 ? ? ns data transfer time to dr (data ready) t dodr ? ? 25 ns note 2 modulator mode entry to modulator data present t modsu ?? 100ns data ready pulse low time t drp ? 1/(2 x dmclk) ? s note 1: this parameter is periodically sampled and not 100% tested. 2: this parameter is established by characterization and not production tested. table 1-4: temperature specifications table electrical specifications: unless otherwise indicated, all parameters apply at av dd = 2.7 to 3.6v, dv dd = 2.7 to 3.6v. parameters sym. min. typ. max. units. conditions temperature ranges operating temperature range t a -40 ? +125 c note 1 storage temperature range t a -65 ? +150 c thermal package resistances thermal resistance, 28l ssop ? ja ?80 ? c/w thermal resistance, 40l 5x5 uqfn ? ja ?41 ? c/w note 1: the internal junction temperature (t j ) must not exceed the absolute maximum specification of +150c.
mcp3913 ds20005227a-page 8 ? 2013 microchip technology inc. figure 1-1: serial output timing diagram. figure 1-2: serial input timing diagram. figure 1-3: data ready pulse / sampling timing diagram. h figure 1-4: timing diagrams, continued. t csh t dis t hi t lo f sck cs sck sdo msb out lsb out sdi mode 1,1 mode 0,0 t ho t do don?t care cs sck sdi lsb in msb in mode 1,1 mode 0,0 t css t su t hd t csd t csh t cld t cle sdo hi-z t hi t lo f sck dr sck t drp sdo 1/f d t dodr cs v ih waveform for t dis hi-z 90% 10% t dis sdo sck sdo t do timing waveform for t do
? 2013 microchip technology inc. ds20005227a-page 9 mcp3913 2.0 typical performance curves note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-1: spectral response. figure 2-2: spectral response. figure 2-3: spectral response. figure 2-4: spectral response. figure 2-5: measurement error with 1-point calibration. figure 2-6: measurement error with 2-point calibration. note: the graphs and tables provided following this note are a statistical summary based on a limited number of samples and are provided for informational purposes only. the performance characteristics listed herein are not tested or guaranteed. in some graphs or tables, the data presented may be outside the specified operating range (e.g., outside specified power supply range) and therefore outside the warranted range. -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 amplitude (db) frequency (hz) v in = -0.5 dbfs @ 60 hz f d = 3.9 ksps osr = 256 ditering = off 16 k vdpsohv fft -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 amplitude (db) frequency (hz) v in =-60dbfs@60hz f d = 3.9 ksps osr = 256 ditering = off 16 k vdpsohv fft -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 amplitude (db) frequency (hz) v in = -0.5 dbfs @ 60 hz f d = 3.9 ksps osr = 256 ditering = maximum 16 ks dpsohv fft -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 amplitude (db) frequency (hz) v in =-60dbfs@60hz f d = 3.9 ksps osr = 256 ditering = maximum 16 k vdpsohv fft -1.0% -0.5% 0.0% 0.5% 1.0% 0.01 0.1 1 10 100 1000 measurement error (%) current channel input amplitude (mv peak ) % error channel 0,1 % error channel 2,3 % error channel 4,5 -1.0% -0.5% 0.0% 0.5% 1.0% 0.01 0.1 1 10 100 1000 measurement error (%) current channel input amplitude (mv peak ) % error channel 0,1 % error channel 2,3 % error channel 4,5
mcp3913 ds20005227a-page 10 ? 2013 microchip technology inc. note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-7: thd repeatability histogram. figure 2-8: spurious free dynamic range repeatability histogram. figure 2-9: sinad repeatability histogram. figure 2-10: output noise histogram. figure 2-11: thd vs.osr. figure 2-12: sinad vs. osr. -108.6 -108.5 -108.4 -108.3 -108.2 -108.1 -108 -107.9 -107.8 -107.7 -107.6 -107.5 -107.4 -107.3 -107.2 -107.1 frequency of occurrence total harmonic distortion (-dbc) frequency of occurrence spurious free dynamic range (dbfs) 94.4 94.45 94.5 94.55 94.6 94.65 94.7 frequency occurrence signtal-to-noise ratio (db) frequency of occurrence output code (lsb) standard deviation = 80.74 lsb noise = 9.62 v 16 ksamples fft -130 -125 -120 -115 -110 -105 -100 -95 -90 32 64 128 256 512 1024 2048 4096 total harmonic distortion (db) oversampling ratio (osr) dithering = maximum dithering = medium dithering = minimum dithering = off 60 65 70 75 80 85 90 95 100 105 110 32 64 128 256 512 1024 2048 4096 signal-to-noise and distortion ratio (db) oversampling ratio (osr) dithering = maximum dithering = medium dithering = minimum dithering = off
? 2013 microchip technology inc. ds20005227a-page 11 mcp3913 note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. l figure 2-13: snr vs.osr. figure 2-14: sfdr vs. osr. figure 2-15: thd vs. mclk. figure 2-16: sinad vs. mclk. figure 2-17: snr vs. mclk. figure 2-18: sfdr vs. mclk. 0 20 40 60 80 100 120 32 64 128 256 512 1024 2048 4096 signal-to-noise ratio (db) oversampling ratio (osr) dithering = maximum dithering = medium dithering = minimum dithering = off 80 85 90 95 100 105 110 115 120 32 64 128 256 512 1024 2048 4096 spurious free dynamic range (dbfs) oversampling ratio (osr) dithering = maximum dithering = medium dithering = minimum dithering = off -110 -105 -100 -95 -90 -85 -80 -75 -70 -65 -60 2468101214161820 total harmonic distortion (db) mclk frequency (mhz) boost = 00 boost = 01 boost = 10 boost = 11 60 65 70 75 80 85 90 95 100 2468101214161820 signal-to-noise and distortion (db) mclk frequency (mhz) boost = 00 boost = 11 boost = 01 boost = 10 60 65 70 75 80 85 90 95 100 2468101214161820 signal-to-noise ratio (db) mclk frequency (mhz) boost = 00 boost = 11 boost = 01 boost = 10 60 70 80 90 100 110 120 2468101214161820 spurious free dynamic range (dbfs) mclk frequency (mhz) boost = 00 boost = 11 boost = 01 boost = 10
mcp3913 ds20005227a-page 12 ? 2013 microchip technology inc. note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-19: thd vs. gain. figure 2-20: sinad vs. gain. figure 2-21: snr vs. gain. figure 2-22: sfdr vs. gain. figure 2-23: thd vs. input signal amplitude. figure 2-24: sinad vs. input signal amplitude. -140 -120 -100 -80 -60 -40 -20 0 12481632 total harmonic distorsion (db) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 0 20 40 60 80 100 120 12481632 signal-to-noise and distortion ratio (db) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 0 20 40 60 80 100 120 12481632 signal-to-noise ratio (db) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 0 20 40 60 80 100 120 140 12481632 spurious free dynamic range (dbfs) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 -120 -100 -80 -60 -40 -20 0.001 0.01 0.1 1 10 100 1000 total harmonic distortion (db) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x -20 0 20 40 60 80 100 0.001 0.01 0.1 1 10 100 1000 signal-to-noise and distortion ratio (db) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x
? 2013 microchip technology inc. ds20005227a-page 13 mcp3913 note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-25: snr vs. input signal amplitude. figure 2-26: sfdr vs. input signal amplitude. figure 2-27: sinad vs. input frequency. figure 2-28: thd vs. temperature. figure 2-29: sinad vs. temperature. figure 2-30: snr vs. temperature. -20 0 20 40 60 80 100 0.001 0.01 0.1 1 10 100 1000 signal-to-noise ratio (db) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 20 40 60 80 100 120 140 0.001 0.01 0.1 1 10 100 1000 spurious free dyanmic range (dbfs) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 20 40 60 80 100 120 10 100 1000 10000 100000 signal-to-noise and distortion ratio (db) signal frequency (hz) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 -120 -100 -80 -60 -40 -20 0 -50 -25 0 25 50 75 100 125 total harmonic distortion (db) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 10 20 30 40 50 60 70 80 90 100 -50 -25 0 25 50 75 100 125 signal-to-noise and distortion reatio (db) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 10 20 30 40 50 60 70 80 90 100 -50 -25 0 25 50 75 100 125 signal-to-noise ratio (db) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x
mcp3913 ds20005227a-page 14 ? 2013 microchip technology inc. note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-31: sfdr vs. temperature. figure 2-32: crosstalk vs. measured channel. figure 2-33: offset vs. temperature vs. gain. figure 2-34: channel offset matching vs. temperature. figure 2-35: gain error vs. temperature vs. gain. figure 2-36: internal voltage reference vs. temperature. 0 20 40 60 80 100 120 -50 -25 0 25 50 75 100 125 spurious free dyanmic range (dbfs) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x -140 -120 -100 -80 -60 -40 -20 0 012345 crosstalk (db) measured channel* 28ld ssop 40ld uqfn * all other channels at maximum amplitude v in =600mv pk @60hz -1000 -800 -600 -400 -200 0 200 400 600 800 1000 -40 -20 0 20 40 60 80 100 120 offset (v) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x -1000 -800 -600 -400 -200 0 200 400 600 800 1000 -40 -20 0 20 40 60 80 100 120 channel offset (v) temperature (c) channel 0 channel 1 channel 2 channel 3 channel 4 channel 5 -5 -3 -1 1 3 5 7 9 -40 -20 0 20 40 60 80 100 120 gain error (%) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 1.197 1.198 1.199 1.2 -40 -20 0 20 40 60 80 100 120 140 internal voltage reference (v) temperature (c)
? 2013 microchip technology inc. ds20005227a-page 15 mcp3913 note: unless otherwise indicated, av dd = 3v, dv dd = 3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-37: internal voltage reference vs. supply voltage. figure 2-38: integral non-linearity (dithering maximum). figure 2-39: integral non-linearity (dithering off). figure 2-40: operating current vs. mclk frequency vs. boost, v dd = 3.3v. figure 2-41: operating current vs. mclk frequency vs. boost, v dd = 2.7v. 1.1961 1.1962 1.1963 1.1964 1.1965 1.1966 1.1967 1.1968 1.1969 2.5 2.6 2.7 2.8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 internal voltage reference (v) av dd (v) -10 -8 -6 -4 -2 0 2 4 6 8 10 -0.6 -0.4 -0.2 0.0 0.2 0.4 0.6 integral non linearity error (ppm) input voltage (v) -10 -8 -6 -4 -2 0 2 4 6 8 10 -0.6 -0.4 -0.2 0.0 0.2 0.4 0.6 integral non linearity error (ppm) input voltage (v) 0 2 4 6 8 10 12 14 16 18 20 22 24 2 4 6 8 10 12 14 16 18 20 i dd (ma) mclk frequency (mhz) ai dd boost = 0.5 ai dd boost = 0.66 ai dd boost = 1 ai dd boost = 2 di dd 0 2 4 6 8 10 12 14 16 18 20 22 24 2 4 6 8 10 12 14 16 18 20 i dd (ma) mclk (mhz) ai dd boost = 0.5 ai dd boost = 0.66 ai dd boost = 1 ai dd boost = 2 di dd
mcp3913 ds20005227a-page 16 ? 2013 microchip technology inc. notes:
? 2013 microchip technology inc. ds20005227a-page 17 mcp3913 3.0 pin description the description of the pins are listed in table 3-1 . table 3-1: six channel mcp3913 pin function table mcp3913 ssop mcp3913 uqfn symbol function 1 18, 35 av dd analog power supply pin 2 37 ch0+ non-inverting analog input pin for channel 0 3 38 ch0- inverting analog input pin for channel 0 4 39 ch1- inverting analog input pin for channel 1 5 40 ch1+ non-inverting analog input pin for channel 1 6 1 ch2+ non-inverting analog input pin for channel 2 7 2 ch2- inverting analog input pin for channel 2 8 3 ch3- inverting analog input pin for channel 3 9 4 ch3+ non-inverting analog input pin for channel 3 10 7 ch4+ non-inverting analog input pin for channel 4 11 8 ch4- inverting analog input pin for channel 4 12 9 ch5- inverting analog input pin for channel 5 13 10 ch5+ non-inverting analog input pin for channel 5 14 15 refin+/out non-inverting voltage reference input and internal reference output pin 15 16 refin- inverting voltage reference input pin 16 17, 36 a gnd analog ground pin, return path for internal analog circuitry 17, 20 21, 24, 32 d gnd digital ground pin, return path for internal digital circuitry 18 22 dr data ready signal output pin 19 5, 6, 11, 12, 13, 14, 19, 23, 34 nc no connect (for better emi results connect to a gnd ) 21 25 osc1/clki oscillator crystal connection pin or external clock input pin 22 26 osc2 oscillator crystal connection pin 23 27 cs serial interface chip select input pin 24 28 sck serial interface clock input pin for spi 25 29 sdo serial interface data output pin 26 30 sdi serial interface data input pin 27 31 reset master reset logic input pin 28 20, 33 dv dd digital power supply pin ? 41 ep exposed thermal pad. must be connected to a gnd or floating.
mcp3913 ds20005227a-page 18 ? 2013 microchip technology inc. 3.1 analog power supply (av dd ) av dd is the power supply voltage for the analog circuitry within the mcp3913. it is distributed on several pins (pins 18 and 35 in the uqfn package, one pin only in the ssop-28 package). for optimal performance, connect these pins together using a star connection, and connect the appropriate bypass capacitors (typically a 10 f in parallel with a 0.1 f ceramic). av dd should be maintained between 2.7v and 3.6v for specified operation. to ensure proper functionality of the device, at least one of these pins must be properly connected. to ensure optimal performance of the device, all the pins must be properly connected. if any of these pins are left floating, the accuracy and noise specifications are not ensured. 3.2 adc differential analog inputs (chn+/chn-) the chn+/- pins (n comprised between 0 and 5) are the six fully-differential analog voltage inputs for the delta-sigma adcs. the linear and specified region of the channels are dependent on the pga gain. this region corresponds to a differential voltage range of 600 mv/gain with v ref = 1.2v. the maximum absolute voltage, with respect to a gnd , for each chn+/- input pin is 1v with no distortion, and 2v with no breaking after continuous voltage. this maximum absolute voltage is not proportional to the v ref voltage. 3.3 non-inverting reference input, internal reference output (refin+/out) this pin is the non-inverting side of the differential voltage reference input for all adcs or the internal voltage reference output. when vrefext = 1 , an external voltage reference source can be used, and the internal voltage reference is disabled. when using an external differential voltage reference, it should be connected to its v ref+ pin. when using an external single-ended reference, it should be connected to this pin. when vrefext = 0 , the internal voltage reference is enabled and connected to this pin through a switch. this voltage reference has minimal drive capability and thus needs proper buffering and bypass capacitances (a 0.1 f ceramic capacitor is sufficient in most cases), if used as a voltage source. if the voltage reference is only used as an internal v ref , adding bypass capacitance on refin+/out is not necessary for keeping adc accuracy, but a minimal 0.1 f ceramic capacitance can be connected to avoid emi/emc susceptibility issues due to the antenna created by the refin+/out pin if left floating. 3.4 inverting reference input (refin-) this pin is the inverting side of the differential voltage reference input for all adcs. when using an external differential voltage reference, it should be connected to its v ref- pin. when using an external single-ended voltage reference, or when vrefext = 0 (default) and using the internal voltage reference, the pin should be directly connected to a gnd . 3.5 analog ground (a gnd ) a gnd is the ground reference voltage for the analog circuitry within the mcp3913. it is distributed on several pins (pins 17 and 36 in the uqfn package, one pin only in the ssop-28 package). for optimal performance, it is recommended to connect these pins together using a star connection, and to connect it to the same ground node voltage as d gnd , again preferably with a star connection. at least one of these pins need to be properly connected to ensure proper functionality of the device. all of these pins need to be properly connected to ensure optimal performance of the device. if any of these pins are left floating, the accuracy and noise specifications are not ensured. if an analog ground plane is available, it is recommended that these pins be tied to this plane of the pcb. this plane should also reference all other analog circuitry in the system. 3.6 digital ground (d gnd ) d gnd is the ground reference voltage for the digital circuitry within the mcp3913. it is distributed on several pins: 21, 24 and 32 in the uqfn package (two pins only in the ssop-28 package). for optimal performance, connect these pins together using a star connection and connect it to the same ground node voltage as a gnd , again preferably with a star connection. at least one of these pins need to be properly connected to ensure proper functionality of the device. all of these pins need to be properly connected to ensure optimal performance of the device. if any of these pins are left floating, the accuracy and noise specifications are not ensured. if a digital ground plane is available, it is recommended that these pins be tied to this plane of the printed circuit board (pcb). this plane should also reference all other digital circuitry in the system.
? 2013 microchip technology inc. ds20005227a-page 19 mcp3913 3.7 data ready output (dr) the data ready pin indicates if a new conversion result is ready to be read. the default state of this pin is logic high when dr_hiz = 1 , and is high-impedance when dr_hiz = 0 (default). after each conversion is finished, a logic low pulse will take place on the data ready pin to indicate the conversion result is ready as an interrupt. this pulse is synchronous with the master clock and has a defined and constant width. the data ready pin is independent of the spi interface and acts like an interrupt output. the data ready pin state is not latched, and the pulse width (and period) are both determined by the mclk frequency, over-sampling rate, and internal clock prescale settings. the data ready pulse width is equal to half a dmclk period and the frequency of the pulses is equal to drclk (see figure 1-3 ). 3.8 oscillator and master clock input pin (osc1/clki) osc1/clki and osc2 provide the master clock for the device. when clkext = 0 , a resonant crystal or clock source with a similar sinusoidal waveform must be placed across the osc1 and osc2 pins to ensure proper operation. the typical clock frequency specified is 4 mhz. for proper operation, and for optimizing adc accuracy, amclk should be limited to the maximum frequency defined in table 5-2 for the function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amclk = mclk/prescale in the defined range in table 5-2 . appropriate load capacitance should be connected to these pins for proper operation. 3.9 crystal oscillator (osc2) when clkext = 0 (default), a resonant crystal or clock source with a similar sinusoidal waveform must be placed across the osc1 and osc2 pins to ensure proper operation. appropriate load capacitance should be connected to these pins for proper operation. when clkext = 1 , this pin should be connected to d gnd at all times (an internal pull down operates this function, if the pin is left floating). 3.10 chip select (cs ) this pin is the serial peripheral interface (spi) chip select that enables serial communication. when this pin is logic high, no communication can take place. a chip select falling edge initiates serial communication, and a chip select rising edge terminates the communication. no communication can take place even when cs is logic low, if reset is also logic low. this input is schmitt-triggered. 3.11 serial data clock (sck) this is the serial clock pin for spi communication. data is clocked into the device on the rising edge of sck. data is clocked out of the device on the falling edge of sck. the mcp3913 spi interface is compatible with spi 0,0 and 1,1 modes. spi modes can be changed during a cs high time. the maximum clock speed specified is 20 mhz. sck and mclk are two different and asynchronous clocks; sck is only required when a communication happens, while mclk is continuously required when the part is converting analog inputs. this input is schmitt-triggered. 3.12 serial data output (sdo) this is the spi data output pin. data is clocked out of the device on the falling edge of sck. this pin remains in a high-impedance state during the command byte. it also stays high-impedance during the entire communication for write commands and when the cs pin is logic high, or when the reset pin is logic low. this pin is active only when a read command is processed. the interface is half-duplex (inputs and outputs do not happen at the same time). 3.13 serial data input (sdi) this is the spi data input pin. data is clocked into the device on the rising edge of sck. when cs is logic low, this pin is used to communicate with a series of 8-bit commands. the interface is half-duplex (inputs and outputs do not happen at the same time). each communication starts with a chip select falling edge followed by an 8-bit command word, entered through the sdi pin. each command is either a read or a write command. toggling sdi after a read command or when cs is logic high has no effect. this input is schmitt-triggered. note: this pin should not be left floating when the dr_hiz bit is low; a 100 k ? pull-up resistor connected to dv dd is recommended. note: when clkext = 1 , the crystal oscillator is disabled. osc1 becomes the master clock input clki, a direct path for an external clock source. one example would be a clock source generated by an mcu.
mcp3913 ds20005227a-page 20 ? 2013 microchip technology inc. 3.14 master reset (reset ) this pin is active low and places the entire chip in a reset state when active. when rese t i s logic low, all registers are reset to their default value, no communication can take place, and no clock is distributed inside the part, except in the input structure if mclk is applied (if mclk is idle, then no clock is distributed). this state is equivalent to a power-on reset (por) state. since the default state of the adcs is on, the analog power consumption when reset is logic low is equivalent to when reset is logic high. only the digital power consumption is largely reduced because this current consumption is essentially dynamic, and is reduced drastically when there is no clock running. all the analog biases are enabled during a reset, so that the part is fully operational just after a reset rising edge, if mclk is applied when r eset is logic low. if mclk is not applied, there is a time after a hard reset when the conversion may not accurately correspond to the startup of the input structure. this input is schmitt-triggered. 3.15 digital power supply (dv dd ) dv dd is the power supply voltage for the digital circuitry within the mcp3913. it is distributed on several pins (pins 20 and 33 in the uqfn package, one pin only in the ssop-28 package). for optimal performance, it is recommended to connect these pins together using a star connection and to connect appropriate bypass capacitors (typically a 10 f in parallel with a 0.1 f ceramic). dv dd should be maintained between 2.7v and 3.6v for specified operation. at least one of these pins need to be properly con- nected to ensure proper functionality of the device. all of these pins need to be properly connected to ensure optimal performance of the device. if any of these pins are left floating, the accuracy and noise specifications are not ensured. 3.16 exposed thermal pad this pin must be connected to a gnd or left floating for proper operation. connecting it to a gnd is preferable for lowest noise performance and best thermal behavior.
? 2013 microchip technology inc. ds20005227a-page 21 mcp3913 4.0 terminology and formulas this section defines the terms and formulas used throughout this data sheet. the following terms are defined: ? mclk ? master clock ? amclk ? analog master clock ? dmclk ? digital master clock ? drclk ? data rate clock ? osr ? oversampling ratio ? offset error ? gain error ? integral non-linearity error ? signal-to-noise ratio (snr) ? signal-to-noise ratio and distortion (sinad) ? total harmonic distortion (thd) ? spurious-free dynamic range (sfdr) ? mcp3913 delta-sigma architecture ? idle tones ? dithering ? crosstalk ? psrr ? cmrr ? adc reset mode ? hard reset mode (reset = 0 ) ? adc shutdown mode ? full shutdown mode ? measurement error 4.1 mclk ? master clock this is the fastest clock present on the device. this is the frequency of the crystal placed at the osc1/osc2 inputs when clkext = 0, or the frequency of the clock input at the osc1/clki when clkext = 1 . see figure 4-1 . 4.2 amclk ? analog master clock amclk is the clock frequency that is present on the analog portion of the device, after prescaling has occurred via the config0 pre<1:0> register bits (see equation 4-1 ). the analog portion includes the pgas and the delta-sigma modulators. equation 4-1: figure 4-1: clock sub-circuitry. 4.3 dmclk ? digital master clock this is the clock frequency that is present on the digital portion of the device, after prescaling and division by four ( equation 4-2 ). this is also the sampling frequency, which is the rate at which the modulator outputs are refreshed. each period of this clock corresponds to one sample and one modulator output. see figure 4-1 . equation 4-2: 4.4 drclk ? data rate clock this is the output data rate, i.e., the rate at which the adcs output new data. each new data is signaled by a data ready pulse on the dr pin. this data rate is depending on the osr and the prescaler with the formula in equation 4-3 . equation 4-3: table 4-1: mcp3913 oversampling ratio settings config. analog master clock prescale pre<1:0> 00 amclk = mclk/1 (default) 01 amclk = mclk/2 10 amclk = mclk/4 11 amclk = mclk/8 amclk mclk prescale ------------------------------ - = xtal oscillator mclk osc1 osc2 multiplexer out 0 1 1/prescale 1/4 1/osr amclk dmclk drclk clock divider clock divider clock divider osr<2:0> pre<1:0> clkext multiplexer out 0 1 mode sck dmclk amclk 4 -------------------- - mclk 4 prescale ? --------------------------------------- - == drclk dmclk osr ---------------------- amclk 4osr ? --------------------- mclk 4 osr prescale ? ? ---------------------------------------------------------- - ===
mcp3913 ds20005227a-page 22 ? 2013 microchip technology inc. since this is the output data rate, and because the decimation filter is a sinc (or notch) filter, there is a notch in the filter transfer function at each integer multiple of this rate. table 4-2 describes the various combinations of osr and prescale, and their associated amclk, dmclk and drclk rates. table 4-2: device data rates in function of mclk, osr and prescale, mclk = 4 mhz pre<1:0> osr<2:0> osr amclk dmclk drclk drclk (ksps) sinad (db) note 1 enob from sinad (bits) note 1 11111 4096 mclk/8 mclk/32 mclk/131072 .035 102.5 16.7 11110 2048 mclk/8 mclk/32 mclk/65536 .061 100 16.3 11101 1024 mclk/8 mclk/32 mclk/32768 .122 97 15.8 11100 512 mclk/8 mclk/32 mclk/16384 .244 96 15.6 11011 256 mclk/8 mclk/32 mclk/8192 0.488 95 15.5 11010 128 mclk/8 mclk/32 mclk/4096 0.976 91 14.8 11001 64 mclk/8 mclk/32 mclk/2048 1.95 84 13.6 11000 32 mclk/8 mclk/32 mclk/1024 3.9 70 11.3 10111 4096 mclk/4 mclk/16 mclk/65536 .061 102.5 16.7 10110 2048 mclk/4 mclk/16 mclk/32768 .122 100 16.3 10101 1024 mclk/4 mclk/16 mclk/16384 .244 97 15.8 10100 512 mclk/4 mclk/16 mclk/8192 .488 96 15.6 10011 256 mclk/4 mclk/16 mclk/4096 0.976 95 15.5 10010 128 mclk/4 mclk/16 mclk/2048 1.95 91 14.8 10001 64 mclk/4 mclk/16 mclk/1024 3.9 84 13.6 10000 32 mclk/4 mclk/16 mclk/512 7.8125 70 11.3 01111 4096 mclk/2 mclk/8 mclk/32768 .122 102.5 16.7 01110 2048 mclk/2 mclk/8 mclk/16384 .244 100 16.3 01101 1024 mclk/2 mclk/8 mclk/8192 .488 97 15.8 01100 512 mclk/2 mclk/8 mclk/4096 .976 96 15.6 01011 256 mclk/2 mclk/8 mclk/2048 1.95 95 15.5 01010 128 mclk/2 mclk/8 mclk/1024 3.9 91 14.8 01001 64 mclk/2 mclk/8 mclk/512 7.8125 84 13.6 01000 32 mclk/2 mclk/8 mclk/256 15.625 70 11.3 00111 4096 mclk mclk/4 mclk/16384 .244 102.5 16.7 00110 2048 mclk mclk/4 mclk/8192 .488 100 16.3 00101 1024 mclk mclk/4 mclk/4096 .976 97 15.8 00100 512 mclk mclk/4 mclk/2048 1.95 96 15.6 00011 256 mclk mclk/4 mclk/1024 3.9 95 15.5 00010 128 mclk mclk/4 mclk/512 7.8125 91 14.8 00001 64 mclk mclk/4 mclk/256 15.625 84 13.6 00000 32 mclk mclk/4 mclk/128 31.25 70 11.3 note 1: for osr = 32 and 64, dither = none. for osr = 128 and higher, dither = maximum. the sinad values are given from gain = 1 .
? 2013 microchip technology inc. ds20005227a-page 23 mcp3913 4.5 osr ? oversampling ratio this is the ratio of the sampling frequency to the output data rate; osr = dmclk/drclk. the default osr<2:0> is 256, or with mclk = 4 mhz, prescale = 1, amclk = 4 mhz, f s =1mhz, and f d = 3.90625 ksps. the osr<2:0> bits in ta bl e 4 - 3 in the config0 register are used to change the oversampling ratio (osr). 4.6 offset error this is the error induced by the adc when the inputs are shorted together (v in = 0v). the specification incorporates both pga and adc offset contributions. this error varies with pga and osr settings. the offset is different on each channel and varies from chip- to-chip. the offset is specified in v. the offset error can be digitally compensated independently on each channel through the offcal_chn registers with a 24-bit calibration word. the offset on the mcp3913 has a low-temperature coefficient. 4.7 gain error this is the error induced by the adc on the slope of the transfer function. it is the deviation expressed in %, compared to the ideal transfer function defined in equation 5-3 . the specification incorporates both pga and adc gain error contributions, but not the v ref contribution (it is measured with an external v ref ). this error varies with pga and osr settings. the gain error can be digitally compensated independently on each channel through the gaincal_chn registers with a 24-bit calibration word. the gain error on the mcp3913 has a low temperature coefficient. 4.8 integral non-linearity error integral non-linearity error is the maximum deviation of an adc transition point from the corresponding point of an ideal transfer function, with the offset and gain errors removed, or with the end points equal to zero. it is the maximum remaining error after calibration of offset and gain errors for a dc input signal. 4.9 signal-to-noise ratio (snr) for the mcp3913 adcs, the signal-to-noise ratio is a ratio of the output fundamental signal power to the noise power (not including the harmonics of the signal), when the input is a sine wave at a predetermined frequency (see equation 4-4 ). it is measured in db. usually, only the maximum signal-to-noise ratio is specified. the snr figure depends mainly on the osr and dither settings of the device. equation 4-4: signal-to-noise ratio 4.10 signal-to-noise ratio and distortion (sinad) the most important figure of merit for analog performance of the adcs present on the mcp3913 is the signal-to-noise and distortion (sinad) specification. the signal-to-noise and distortion ratio is similar to signal-to-noise ratio, with the exception that you must include the harmonic?s power in the noise power calculation (see equation 4-5 ). the sinad specification depends mainly on the osr and dither settings. equation 4-5: sinad equation the calculated combination of snr and thd per the following formula also yields sinad, see equation 4-6 . equation 4-6: sinad, thd and snr relationship table 4-3: mcp3913 oversampling ratio settings osr<2:0> oversampling ratio osr 000 32 001 64 010 128 011 256 (default) 100 512 101 1024 110 2048 111 4096 snr db ?? 10 signalpower noisepower ---------------------------------- ?? ?? log = sinad db ?? 10 signalpower noise harmonicspower + -------------------------------------------------------------------- - ?? ?? log = sinad db ?? 10 10 snr 10 ----------- ?? ?? 10 thd ? 10 --------------- - ?? ?? + log =
mcp3913 ds20005227a-page 24 ? 2013 microchip technology inc. 4.11 total harmonic distortion (thd) the total harmonic distortion is the ratio of the output harmonic?s power to the fundamental signal power for a sine wave input, and is defined in equation 4-7 . equation 4-7: the thd calculation includes the first 35 harmonics for the mcp3913 specifications. the thd is usually measured only with respect to the ten first harmonics, which leads artificially to better figures. thd is sometimes expressed in %. equation 4-8 converts the thd in %. equation 4-8: this specification depends mainly on the dither setting. 4.12 spurious-free dynamic range (sfdr) sfdr is the ratio between the output power of the fundamental and the highest spur in the frequency spectrum (see equation 4-9 ). the spur frequency is not necessarily a harmonic of the fundamental, even though it is usually the case. this figure represents the dynamic range of the adc when a full-scale signal is used at the input. this specification depends mainly on the dither setting. equation 4-9: 4.13 mcp3913 delta-sigma architecture the mcp3913 incorporates six delta-sigma adcs with a multi-bit architecture. a delta-sigma adc is an oversampling converter that incorporates a built-in modulator, which digitizes the quantity of charges integrated by the modulator loop (see figure 5-1 ). the quantizer is the block that is performing the analog-to-digital conversion. the quantizer is typically 1-bit, or a simple comparator, which helps maintain the linearity performance of the adc (the dac structure is, in this case, inherently linear). multi-bit quantizers help to lower the quantization error (the error fed back in the loop can be very large with 1-bit quantizers) without changing the order of the modulator or the osr, which leads to better snr figures. however, typically, the linearity of such architectures is more difficult to achieve since the dac linearity is as difficult to attain, and its linearity limits the thd of such adcs. the quantizer present in each adc channel in the mcp3913 is a flash adc composed of four comparators arranged with equally spaced thresholds and a thermometer coding. the mcp3913 also includes proprietary five-level dac architecture that is inherently linear for improved thd figures. 4.14 idle tones a delta-sigma converter is an integrating converter. it also has a finite quantization step (lsb) that can be detected by its quantizer. a dc input voltage that is below the quantization step should only provide an all zeros result, since the input is not large enough to be detected. as an integrating device, any delta-sigma adc will show idle tones. this means that the output will have spurs in the frequency content that depend on the ratio between quantization step voltage and the input voltage. these spurs are the result of the integrated sub-quantization step inputs that will eventually cross the quantization steps after a long enough integration. this will induce an ac frequency at the output of the adc, and can be shown in the adc output spectrum. these idle tones are residues that are inherent to the quantization process and the fact that the converter is integrating at all times without being reset. they are residues of the finite resolution of the conversion process. they are very difficult to attenuate and they are heavily signal dependent. they can degrade the sfdr and thd of the converter, even for dc inputs. they can be localized in the baseband of the converter and are thus difficult to filter from the actual input signal. for power metering applications, idle tones can be very disturbing, because energy can be detected even at the 50 or 60 hz frequency, depending on the dc offset of the adcs, while no power is really present at the inputs. the only practical way to suppress or attenuate the idle tones phenomenon is to apply dithering to the adc. the amplitudes of the idle tones are a function of the order of the modulator, the osr and the number of levels in the quantizer of the modulator. a higher order, a higher osr or a higher number of levels for the quantizer will attenuate the amplitudes of the idle tones. thd db ?? 10 harmonicspower fundamentalpower ---------------------------------------------------- - ?? ?? log = thd % ?? 100 10 thd db ?? 20 ------------------------ ? = sfdr db ?? 10 fundamentalpower highestspurpower ---------------------------------------------------- - ?? ?? log =
? 2013 microchip technology inc. ds20005227a-page 25 mcp3913 4.15 dithering in order to suppress or attenuate the idle tones present in any delta-sigma adcs, dithering can be applied to the adc. dithering is the process of adding an error to the adc feedback loop in order to ?decorrelate? the outputs and ?break? the idle tone?s behavior. usually a random or pseudo-random generator adds an analog or digital error to the feedback loop of the delta-sigma adc in order to ensure that no tonal behavior can happen at its outputs. this error is filtered by the feed- back loop and typically has a zero average value, so that the converter static transfer function is not dis- turbed by the dithering process. however, the dithering process slightly increases the noise floor (it adds noise to the part) while reducing its tonal behavior and thus improving sfdr and thd. the dithering process scrambles the idle tones into baseband white noise and ensures that dynamic specs (snr, sinad, thd, sfdr) are less signal dependent. the mcp3913 incor- porates a proprietary dithering algorithm on all adcs in order to remove idle tones and improve thd, which is crucial for power metering applications. 4.16 crosstalk crosstalk is defined as the perturbation caused on one adc channel by all the other adc channels present in the chip. it is a measurement of the isolation between each channel present in the chip. this measurement is a two-step procedure: 1. measure one adc input with no perturbation on the other adc (adc inputs shorted). 2. measure the same adc input with a perturbation sine wave signal on all the other adcs at a certain predefined frequency. crosstalk is the ratio between the output power of the adc when the perturbation is and is not present, divided by the power of the perturbation signal. a lower crosstalk value implies more independence and isolation between the channels. the measurement of this signal is performed under the default conditions of mclk = 4 mhz: ?gain = 1 ? prescale = 1 ? osr = 256 ? mclk = 4 mhz step 1 for ch0 crosstalk measurement: ? ch0+ = ch0- = agnd ? chn+ = chn- = agnd n comprised between 1 and 5 step 2 for ch0 crosstalk measurement: ? ch0+ = ch0-=agnd ? chn+ - chn- = 1.2v p-p @ 50/60 hz (full-scale sine wave), n comprised between 1 and 5 the crosstalk for channel 0 is then calculated with the formula in equation 4-10 . equation 4-10: the crosstalk depends slightly on the position of the channels in the mcp3913 device. this dependency is shown in the figure 2-32 , where the inner channels show more crosstalk than the outer channels, since they are located closer to the perturbation sources. the outer channels have the preferred locations to minimize crosstalk. 4.17 psrr this is the ratio between a change in the power supply voltage and the adc output codes. it measures the influence of the power supply voltage on the adc outputs. the psrr specification can be dc (the power supply is taking multiple dc values), or ac (the power supply is a sine wave at a certain frequency with a certain common mode). in ac, the amplitude of the sine wave represents the change in the power supply. it is defined in equation 4-11 . equation 4-11: where: v out is the equivalent input voltage that the output code translates to, with the adc transfer function. in the mcp3913 specification for dc psrr, av dd var- ies from 2.7v to 3.6v, and for ac psrr, a 50/60 hz sine wave is chosen centered around 3.0v, with a maximum 300 mv amplitude. the psrr specification is measured with av dd = dv dd . 4.18 cmrr cmrr is the ratio between a change in the common-mode input voltage and the adc output codes. it measures the influence of the common-mode input voltage on the adc outputs. the cmrr specification can be dc (the common-mode input voltage is taking multiple dc values) or ac (the common-mode input voltage is a sine wave at a certain frequency with a certain common mode). in ac, the amplitude of the sine wave represents the change in the power supply. it is defined in equation 4-12 . ctalk db ?? 10 ? ch0power ? chnpower -------------------------------- - ?? ?? log = psrr db ?? 20 ? v out ? av dd ------------------ - ?? ?? log =
mcp3913 ds20005227a-page 26 ? 2013 microchip technology inc. equation 4-12: where: v cm = (chn+ + chn-)/2 is the common-mode input voltage, and v out is the equivalent input voltage that the output code translates to, with the adc transfer function. in the mcp3913 specification, vcm varies from -1v to +1v. 4.19 adc reset mode adc reset mode (also called soft reset mode) can only be entered through setting the reset<5:0> bits high in the configuration register. this mode is defined as the condition where the converters are active, but their output is forced to 0 . the flash adc output of the corresponding channel will be reset to its default value ( 0011 ) in the mod register. the adcs can immediately output meaningful codes after leaving reset mode (and after the sinc filter settling time). this mode is both entered and exited through bit settings in the configuration register. each converter can be placed in soft reset mode independently. the configuration registers are not modified by the soft reset mode. a data ready pulse will not be generated by an adc channel in reset mode. when an adc exits adc reset mode, any phase delay present before reset was entered will still be present. if one adc was not in reset, the adc leaving reset mode will automatically resynchronize the phase delay, relative to the other adc channel per the phase delay register block, and give data ready pulses accordingly. if an adc is placed in reset mode while others are converting, it does not shut down the internal clock. when coming out of reset, it will be automatically resynchronized with the clock, which did not stop during reset. if all adcs are in soft reset mode, the clock is no longer distributed to the digital core for low-power operation. once any of the adcs are back to normal operation, the clock is automatically distributed again. however, when the eight channels are in soft reset mode, the input structure is still clocking if mclk is applied in order to properly bias the inputs, so that no leakage current is observed. if mclk is not applied, large analog input leakage currents can be observed for highly negative input voltages (typically below -0.6v referred to a gnd ). 4.20 hard reset mode (reset = 0 ) this mode is only available during a por or when the reset pin is pulled logic low. the reset pin logic-low state places the device in hard reset mode. in this mode, all internal registers are reset to their default state. the dc biases for the analog blocks are still active, i.e., the mcp3913 is ready to convert. however, this pin clears all conversion data in the adcs. the comparators? outputs of all adcs are forced to their reset state ( 0011 ). the sinc filters are all reset, as well as their double output buffers. the hard reset mode requires a minimum pulse low time (see section 1.0 ?electrical characteristics? ). during a hard reset, no communication with the part is possible. the digital interface is maintained in a reset state. during this state, the clock mclk can be applied to the part in order to properly bias the input structures of all channels. if not applied, large analog input leakage currents can be observed for highly negative input signals and, after removing the hard reset state, a certain start-up time is necessary to bias the input structure properly. during this delay, the adc conversions can be inaccurate. 4.21 adc shutdown mode adc shutdown mode is defined as a state where the converters and their biases are off, consuming only leakage current. when one of the shutdown<5:0> bits is reset to ? 0 ?, the analog biases of the corresponding channel will be enabled, as well as the clock and the digital circuitry. the adc of the corresponding channel will give a data ready after the sinc filter settling time has occurred. however, since the analog biases are not completely settled at the beginning of the conversion, the sampling may not be accurate during about 1 ms (corresponding to the settling time of the biasing in worst case conditions). in order to ensure accuracy, the data ready pulse within the delay of 1 ms + settling time of the sinc filter should be discarded. each converter can be placed in shutdown mode independently. the configuration registers are not modified by the shutdown mode. this mode is only available through programming the shutdown<5:0> bits of the config1 register. the output data is flushed to all zeros while in adc shutdown mode. no data ready pulses are generated by any adc while in adc shutdown mode. cmrr db ?? 20 ? v out ? v cm ----------------- ?? ?? log =
? 2013 microchip technology inc. ds20005227a-page 27 mcp3913 when an adc exits adc shutdown mode, any phase delay present before shutdown was entered will still be present. if one adc was not in shutdown, the adc leaving shutdown mode will automatically resynchro- nize the phase delay relative to the other adc channel per the phase delay register block, and give data ready pulses accordingly. if an adc is placed in shutdown mode while others are converting, it is not shutting down the internal clock. when coming back out of shutdown mode, it will automatically be resynchronized with the clock that did not stop during reset. if all adcs are in adc shutdown mode, the clock is not distributed to the input structure or to the digital core for low-power operation. this can potentially cause high analog input leakage currents at the analog inputs, if the input voltage is highly negative (typically below - 0.6v referred to a gnd ). once either of the adcs is back to normal operation, the clock is automatically distributed again. 4.22 full shutdown mode the lowest power consumption can be achieved when shutdown<5:0> = 111111 , vrefext = clkext = 1 . this mode is called full shutdown mode, and no analog circuitry is enabled. in this mode, both av dd and dv dd por monitoring are also disabled, and no clock is propagated throughout the chip. all adcs are in shutdown mode, and the internal voltage reference is disabled. this mode does not reset the writable part of the register map to its default values. the clock is no longer distributed to the input structure as well. this can potentially cause high analog input leakage currents at the analog inputs, if the input volt- age is highly negative (typically below -0.6v referred to a gnd ). the only circuit that remains active is the spi interface, but this circuit does not induce any static power consumption. if sck is idle, the only current consumption comes from the leakage currents induced by the transistors and is less than 5 a on each power supply. this mode can be used to power down the chip completely and avoid power consumption when there is no data to convert at the analog inputs. any sck or mclk edge occurring while in this mode will induce dynamic power consumption. once any of the shutdown<5:0>, clkext and vrefext bits return to ? 0 ?, the two por monitoring blocks are operational and av dd and dv dd monitoring can take place. 4.23 measurement error the measurement error specification is typically used in power meter applications. this specification is a measurement of the linearity of the active energy of a given power meter across its dynamic range. for this measurement, the goal is to measure the active energy of one phase when the voltage root mean square (rms) value is fixed, and the current rms value is sweeping across the dynamic range specified by the meter. the measurement error is the non-linearity error of the energy power across the current dynamic range. it is expressed in percent (%). equation 4-13 shows the formula that calculates the measurement error: equation 4-13: in the present device, the calculation of the active energy is done externally, as a post-processing step that typically happens in the microcontroller, considering, for example, the even channels as current channels and the odd channels as voltage channels. the odd channels (voltages) are fed with a full-scale sine wave at 600 mv peak, and are configured with gain = 1 and dither = maximum. to obtain the active energy measurement error graphs, the even channels are fed with sine waves with amplitudes that vary from 600 mv peak to 60 v peak, representing a 10000:1 dynamic range. the offset is removed on both current and voltage channels, and the channels are multiplied together to give instantaneous power. the active energy is calculated by multiplying the current and voltage channel, and averaging the results of this power during 20 seconds, to extract the active energy. the sampling frequency is chosen as a multiple integer of line frequency (coherent sampling). therefore, the calculation does not take into account any residue coming from bad synchronization. the measurement error is a function of i rms and varies with the osr, averaging time, mclk frequency and is tightly coupled with the noise and linearity specifications. the measurement error is a function of the linearity and thd of the adcs, while the standard deviation of the measurement error is a function of the noise specification of the adcs. overall, the low thd specification enables low measurement error on a very large dynamic range (e.g. 10,000:1). a low noise and high snr specification enables the decreasing of the measurement time and, therefore, the calibration time, to obtain a reliable measurement error specification. figure 2-5 shows the typical measurement error curves obtained with the samples acquired by the mcp3913, using the default settings with a 1-point and 2-point calibration. these calibrations are detailed in section 7.0 ?basic application recommenda- tions? . measurement error i rms ?? measured active energy active energy present at inputs ? active energy present at inputs ------------------------------------------------------------------------------------------------------------------------------- ------------- 1 0 0 % ? =
mcp3913 ds20005227a-page 28 ? 2013 microchip technology inc. notes:
? 2013 microchip technology inc. ds20005227a-page 29 mcp3913 5.0 device overview 5.1 analog inputs (chn+/-) the mcp3913 analog inputs can be connected directly to current and voltage transducers (such as shunts, current transformers, or rogowski coils). each input pin is protected by specialized esd structures that allow bipolar 2v continuous voltage, with respect to a gnd , to be present at their inputs without the risk of permanent damage. all channels have fully differential voltage inputs for better noise performance. the absolute voltage at each pin relative to a gnd should be maintained in the 1v range during operation in order to ensure the specified adc accuracy. the common mode signals should be adapted to respect both the previous conditions and the differential input voltage range. for best performance, the common mode signals should be maintained to a gnd . 5.2 programmable gain amplifiers (pga) the six programmable gain amplifiers (pgas) reside at the front-end of each delta-sigma adc. they have two functions: translate the common-mode voltage of the input from a gnd to an internal level between a gnd and av dd , and amplify the input differential signal. the translation of the common-mode voltage does not change the differential signal, but recenters the com- mon mode so that the input signal can be properly amplified. the pga block can be used to amplify very low signals, but the differential input range of the delta-sigma modulator must not be exceeded. the pga on each channel is independent and is controlled by the pga_chn<2:0> bits in the gain register. table 5-1 displays the gain settings for the pga. 5.3 delta-sigma modulator 5.3.1 architecture all adcs are identical in the mcp3913, and they include a proprietary second-order modulator with a multi-bit 5-level dac architecture (see figure 5-1 ). the quantizer is a flash adc composed of four comparators with equally spaced thresholds and a thermometer output coding. the proprietary 5-level architecture ensures minimum quantization noise at the outputs of the modulators without disturbing linearity or inducing additional distortion. the sampling frequency is dmclk (typically 1 mhz with mclk = 4 mhz) so the modulators are refreshed at a dmclk rate. figure 5-1 represents a simplified block diagram of the delta-sigma adc present on mcp3913. figure 5-1: simplified delta-sigma adc block diagram. note: if the analog inputs are held to a potential of -0.6 to -1v for extended periods of time, mclk must be present inside the device in order to avoid large leakage currents at the analog inputs. this is true even during hard reset mode, or the soft reset of all adcs. however, during the shutdown mode of all the adcs or por state, the clock is not distributed inside the circuit. during these states, it is recommended to keep the analog input voltages above -0.6v referred to a gnd , to avoid high analog inputs leakage currents. table 5-1: pga configuration setting gain pga_chn<2:0> gain (v/v) gain (db) v in = (chn+) ? (chn-) differential input range (v) 000 100.6 001 260.3 010 4 12 0.15 011 8 18 0.075 100 16 24 0.0375 101 32 30 0.01875 note: the two undefined settings are g = 1. this table is defined with v ref = 1.2v. second- order integrator loop filter quantizer dac differential voltage input output bitstream 5-level flash adc mcp3913 delta-sigma modulator
mcp3913 ds20005227a-page 30 ? 2013 microchip technology inc. 5.3.2 modulator input range and saturation point for a specified voltage reference value of 1.2v, the specified differential input range is 600 mv. the input range is proportional to v ref and scales according to the v ref voltage. this range ensures the stability of the modulator over amplitude and frequency. outside of this range, the modulator is still functional; however, its stability is no longer ensured and therefore it is not recommended to exceed this limit. the saturation point for the modulator is v ref /1.5, since the transfer function of the adc includes a gain of 1.5 by default (independent from the pga setting). see section 5.5 ?adc output coding? ). 5.3.3 boost settings the delta-sigma modulators include a programmable biasing circuit, in order to further adjust the power consumption to the sampling speed applied through the mclk. this can be programmed through the boost<1:0> bits, which are applied to all channels simultaneously. the maximum achievable analog master clock speed (amclk), the maximum sampling frequency (dmclk) and the maximum achievable data rate (drclk), highly depend on boost<1:0> and pga_chn<2:0> settings. table 5-2 specifies the maximum amclk possible to keep optimal accuracy in the function of boost<1:0> and pga_chn<2:0> settings. table 5-2: maximum amclk limits as a function of boost and pga gain conditions v dd = 3.0v to 3.6v, t a from -40c to +125c v dd = 2.7v to 3.6v, t a from -40c to +125c boost gain maximum amclk (mhz) (sinad within -3 db from its maximum) maximum amclk (mhz) (sinad within -5 db from its maximum) maximum amclk (mhz) (sinad within -3 db from its maximum) maximum amclk (mhz) (sinad within -5 db from its maximum) 0.5x 1 4 4 4 4 0.66x 1 6.4 7.3 6.4 7.3 1x 1 11.4 11.4 10.6 10.6 2x 1 16 16 16 16 0.5x 2 4 4 4 4 0.66x 2 6.4 7.3 6.4 7.3 1x 2 11.4 11.4 10.6 10.6 2x 2 16 16 13.3 14.5 0.5x 4 2.9 2.9 2.9 2.9 0.66x 4 6.4 6.4 6.4 6.4 1x 4 10.7 10.7 9.4 10.7 2x 4 16 16 16 16 0.5x 8 2.9 4 2.9 4 0.66x 8 7.3 8 6.4 7.3 1x 8 11.4 12.3 8 8.9 2x 8 16 16 10 11.4 0.5x 16 2.9 2.9 2.9 2.9 0.66x 16 6.4 7.3 6.4 7.3 1x 16 11.4 11.4 9.4 10.6 2x 16 13.3 16 8.9 11.4 0.5x 32 2.9 2.9 2.9 2.9 0.66x 32 7.3 7.3 7.3 7.3 1x 32 10.6 12.3 9.4 10,6 2x 32 13.3 16 10 11.4
? 2013 microchip technology inc. ds20005227a-page 31 mcp3913 5.3.4 dither settings all modulators include a dithering algorithm that can be enabled through the dither<1:0> bits in the configuration register. this dithering process improves thd and sfdr (for high osr settings), while slightly increasing the noise floor of the adcs. for power metering applications and applications that are distortion sensitive, it is recommended to keep dither at maximum settings for best thd and sfdr performance. in the case of power metering applications, thd and sfdr are critical specifications. optimizing snr (noise floor) is not problematic due to the large averaging factor at the output of the adcs. therefore, even for low osr settings, the dithering algorithm will show a positive impact on the performance of the application. 5.4 sinc 3 + sinc 1 filter the decimation filter present in all channels of the mcp3913 is a cascade of two sinc filters (sinc 3 +sinc 1 ): a third order sinc filter with a decimation ratio of osr 3 , followed by a first order sinc filter with a decimation ratio of osr 1 (moving average of osr 1 values). figure 5-2 represents the decimation filter architecture. figure 5-2: mcp3913 decimation filter block diagram. equation 5-1 calculates the filter z-domain transfer function. equation 5-1: sinc filter transfer function equation 5-2 calculates the settling time of the adc as a function of dmclk periods. equation 5-2: the sinc 1 filter following the sinc 3 filter is only enabled for the high osr settings (osr > 512). this sinc 1 filter provides additional rejection at a low cost with little modification to the -3 db bandwidth. the resolution (number of possible output codes expressed in powers of two or in bits) of the digital filter is 24-bit maximum for any osr and data format choice. the resolution depends only on the osr<2:0> settings in the config0 register per the tab le 5 - 3 . once the osr is chosen, the resolution is fixed and the output code respects the data format defined by the width_data<1:0> setting in the statuscom register (see section 5.5 ?adc output coding? ). modulator output sinc 3 sinc 1 decimation filter output osr 3 osr 1 4 16 (width=0) 24 (width=1) decimation filter osr 1 =1 hz ?? 1z - osr 3 ? ?? ?? 3 osr 3 1z 1 ? ? ?? ?? 3 --------------------------------------------- - 1z - osr 1 osr 3 ? ? ?? ?? osr 1 1z - osr 3 ? ?? ?? ? -------------------------------------------------------- - ? = where z exp 2 ? jf in ?? ?? dmclk ?? ? ?? = settlingtime dmclkperiods ?? 3osr 3 ? osr 1 1 ? ?? osr 3 ? + =
mcp3913 ds20005227a-page 32 ? 2013 microchip technology inc. the gain of the transfer function of this filter is 1 at each multiple of dmclk (typically 1 mhz), so a proper anti- aliasing filter must be placed at the inputs. this will attenuate the frequency content around dmclk and keep the desired accuracy over the baseband of the converter. this anti-aliasing filter can be a simple, first- order rc network, with a sufficiently low-time constant to generate high rejection at the dmclk frequency . any unsettled data is automatically discarded to avoid data corruption. each data-ready pulse corresponds to fully settled data at the output of the decimation filter. the first data available at the output of the decimation filter is present after the complete settling time of the filter (see tab l e 5 - 3 ). after the first data has been processed, the delay between two data-ready pulses coming from the same adc channel is one drclk period. the data stream from input to output is delayed by an amount equal to the settling time of the filter (which is the group delay of the filter). the achievable resolution, the -3 db bandwidth and the settling time at the output of the decimation filter (the output of the adc), is dependent on the osr of each sinc filter and is summarized in ta b l e 5 - 3 . figure 5-3: sinc filter frequency response, osr = 256, mclk = 4 mhz, pre<1:0> = 00 . figure 5-4: sinc filter frequency response, osr = 4096 (in pink), osr = 512 (in blue), mclk = 4 mhz, pre<1:0> = 00 . table 5-3: oversampling ratio and sinc filter settling time osr<2:0> osr 3 osr 1 total osr resolution in bits (no missing code) settling time -3 db bandwidth 000 32 1 32 17 96/dmclk 0.26*drclk 001 64 1 64 20 192/dmclk 0.26*drclk 010 128 1 128 23 384/dmclk 0.26*drclk 011 256 1 256 24 768/dmclk 0.26*drclk 100 512 1 512 24 1536/dmclk 0.26*drclk 101 512 2 1024 24 2048/dmclk 0.37*drclk 110 512 4 2048 24 3072/dmclk 0.42*drclk 111 512 8 4096 24 5120/dmclk 0.43*drclk -80 -60 -40 -20 0 a gnitude (db) -120 -100 1 10 100 1000 10000 100000 m a input frequency (hz) -100 -80 -60 -40 -20 0 gnitude (db) -160 -140 -120 1 100 10000 1000000 ma input frequency (hz)
? 2013 microchip technology inc. ds20005227a-page 33 mcp3913 5.5 adc output coding the second order modulator, sinc 3 +sinc 1 filter, pga, v ref and the analog input structure all work together to produce the device transfer function for the analog-to- digital conversion (see equation 5-3 ). each channel data is calculated on 24-bit (23-bit plus sign) and coded in two's complement format, msb first. the output format can then be modified by the width_data<1:0> settings in the statuscom register to allow 16-/24-/32-bit formats compatibility (see section 8.6 ?statuscom register ? status and communication register? for more information). in case of positive saturation (chn+ ? chn- >v ref /1.5), the output is locked to 7fffff for 24-bit mode. in case of negative saturation (chn+ - chn- < -v ref /1.5), the output code is locked to 800000 for 24-bit mode. equation 5-3 is only true for dc inputs. for ac inputs, this transfer function needs to be multiplied by the transfer function of the sinc 3 +sinc 1 filter (see equation 5-1 and equation 5-3 ). equation 5-3: for other than the default 24-bit data formats, equation 5-3 should be multiplied by a scaling factor, depending on the data format used (defined by width_data<1:0>). the data format and associated scaling factors are given in figure 5-5 . figure 5-5: output data formats. the adc resolution is a function of the osr ( section 5.4 ?sinc3 + sinc1 filter? ). the resolution is the same for all channels. no matter what the resolution is, the adc output data is always calculated in 24-bit words, with added zeros at the end, if the osr is not large enough to produce 24-bit resolution (left justification). data_chn ch n+ ch n- ? ?? v ref+ v ref- ? ----------------------------------------- ?? ?? ?? 8,388,608 g 1.5 ? ? ? = for 24-bit mode, width_data<1:0> = 01 (default) data <7> width_data<1:0> = 11 32-bit with sign extension data <23> data <23:16> 31 0 data <15:8> data <7:0> width_data<1:0> = 10 32-bit with zeros padded 0x00 31 0 data <23:16> data <7:0> data <15:8> width_data<1:0> = 01 24-bit data <23:16> data <15:8> data <7:0> 23 0 width_data<1:0> = 00 16-bit data <15:8> 15 0 data <23:16> rounded unformatted adc data data <23:16> data <15:8> data <7:0> 23 0 x1/256 x1 x256 x1 scaling factor
mcp3913 ds20005227a-page 34 ? 2013 microchip technology inc. table 5-4: osr = 256 (and higher) output code examples adc output code (msb first) hexadecimal decimal, 24-bit resolution 0111 1111 1111 1111 1111 1111 0x7fffff + 8,388,607 0111 1111 1111 1111 1111 1110 0x7ffffe + 8,388,606 0000 0000 0000 0000 0000 0000 0x000000 0 1111 1111 1111 1111 1111 1111 0xffffff -1 1000 0000 0000 0000 0000 0001 0x800001 - 8,388,607 1000 0000 0000 0000 0000 0000 0x800000 - 8,388,608 table 5-5: osr = 128 output code examples adc output code (msb first) hexadecimal decimal, 23-bit resolution 0111 1111 1111 1111 1111 111 0 0x7ffffe + 4,194,303 0111 1111 1111 1110 1111 110 0 0x7ffffc + 4,194,302 0000 0000 0000 0000 0000 000 0 0x000000 0 1111 1111 1111 1111 1111 111 0 0xfffffe -1 1000 0000 0000 0000 0000 001 0 0x800002 - 4,194,303 1000 0000 0000 0000 0000 000 0 0x800000 - 4,194,304 table 5-6: osr = 64 output code examples adc output code (msb first) hexadecimal decimal, 20-bit resolution 0111 1111 1111 1111 1111 0 0 0 0 0x7ffff0 + 524, 287 0111 1111 1111 1111 1110 0 0 0 0 0x7fffe0 + 524, 286 0000 0000 0000 0000 0000 0 0 0 0 0x000000 0 1111 1111 1111 1111 1111 0 0 0 0 0xfffff0 -1 1000 0000 0000 0000 0001 0 0 0 0 0x800010 - 524,287 1000 0000 0000 0000 0000 0 0 0 0 0x800000 - 524, 288 table 5-7: osr = 32 output code examples adc output code (msb first) hexadecimal decimal, 17-bit resolution 0111 1111 1111 1111 1 0 0 0 0 0 0 0 0x7fff80 + 65, 535 0111 1111 1111 1111 0 0 0 0 0 0 0 0 0x7fff00 + 65, 534 0000 0000 0000 0000 0 0 0 0 0 0 0 0 0x000000 0 1111 1111 1111 1111 1 0 0 0 0 0 0 0 0xffff80 -1 1000 0000 0000 0000 1 0 0 0 0 0 0 0 0x800080 - 65,535 1000 0000 0000 0000 0 0 0 0 0 0 0 0 0x800000 - 65, 536
? 2013 microchip technology inc. ds20005227a-page 35 mcp3913 5.6 voltage reference 5.6.1 internal voltage reference the mcp3913 contains an internal voltage reference source specially designed to minimize drift over temperature. in order to enable the internal voltage reference, the vrefext bit in the configuration register must be set to ? 0 ? (default mode). this internal v ref supplies reference voltage to all channels. the typical value of this voltage reference is 1.2v 2%. the internal reference has a very low typical temperature coefficient of 7 ppm/c, allowing the output to have minimal variation, with respect to temperature, since they are proportional to (1/v ref ). the noise of the internal voltage reference is low enough not to significantly degrade the snr of the adc, if compared to a precision external low-noise voltage reference. the output pin for the internal volt- age reference is refin+/out. if the voltage reference is only used as an internal v ref , adding bypass capacitance on refin+/out is not necessary for keeping adc accuracy, but a minimal 0.1 f ceramic capacitance can be connected to avoid emi/emc susceptibility issues due to the antenna created by the refin+/out pin, if left floating. the bypass capacitors also help applications where the voltage reference output is connected to other circuits. in this case, additional buffering may be needed since the output drive capability of this output is low. adding too much capacitance on the refin+/out pin may slightly degrade the thd performance of the adcs. 5.6.2 differential external voltage inputs when the vrefext bit is set to ? 1 ?, the two reference pins (refin+/out, refin-) become a differential voltage reference input. the voltage at the refin+/out is noted v ref +, and the voltage at the refin- pin is noted v ref -. the differential voltage input value is shown in equation 5-4 . equation 5-4: the specified v ref range is from 1.1v to 1.3v. the refin- pin voltage (v ref -) should be limited to 0.1v, with respect to a gnd . typically, for single-ended reference applications, the refin- pin should be directly connected to a gnd , with its own separate track to avoid any spike due to switching noise. these buffers are injecting a certain quantity of 1/f noise into the system, noise that can be modulated with the incoming input signals and that can limit the snr at very high osr (osr>256). to overcome this limitation, these buffers include an auto-zeroing algorithm that greatly diminishes their 1/f noise as well as their offset, so that the snr of the system is not limited by this noise component, even at maximum osr. this auto-zeroing algorithm is performed synchronously with the mclk coming to the device. 5.6.3 temperature compensation (vrefcal<7:0>) the internal voltage reference consists of a proprietary circuit and algorithm to compensate first order and sec- ond order temperature coefficients. the compensation enables very low temperature coefficients (typically 9 ppm/c) on the entire range of temperatures, from - 40c to +125c. this temperature coefficient varies from part to part. this temperature coefficient can be adjusted on each part through the vrefcal<7:0> bits present in the config0 register (bits 7 to 0). these register settings are only for advanced users. vrefcal<7:0> should not be modified unless the user wants to calibrate the temperature coefficient of the whole system or application. the default value of this register is set to 0x50. the default value (0x50) was chosen to optimize the standard deviation of the tempco across process variation. the value can be slightly improved to around 7 ppm/c if the vrefcal<7:0> is written at 0x50, but this setting degrades the standard deviation of the v ref tempco.the typical variation of the temperature coefficient of the internal voltage reference with respect to the vrefcal register code is shown in figure 5-6 . modifying the value stored in the vrefcal<7:0> bits may also vary the voltage reference, in addition to the temperature coefficient. figure 5-6: v ref tempco vs. v refcal trim code chart. 5.6.4 voltage reference buffers each channel includes a voltage reference buffer tied to the refin+/out pin, which allows the internal capacitors to properly charge with the voltage reference signals, even in the case of an external voltage reference connection with weak load regulation specifications. this ensures that the correct amount of current is sourced to each channel to guarantee their accuracy specifications, and diminishes the constraints on the voltage reference load regulation. v ref =v ref +?v ref - 0 10 20 30 40 50 60 0 64 128 192 256 v ref drift (ppm) vrefcal register trim code (decimal)
mcp3913 ds20005227a-page 36 ? 2013 microchip technology inc. 5.7 power-on reset the mcp3913 contains an internal por circuit that monitors both analog and digital supply voltages during operation. the typical threshold for a power-up event detection is 2.0v 10% and a typical start-up time (t por ) of 50 s. the por circuit has a built-in hystere- sis for improved transient spike immunity that has a typical value of 200 mv. proper decoupling capacitors (0.1 f in parallel with 10 f) should be mounted as close as possible to the av dd and dv dd pins, providing additional transient immunity. figure 5-7 illustrates the different conditions at a power-up and a power-down event in typical conditions. all internal dc biases are not settled until at least 1 ms in worst case conditions after system por. any data-ready pulse occurring within 1 ms plus the sinc filter settling time after system reset, should be ignored to ensure proper accuracy. after por, data ready pulses are present at the pin with all the default conditions in the configuration registers. both av dd and dv dd are monitored, so either power supply can sequence first. figure 5-7: power-on reset operation. 5.8 hard reset effect on delta-sigma modulator/sinc filter when the reset pin is logic low, all adcs will be in reset and output code 0x000000h. the reset pin performs a hard reset (dc biases are still on, the part is ready to convert) and clears all charges contained in the delta-sigma modulators. the comparator?s output is ? 0011 ? for each adc. the sinc filters are all reset, as well as their double output buffers. this pin is independent of the serial interface. it brings all the registers to the default state. when reset is logic low, any write with the spi interface will be disabled and will have no effect. all output pins (sdo, dr ) are high-impedance. if an external clock (mclk) is applied, the input struc- ture is enabled and is properly biasing the substrate of the input transistors. in this case, the leakage current on the analog inputs is low if the analog input voltages are kept between -1v and +1v. if mclk is not applied when in reset mode, the leakage can be high if the analog inputs are below -0.6v, as referred to a gnd . 5.9 phase delay block the mcp3913 incorporates a phase delay generator which ensures that each pair of adcs (ch0/1, ch2/3, ch4/5) are converting the inputs with a fixed delay between them. the six adcs are synchronously sampling, but the averaging of modulator outputs is delayed so that the sinc filter outputs (thus the adc outputs) show a fixed phase delay, as determined by the phase0/1 register setting. the odd channels (ch1,3,5) are the reference channels for the phase delays of each pair, they set the time reference. typically, these channels can be the voltage channels for a polyphase energy metering application. these odd channels are synchronous at all times, so they are becoming ready, and output a data ready pulse, at the same time. the even channels (ch0/2/4) are delayed, compared to the time reference (ch1/3/5), by a fixed amount of time defined for each pair channel in the phase0/1 registers. por state power-up normal por state biases are unsettled. conversions started here may not be accurate biases are settled. conversions started here are accurate. analog biases settling time sinc filter settling time voltage (av dd , dv dd ) time por threshold up (2.0v typical) (1.8v typical) t por operation any data-read pulse occurring during this time can yield inaccurate output data. it is recommended to discard them.
? 2013 microchip technology inc. ds20005227a-page 37 mcp3913 the two phase0/1 registers are split into three 12-bit banks that represent the delay between each pair of channels. the equivalence is defined in table 5-8 . each phase value (phasea/b/c) represents the delay of the even channel with respect to the associated odd channel with an 11-bit plus sign, msb-first two's complement code. this code indicates how many dmclk periods there are between each channel in the pair. (see equation 5-5 ). since the odd channels are the time reference, when phasex<11:0> is positive, the even channel of the pair is lagging and the odd channel is leading. when phasex<11:0> is negative, the even channel of the pair is leading and the odd channel is lagging. equation 5-5: the timing resolution of the phase delay is 1/dmclk or 1 s in the default configuration with mclk = 4 mhz. given the definition of dmclk, the phase delay is affected by a change in the prescaler settings (pre<1:0>) and the mclk frequency. the data ready signals are affected by the phase delay settings. typically, the time difference between the data ready pulses of odd and even channels is equal to the associated phase delay setting. each adc conversion start and, therefore, each data ready pulse is delayed by a timing of osr/2 x dmclk periods (equal to half a drclk period). this timing allows for the odd channel?s data ready signals to be located at a fixed time reference (osr/2 x dmclk periods from the reset), while the even channel can be leading or lagging around this time reference with the corresponding phasex<11:0> delay value. 5.9.1 phase delay limits the limits of the phase delays are determined by the osr settings: the phase delays can only go from -osr/2 to +osr/2-1 dmclk periods. if larger delays between the two channels are needed, they can be implemented externally to the chip with an mcu. a fifo in the mcu can save incoming data from the leading channel for a number n of drclk clocks. in this case, drclk would represent the coarse timing resolution, and dmclk the fine timing resolution. the total delay will then be equal to: equation 5-6: the phase delay registers can be programmed once with the osr = 4096 setting, and will adjust the osr automatically afterwards without the need to change the value of the phase registers. ? osr = 4096 : the delay can go from -2048 to +2047. phasex<11> is the sign bit. phasex<10> is the msb and phasex<0> the lsb. ? osr = 2048 : the delay can go from -1024 to +1023. phasex<10> is the sign bit. phasex<9> is the msb and phasex<0> the lsb. ? osr = 1024 : the delay can go from -512 to +511. phasex<9> is the sign bit. phasex<8> is the msb and phasex<0> the lsb. ?osr = 512 : the delay can go from -256 to +255 phasex<8> is the sign bit. phasex<7> is the msb and phasex<0> the lsb. ? osr = 256 : the delay can go from -128 to +127. phasex<7> is the sign bit. phasex<6> is the msb and phasex<0> the lsb. ? osr = 128: the delay can go from -64 to +63. phasex<6> is the sign bit. phasex<5> is the msb and phasex<0> the lsb. ? osr = 64: the delay can go from -32 to +31. phasex<5> is the sign bit. phasex<4> is the msb and phasex<0> the lsb. ? osr = 32: the delay can go from -16 to +15. phasex<4> is the sign bit. phasex<3> is the msb and phasex<0> the lsb. table 5-8: phase delays equivalence pair of channels phase bank register map position ch1/ch0 phasea<11:0> phase1<11:0> ch3/ch2 phaseb<11:0> phase1<23:12> ch5/ch4 phasec<11:0> phase0<11:0> note: for a detailed explanation of the data ready pin (dr ) with phase delay, see figure 5.11 . total delay phasex<11:0> decimal code dmclk ----------------------------------------------------------------------------------- = where: x = a/b/c note: rewriting the phase registers with the same value automatically resets and restarts all adcs. total delay = n/drclk + phase/dmclk
mcp3913 ds20005227a-page 38 ? 2013 microchip technology inc. 5.10 data ready link there are two modes defined with the dr_link bit in the statuscom register that control the data ready pulses. the position of the data ready pulses varies with respect to this mode, to the osr<2:0> and to the phase0/1 register settings. figure 5.11 represents the behavior of the data ready pin with the two dr_link configurations ? dr_link = 0 : data ready pulses from all enabled channels are output on the dr pin. ? dr_link = 1 (recommended and default mode): only the data ready pulses from the most lagging adc between all the active adcs are present on the dr pin. the lagging adc data ready position depends on the phase0/1 registers, the pre<1:0> and the osr<2:0> settings. in this mode, the active adcs are linked together, so their data is latched together when the lagging adc output is ready. for power metering applications, dr_link = 1 is recommended (default mode); it allows the host mcu to gather all channels synchronously within a unique interrupt pulse and it ensures that all channels have been latched at the same time, so that no data corruption is happening. 5.11 data ready status bits in addition to the data ready pin indicator, the mcp3913 device includes a separate data-ready status bit for each channel. each adc channel chn is associated to the corresponding drstatus that can be read at all times in the statuscom register. these status bits can be used to synchronize the data retrieval, in case the dr pin is not connected (see section 6.8 ?adc channels latching and synchronization? ). the drstatus<5:0> bits are not writable; writing on them has no effect. they have a default value of ' 1 ', which indicates that the data of the corresponding adc is not ready. this means that the adc output register has not been updated since the last reading (or since the last reset). the drstatus bits take the ' 0 ' state, once the adc channel register is updated (which hap- pens at a drclk rate). a simple read of the status- com register clears all the drstatus bits to their default value (' 1 '). in the case of dr_link = 1 , the drstatus<5:0> bits are all updated synchronously with the most lagging channel, at the same time the dr pulse is generated. in case of dr_link = 0 , each drstatus bit is updated independently and synchronously with its corresponding channel. 5.12 crystal oscillator the mcp3913 includes a pierce-type crystal oscillator with very high stability and ensures very low tempco and jitter for the clock generation. this oscillator can handle crystal frequencies up to 20 mhz, provided proper load capacitances and quartz quality factors are used. the crystal oscillator is enabled when clkext = 0 in the config1 register. for a proper start-up, the load capacitors of the crystal should be connected between osc1 and d gnd and between osc2 and d gnd . they should also respect equation 5-7 . equation 5-7: when clkext = 1 , the crystal oscillator is bypassed by a digital buffer, to allow direct clock input for an external clock (see figure 4-1 ). in this case, the osc2 pin is pulled down internally to d gnd and should be connected to d gnd externally for better emi/emc immunity. table 5-9: phase values with mclk = 4 mhz, osr = 4096, pre<1:0> = 00 phasex<11:0> for the channel pair ch hex delay (ch relative to ch) 011111111111 0x7ff + 2047 s 011111111110 0x7fe + 2046 s 000000000001 0x001 + 1 s 000000000000 0x000 0 s 111111111111 0xfff - 1 s 100000000001 0x801 - 2047 s 100000000000 0x800 -2048 s r m 1.6 10 6 ? 1 fc ? load ------------------------ ?? ?? ? 2 < where: f = crystal frequency in mhz c load = load capacitance in pf including parasitics from the pcb r m = motional resistance in ohms of the quartz
? 2013 microchip technology inc. ds20005227a-page 39 mcp3913 figure 5-8: dr_link configurations. the external clock should not be higher than 20 mhz before prescaling (mclk < 20 mhz) for proper operation. 5.13 digital system offset and gain calibration registers the mcp3913 incorporates two sets of additional registers per channel to perform system digital offset and gain error calibration. each channel has its own set of associated registers that will modify the output result of the channel, if calibration is enabled. the gain and offset calibrations can be enabled or disabled through two config0 bits (en_offcal and en_gaincal). these two bits enable or disable system calibration on all channels at the same time. when both calibrations are enabled, the output of the adc is modified per equation 5.13.1 . 5.13.1 digital offset error calibration the offcal_chn registers are 23-bit plus two?s complement registers, and whose lsb value is the same as the channel adc data. these registers are added bit by bit to the adc output codes, if the en_offcal bit is enabled. enabling the en_offcal bit does not create a pipeline delay; the offset addition is instantaneous. for low osr values, only the significant digits are added to the output (up to the resolution of the adc; for example, at osr = 32, only the 17 first bits are added). the offset is not added when the corresponding channel is in reset or shutdown mode. the corresponding input voltage offset value added by each lsb in these 24-bit registers is: this registers are a ?don't care? if en_offcal = 0 (offset calibration disabled), but their value is not cleared by the en_offcal bit. dr one drclk period (osr times dmclk periods) dr_link=1 only the most lagging data ready is present all channels are latched together at dr falling edge dr dr_link=0 all channels data ready are present data ready pulse from odd channels (reference) phase=0 data ready pulse from odd channels (reference) phase=0 phase<0 phase>0 data ready pulse from most lagging adc channel data ready pulse from most lagging adc channel note: in addition to the conditions defining the maximum mclk input frequency range, the amclk frequency should be maintained inferior to the maximum limits defined in tab le 5 -2 , to ensure the accuracy of the adcs. if these limits are exceeded, it is recommended to choose either a larger osr, or a larger prescaler value so that amclk can respect these limits. offset(1lsb) = v ref /(pga_chn x 1.5 x 8388608)
mcp3913 ds20005227a-page 40 ? 2013 microchip technology inc. 5.13.2 digital gain error calibration these registers are signed 24-bit msb ? first registers coded with a range of -1x to +(1 - 2 -23 )x (from 0x800000 to 0x7fffff). the gain calibration adds 1x to this register and multiplies it to the output code of the channel bit by bit, after offset calibration. the range of the gain calibration is thus from 0x to 1.9999999x (from 0x800000 to 0x7fffff). the lsb corresponds to a2 -23 increment in the multiplier. enabling en_gaincal creates a pipeline delay of 24 dmclk periods on all channels. all data ready pulses are delayed by 24 dmclk periods, starting from data ready following the command enabling en_gaincal bit. the gain calibration is effective on the next data ready following the command enabling en_gaincal bit. the digital gain calibration does not function when the corresponding channel is in reset or shutdown mode. the gain multiplier value for an lsb in these 24-bit registers is: this register is a ?don't care? if en_gaincal = 0 (offset calibration disabled), but its value is not cleared by the en_gaincal bit. the output data on each channel is kept to either 7fff or 8000 (16-bit mode) or 7fffff or 800000 (24-bit mode) if the output results are out of bounds after all calibrations are performed. equation 5-8: digital offset and gain error calibration registers calculations gain (1lsb) = 1/8388608 data_chn post cal ? ?? data_chn pre cal ? ?? offcal_chn + ?? 1 gaincal_chn + ?? ? =
? 2013 microchip technology inc. ds20005227a-page 41 mcp3913 6.0 spi serial interface description 6.1 overview the mcp3913 device includes a four-wire (cs , sck, sdi, sdo) digital serial interface that is compatible with spi modes 0,0 and 1,1. data is clocked out of the mcp3913 on the falling edge of sck, and data is clocked into the mcp3913 on the rising edge of sck. in these modes, the sck clock can idle either high (1,1) or low (0,0). the digital interface is asynchronous with the mclk clock that controls the adc sampling and digital filtering. all the digital input pins are schmitt- triggered to avoid system noise perturbations on the communications. each spi communication starts with a cs falling edge and stops with the cs rising edge. each spi communi- cation is independent. when cs is logic high, sdo is in high-impedance, transitions on sck, and sdi have no effect. changing from an spi mode 1,1 to an spi mode 0,0 and vice versa is possible and can be done while the cs pin is logic high. any cs rising edge clears the communication and resets the spi digital interface. additional control pins (reset , dr ) are also provided on separate pins for advanced communication features. the data ready pin (dr ) outputs pulses when a new adc channel data is available for reading, which can be used as an interrupt for an mcu. the master reset pin (reset ) acts like a hard reset and can reset the part to its default power-up configuration (equivalent to a por state). the mcp3913 interface has a simple command structure. every command is either a read command from a register, or a write command to a register. the mcp3913 device includes 32 registers defined in the table 8-1 register map. the first byte (8-bit wide) transmitted is always the control byte that defines the address of the register and the type of command (read or write). it is followed by the register itself, which can be in a 16-, 24- or 32-bit format, depending on the multiple format settings defined in the statuscom register. the mcp3913 is compatible with multiple formats that help reduce overhead in the data handling for most mcus and processors available on the market (8-/16- or 32-bit mcus) and improve mcu-code compaction and efficiency. the mcp3913 digital interface is capable of handling various continuous read and write modes, which allow it to perform adc data streaming or full register map writing within only one communication (and therefore with only one unique control byte). the internal registers can be grouped together with various configurations through the read<1:0> and write bits. the internal address counter of the serial interface can be automatically incremented with no additional control byte needed, in order to loop through the various groups of registers within the register map. the groups are defined in tab l e 8 - 2 . the mcp3913 device also includes advanced security features to secure each communication, to avoid unwanted write commands being processed to change the desired configuration, and to alert the user in case of a change in the desired configuration. each spi read communication can be secured through a selectable crc-16 checksum provided on the sdo pin at the end of every communication sequence. this crc-16 computation is compatible with the dma crc hardware of the pic24 and pic32 mcus, resulting in no additional overhead for the added security. for securing the entire configuration of the device, the mcp3913 includes an 8-bit lock code (lock<7:0>), which blocks all write commands to the full register map if the value of the lock<7:0> is not equal to a defined password (0xa5). the user can protect its configuration by changing the lock<7:0> value to 0x00 after the full programming, so that any unwanted write command will not result in a change to the configuration (because lock<7:0> is different than the password 0xa5). an additional crc-16 calculation is also running con- tinuously in the background to ensure the integrity of the full register map. all writable registers of the regis- ter map (except the mod register) are processed through a crc-16 calculation engine and give a crc- 16 checksum that depends on the configuration. this checksum is readable on the lock/crc register and updated at all times. if a change in this checksum hap- pens, a selectable interrupt can give a flag on the dr pin (dr pin becomes logic low) to warn the user that the configuration is corrupted. 6.2 control byte the control byte of the mcp3913 contains two device address bits (a<6:5>), five register address bits (a<4:0>) and a read/write bit (r/w ). the first byte transmitted to the mcp3913 in any communication is always the control byte. during the control byte trans- fer, the sdo pin is always in a high-impedance state. the mcp3913 interface is device addressable (through a<6:5>), so that multiple chips can be present on the same spi bus with no data bus contention, even if they use the same cs pin, they use a provided half- duplex spi interface, with a different address identifier. this functionality enables, for example, a serial eeprom like 24aaxxx/24lcxxx or 24fcxxx and the mcp3913 to share all the spi pins and consume less i/o pins in the application processor, since all these serial eeprom circuits use a<6:5> = 00 . . figure 6-1: control byte. a<6> a<5> a<4> a<3> a<2> a<1> a<0> r/w device address register address read/ write
mcp3913 ds20005227a-page 42 ? 2013 microchip technology inc. the default device address bits are a<6:5> = 01 (con- tact the microchip factory for other available device address bits). for more information, see the product identification system section. the register map is defined in tab l e 8 - 1 . 6.3 reading from the device the first register read on the sdo pin is the one defined by the address (a<4:0>) given in the control byte. after this first register is fully transmitted, if the cs pin is maintained logic low, the communication continues without an additional control byte and the sdo pin transmits another register with the address automatically incremented or not, depending on the read<1:0> bit settings. four different read mode configurations can be defined through the read<1:0> bits in the statuscom register for the address increment (see section 6.5, continuous communications, looping on register sets and ta b l e 8 - 2 ). the data on sdo is clocked out of the mcp3913 on the falling edge of sck. the reading format for each register is defined on section 6.5 ?continuous communications, looping on register sets? . figure 6-2: read on a single register with 24-bit format (width_data<1:0> = 01 , spi mode 1,1). figure 6-3: read on a single register with 24-bit format (width_data<1:0> = 01 , spi mode 0,0). read communication (spi mode 1,1) dont care dont care a<6> data<22> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> cs data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<0> hi-z hi-z device latches sdi on rising edge device latches sdo on falling edge r/w data<23> read communication (spi mode 0,0) dont care dont care dont care a<6> data<22> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> r/w cs data<23> data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<0> hi-z hi-z device latches sdi on rising edge device latches sdo on falling edge
? 2013 microchip technology inc. ds20005227a-page 43 mcp3913 6.4 writing to the device the first register written from the sdi pin to the device is the one defined by the address (a<4:0>) given in the control byte. after this first register is fully transmitted, if the cs pin is maintained logic low, the communication continues without an additional control byte and the sdi pin transmits another register with the address automatically incremented or not, depending on the write bit setting. two different write-mode configurations for the address increment can be defined through the write bit in the statuscom register (see section 6.5, con- tinuous communications, looping on register sets and tab le 8 -2 ). the sdo pin stays in a high- impedance state during a write communication. the data on sdi is clocked into the mcp3913 on the rising edge of sck. the writing format for each register is defined in section 6.5, continuous communica- tions, looping on register sets . a write on an unde- fined or non-writable address, such as the adc channel?s register addresses, will have no effect and also will not increment the address counter. figure 6-4: write to a single register with 24-bit format (spi mode 1,1). figure 6-5: write to a single register with 24-bit format (spi mode 0,0). write communication (spi mode 1,1) dont care a<6> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> cs hi-z device latches sdi on rising edge r/w data<22> data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<23> dont care data<0> write communication (spi mode 0,0) dont care a<6> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> r/w cs hi-z device latches sdi on rising edge dont care data<22> data<23> data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<0>
mcp3913 ds20005227a-page 44 ? 2013 microchip technology inc. 6.5 continuous communications, looping on register sets the mcp3913 digital interface can process communi- cations in continuous mode, without having to enter an spi command between each read or write to a register. this feature allows the user to reduce communication overhead to the strict minimum, which diminishes emi emissions and reduces switching noise in the system. the registers can be grouped into multiple sets for con- tinuous communications. the grouping of the registers in the different sets is defined by the read<1:0> and write bits that control the internal spi communication address pointer. for a graphical representation of the register map sets in function of the read<1:0> and write bits, please see tab le 8 -2 . in the case of a continuous communication, there is only one control byte on sdi to start the communication after a cs pin falling edge. the part stays within the same communication loop until the cs pin returns logic high. the spi internal register address pointer starts by transmitting/receiving the address defined in the con- trol byte. after this first transmission/reception, the spi internal register address pointer automatically incre- ments to the next available address in the register set for each transmission/reception. when it reaches the last address of the set, the communication sequence is finished. the address pointer automatically loops back to the first address of the defined set and restarts a new sequence with auto-increment (see tab l e 6 - 6 ). this internal address pointer automatic selection allows the following functionality: ? read one adc channel data, pairs of adc channels or all adc channels continuously ? continuously read the entire register map ? continuously read or write each separate register ? continuously read or write all configuration registers figure 6-6: continuous communication sequences. dont care continuous read communication (24-bit format) dont care sck sdi sdo cs hi-z 8x control byte 24x addr ... addr + n starts read sequence at address addr complete read sequence addr + 1 24x ... 24x 24x addr ... complete read sequence addr + 1 24x ... 24x addr + n continuous write communication (24-bit format) dont care sck sdi sdo cs hi-z 8x control byte 24x addr ... addr + n starts write sequence at address addr complete write sequence addr + 1 24x ... 24x 24x addr ... complete write sequence addr + 1 24x ... 24x addr + n addr addr + 1 ... addr + n complete read sequence roll-over address set addr addr + 1 ... addr + n complete write sequence roll-over address set
? 2013 microchip technology inc. ds20005227a-page 45 mcp3913 6.5.1 continuous read the statuscom register contains the read communication loop settings for the internal register address pointer (read<1:0> bits). for continuous read modes, the address selection can take the following four values: any sdi data coming after the control byte is not considered during a continuous read communication. the following figures represent a typical, continuous read communication on all six adc channels in types mode with the default settings (dr_link = 1 , read<1:0> = 10 , width_data<1:0> = 01 ) in case of the spi mode 0,0 ( figure 6-7 ) and spi mode 1,1 ( figure 6-8 ). in spi mode (1,1), the sdo pin stays in the last state (lsb of previous data) after a complete reading which also allows seamless continuous read mode (see figure 6-8 ). figure 6-7: typical continuous read communication (width_data<1:0> = 01 , spi mode 0,0). figure 6-8: typical continuous read communication (width_data<1:0> = 01 , spi mode 1,1). table 6-1: address selection in continuous read read<1:0> register address set grouping for continuous read communications 00 static (no incrementation) 01 groups 10 types (default) 11 full register map note: for continuous reading of adc data in spi mode 0,0 (see figure 6-7 ), once the data has been completely read after a data ready, the sdo pin will take the msb value of the previous data at the end of the reading (falling edge of the last sck clock). if sck stays idle at logic low (by definition of mode 0,0), the sdo pin will be updated at the falling edge of the next data ready pulse (synchronously with the dr pin falling edge with an output timing of t dodr ) with the new msb of the data corresponding to the data ready pulse. this mechanism allows the mcp3913 to continuously read adc data outputs seamlessly, even in spi mode (0,0). dont care sck sdi sdo cs hi-z 8x 0x01 24x data_ch0 ... data_ch  starts read sequence at address 00000 complete read sequence on adc outputs channels 0 to  data_ch1 24x ... 24x 24x data_ch0 ... data_ch1 24x ... 24x data_ch  dont care dr data_ch0<23> new data data_ch0<23> old data complete read sequence on new adc outputs channels 0 to  dont care sck sdi sdo cs hi-z 8x 0x01 24x data_ch0 ... data_ch  starts read sequence at address 00000 complete read sequence on adc outputs channels 0 to  data_ch1 24x ... 24x 24x data_ch0 ... data_ch1 24x ... 24x data_ch  dont care dr complete read sequence on new adc outputs, channels 0 to  stays at data_ch  <0>
mcp3913 ds20005227a-page 46 ? 2013 microchip technology inc. 6.5.2 continuous write the statuscom register contains the write loop settings for the internal register address pointer (write). for a continuous write, the address selection can take the following two values: sdo is always in a high-impedance state during a continuous write communication. writing to a non-writable address (such as addresses 0x00 to 0x07) has no effect and does not increment the address pointer. in this case, the user needs to stop the communication and restart a communication with a control byte pointing to a writable address (0x08 to 0x1f). 6.6 situations that reset and restart active adcs immediately after the following actions, the active adcs (the ones not in soft reset or shutdown modes) are reset and automatically restarted in order to provide proper operation: 1. change in phase0/1 registers. 2. overwrite of the same phase0/1 register value. 3. change in the osr<2:0> settings. 4. change in the pre<1:0> settings. 5. change in the clkext setting. 6. change in the vrefext setting. after these temporary resets, the adcs go back to normal operation, with no need for an additional command. each adc data output register is cleared during this process. the phase0/1 registers can be used to serially soft reset the adcs, without using the reset<5:0> bits in the configuration register, if the same value is written in one of the phase0/1 registers. 6.7 data ready pin (dr ) to communicate when channel data is ready for trans- mission, the data ready signal is available on the data ready pin (dr ) at the end of a channel conversion. the data ready pin outputs an active-low pulse with a pulse width equal to half a dmclk clock period. after a data ready pulse falling edge has occurred, the adc output data is updated within the t dodr timing and can then be read through spi communication. the first data ready pulse after a hard or a soft reset is located after the settling time of the sinc filter (see table 5-3 ) plus the phase delay of the corresponding channel (see section 5.9 ?phase delay block? ). each subsequent pulse is then periodic, and the period is equal to a drclk clock period (see equation 4-3 and figure 1-3 ). the data ready pulse is always syn- chronous with the internal drclk clock. the dr pin can be used as an interrupt pin when con- nected to an mcu or dsp, which will synchronize the readings of the adc data outputs. when not active-low, this pin can either be in high-impedance (when dr_hiz = 0 ) or in a defined logic high state (when dr_hiz = 1 ). this is controlled through the status- com register. this allows multiple devices to share the same data ready pin (with a pull-up resistor connected between dr and dv dd ). if only the mcp3913 device is connected on the interrupt bus, the dr pin does not require a pull-up resistor, and therefore it is recom- mended to use dr_hiz = 1 configuration for such applications. the cs pin has no effect over the dr pin, which means even if the cs pin is logic high, the data ready pulses coming from the active adc channels will still be provided; the dr pin behavior is independent from the spi interface. while the reset pin is logic low, the dr pin is not active. the dr pin is latched in the logic low state when the interrupt flag on the crcreg is present to signal that the desired registers configuration has been corrupted (see section 6.11 ?detecting configuration change through crc-16 checksum on register map and its associated interrupt flag? ). table 6-2: address selection in continuous write write register address set grouping for continuous read communications 0 static (no incrementation) 1 types (default) note: when lock<7:0> is different than 0xa5, all the addresses, except 0x1f, become non-writable (see section 4.13 ?mcp3913 delta-sigma architecture? )
? 2013 microchip technology inc. ds20005227a-page 47 mcp3913 6.8 adc channels latching and synchronization the adc channel?s data output registers (addresses 0x00 to 0x05) have a double buffer output structure. the two sets of latches in series are triggered by the data ready signal and an internal signal indicating the beginning of a read communication sequence (read start). the first set of latches holds each adc channel data output register when the data is ready, and latches all active outputs together when dr_link = 1 . this behavior is synchronous with the dmclk clock. the second set of latches ensures that when reading starts on an adc output, the corresponding data is latched, so that no data corruption can occur within a read. this behavior is synchronous with the sck clock. if an adc read has started, in order to read the follow- ing adc output, the current reading needs to be fully completed (all bits must be read on the sdo pin from the adc output data registers). since the double output buffer structure is triggered with two events that depend on two asynchronous clocks (data ready with dmclk and read start with sck), implement one of the three following methods on the mcu or processor, in order to synchronize the reading of the channels: 1. use the data ready pin pulses as an interrupt : once a falling edge occurs on the dr pin, the data is available for reading on the adc output registers after the t dodr timing. if this timing is not respected, data corruption can occur. 2. use a timer clocked with mclk as a synchronization event: since the data ready is synchronous with dmclk, the user can calculate the position of the data ready depending on the phase0/1, the osr<2:0> and the pre<1:0> settings for each channel. again, the t dodr timing needs to be added to this calculation, to avoid data corruption. 3. poll the drstatus<5:0> bits in the statuscom register: this method consists of continuously reading the statuscom register and waiting for the drstatus bits to be equal to ' 0 '. when this event happens, the user can start a new communication to read the desired adc data. in this case, no additional timing is required. the first method is the preferred one, as it can be used without adding additional mcu code space, but requires connecting the dr pin to an i/o pin of the mcu. the last two methods require more mcu code space and execution time, but they allow synchronized reading of the channels without connecting the dr pin, which saves one i/o pin on the mcu. 6.9 securing read communications through crc-16 checksum since power/energy metering systems can generate or receive large emi/emc interferences and large transient spikes, it is helpful to secure spi communications as much as possible to maintain data integrity and desired configurations during the lifetime of the application. the communication data on the sdo pin can be secured through the insertion of a cyclic redundancy check (crc) checksum at the end of each continuous reading sequence. the crc checksum on communications can be enabled or disabled through the en_crccom bit in the statuscom register. the crc message ensures the integrity of the read sequence bits transmitted on the sdo pin, and the crc checksum is inserted in between each read sequence (see figure 6-9 ).
mcp3913 ds20005227a-page 48 ? 2013 microchip technology inc. figure 6-9: continuous read sequences with and without crc checksum enabled. the crc checksum in the mcp3913 device uses the 16-bit crc-16 ansi polynomial as defined in the ieee 802.3 standard: x 16 +x 15 +x 2 +1 . this polynomial can also be noted as 0x8005. crc-16 detects all single and double-bit errors, all errors with an odd number of bits, all burst errors of length 16 or less, and most errors for longer bursts. this allows an excellent coverage of the spi communication errors that can happen in the system, and heavily reduces the risk of a miscommunication, even under noisy environments. the crc-16 format displayed on the sdo pin depends on the width_crc bit in the statuscom register (see figure 6-10 ). it can be either 16-bit or 32-bit format, to be compatible with both 16-bit and 32-bit mcus. the crccom<15:0> bits calculated by the mcp3913 device are not dependent on the format (the device always calculates only a 16-bit crc checksum). if a 32-bit mcu is used in the application, it is recommended to use 32-bit formats (width_crc = 1 ) only. figure 6-10: crc checksum format. the crc calculation computed by the mcp3913 device is fully compatible with crc hardware contained in the direct memory access (dma) of the pic24 and pic32 mcu product lines. the crc message that should be considered in the pic ? device dma is the concatenation of the read sequence and its associated checksum. when the dma crc hardware computes this extended message, the resulted checksum should be 0x0000. any other result indicates that a miscommunication has happened and that the current communication sequence should be stopped and restarted. continuous read communication without crc checksum (en_crccom=0) dont care sck sdi sdo cs hi-z 8x control byte 16x/24x/32x depending on data format addr ... addr + n starts read sequence at address addr complete read sequence addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format 16x/24x/32x depending on data format addr ... complete read sequence addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format addr + n dont care addr addr + 1 ... addr + n complete read sequence roll-over address set continuous read communication with crc checksum (en_crccom=1) dont care sck sdi sdo cs hi-z 8x control byte 16x/24x/32x depending on data format addr ... addr + n starts read sequence at address addr complete read sequence = message for crc calculation addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format 16x/24x/32x depending on data format addr ... new message addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format addr + n dont care addr addr + 1 ... addr + n complete read sequence roll-over address set crc checksum crc checksum 16x or 32x depending on crc format 16x or 32x depending on crc format crc checksum (not part of register map) new checksum checksum * n depends on the read<1:0> width_crc = 0 16-bit format crccom <15:8> crccom <7:0> 15 0 width_crc = 1 32-bit format crccom <15:8> crccom <7:0> 31 0 0x00 0x00 note: the crc will be generated only at the end of the selected address set, before the rollover of the address pointer occurs (see figure 6-9 ).
? 2013 microchip technology inc. ds20005227a-page 49 mcp3913 6.10 locking/unlocking register map write access the mcp3913 digital interface includes an advanced security feature that permits locking or unlocking the register map write access. this feature prevents the miscommunications that can corrupt the desired configuration of the device, especially an spi read becoming an spi write because of the noisy environment. the last register address of the register map (0x1f: lock/crc) contains the lock<7:0> bits. if these bits are equal to the password value (which is equal to the default value of 0xa5), the register map write access is not locked. any write can take place and the communications are not protected. when the lock<7:0> bits are different than 0xa5, the register map write access is locked. the register map, and therefore the full device configuration, is write- protected. any write to an address other than 0x1f will yield no result. all the register addresses, except the address 0x1f, become read-only. in this case, if the user wants to change the configuration, the lock<7:0> bits have to be reprogrammed back to 0xa5 before sending the desired write command. the lock<7:0> bits are located in the last register, so the user can program the whole register map, starting from 0x09 to 0x1e within one continuous write sequence, and then lock the configuration at the end of the sequence by writing all zeros, in the address 0x1f for example. 6.11 detecting configuration change through crc-16 checksum on register map and its associated interrupt flag in order to prevent internal corruption of the register and to provide additional security on the register map configuration, the mcp3913 device includes an automatic and continuous crc checksum calculation on the full register map configuration bits. this calculation is not the same as the communication crc checksum described in section 6.9 ?securing read communications through crc-16 checksum? . this calculation takes the full register map as the crc message and outputs a checksum on the crcreg<15:0> bits located in the lock/crc register (address 0x1f). since this feature is intended for protecting the configuration of the device, this calculation is run continuously only when the register map is locked (lock<7:0> different than 0xa5, see section 6.10, locking/unlocking register map write access ). if the register map is unlocked, the crcreg<15:0> bits are cleared and no crc is calculated. the calculation is fully completed in 21 dmclk periods and refreshed every 21 dmclk periods continuously. the crcreg<15:0> bits are reset when a por or a hard reset occurs. all the bits contained in the registers from addresses 0x09 ? 0x1f are processed by the crc engine to give the crcreg<15:0>. the drstatus<5:0> bits are set to ' 1 ' (default) and the crcreg<15:0> bits are set to ' 0 ' (default) for this calculation engine, as they could vary during the calculation. an interrupt flag can be enabled through the en_int bit in the statuscom register and provided on the dr pin when the configuration has changed without a write command being processed. this interrupt is a logic low state. this interrupt is cleared when the register map is unlocked (since the crc calculation is not processed). at power-up, the interrupt is not present and the register map is unlocked. as soon as the user finishes writing its configuration, the user needs to lock the register map (writing 0x00 for example in the lock bits) to be able to use the interrupt flag. the crcreg<15:0> bits will be calculated for the first time in 21 dmclk periods. this first value will then be the reference checksum value and will be latched internally, until a hard reset, a por, or an unlocking of the register map happens. the crcreg<15:0> will then be calculated continuously and checked against the reference checksum. if the crcreg<15:0> is different than the reference, the interrupt sends a flag by setting the dr pin to a logic low state until it is cleared.
mcp3913 ds20005227a-page 50 ? 2013 microchip technology inc. notes:
? 2013 microchip technology inc. ds20005227a-page 51 mcp3913 7.0 basic application recommendations 7.1 typical application examples for power strip power metering applications, such as the mcp3914 application referenced in figure 7-1 , it can be used as a starting point for mcp3913 applications.the most common solution is to use one channel for voltage measurement and the rest of the channels for current measurement. since all current lines are at the same potential, shunts can be used as current sensors, even if they do not provide any galvanic isolation. since all channels are identical in the mcp3913, any channel can be chosen as the voltage channel (prefer- ably ch0 or ch5 since they are on the edges and can lead to a cleaner layout). figure 7-1: mcp3914 power strip application example schematic (may be used as starting point for mcp3913 applications). for polyphase metering applications, such as three- phase meters, it is recommended to use a current sensor that provides galvanic isolations: current transformers, rogowski coils, hall sensors, etc. mcp3914 40ld uqfn
mcp3913 ds20005227a-page 52 ? 2013 microchip technology inc. 7.2 power supply design and bypassing the mcp3913 device was designed to measure posi- tive and negative voltages that might be generated by a current sensing device. this current sensing device, with a common mode voltage close to 0v, is referred to as a gnd , which is a shunt or current transformer (ct) with burden resistors attached to ground. the high per- formance and good flexibility that characterize this adc enables them to be used in other applications, as long as the absolute voltage on each pin, referred to a gnd , stays in the -1v to +1v interval. in any system, the analog ics (such as references or operational amplifiers) are always connected to the analog ground plane. the mcp3913 should also be considered as a sensitive analog component, and con- nected to the analog ground plane. the adc features two pairs of pins: a gnd , av dd , d gnd and dv dd . for best performance, it is recommended to keep the two pairs connected to two different networks ( figure 7-2 ). this way, the design will feature two ground traces and two power supplies ( figure 7-3 ). this means the analog circuitry (including mcp3913) and the digital circuitry (mcu) should have separate power supplies and return paths to the external ground reference, as described in figure 7-2 . an example of a typical power supply circuit, with different lines for ana- log and digital power, is shown in figure 7-3 . a possible split example is shown in figure 7-4 , where the ground star connection can be done at the bottom of the device with the exposed pad. the split here between analog and digital can be done under the device, and av dd and dv dd can be connected together with lines coming under the ground plane. another possibility, sometimes easier to implement in terms of pcb layout, is to consider the mcp3913 as an analog component and, therefore, connect both av dd and dv dd together, and a gnd and d gnd together, with a star connection. in this scheme, the decoupling capacitors may be larger, due to the ripple on the digital power supply (caused by the digital filters and the spi interface of the mcp3913) now causing glitches on the analog power supply. figure 7-2: all analog and digital return paths need to stay separate with proper bypass capacitors. figure 7-3: power supply with separate lines for analog and digital sections. note the "net tie" object nt2 that represents the start ground connection. v a v d mcu ?star? point i a i d i d i a av dd dv dd a gnd d gnd d - = a - = 0.1 f mcp39xx 0.1 f c
? 2013 microchip technology inc. ds20005227a-page 53 mcp3913 figure 7-4: separation of analog and digital circuits on layout. figure 7-5 shows a more detailed example with a direct connection to a high-voltage line (e.g., a two-wire 120v or 220v system). a current-sensing shunt is used for current measurement on the high side/line side that also supplies the ground for the system. this is necessary as the shunt is directly connected to the channel input pins of the mcp3913. to reduce sensitivity to external influences, such as emi, these two wires should form a twisted pair, as noted in figure 7-5 . the power supply and mcu are separated on the right side of the pcb, surrounded by the digital ground plane. the mcp3913 is kept on the left side, surrounded by the analog ground plane. there are two separate power supplies going to the digital section of the system and the analog section, including the mcp3913. with this placement, there are two separate current supply paths and current return paths, i a and i d . figure 7-5: connection diagram. the ferrite bead between the digital and analog ground planes helps keep high-frequency noise from entering the device. this ferrite bead is recommended to be low resistance; most often it is a tht component. ferrite beads are typically placed on the shunt inputs and into the power supply circuit for additional protection. 7.3 spi interface digital crosstalk the mcp3913 incorporates a high-speed 20 mhz spi digital interface. this interface can induce a crosstalk, especially with the outer channels (ch0, for example), if it is running at its full speed without any precautions. the crosstalk is caused by the switching noise created by the digital spi signals (also called ground bouncing). this crosstalk would negatively impact the snr in this case. the noise is attenuated if a proper separation between the analog and digital power supplies is put in place (see section 7.2 ?power supply design and bypassing? ). in order to further remove the influence of the spi communication on measurement accuracy, it is recommended to add series resistors on the spi lines to reduce the current spikes caused by the digital switching noise (see figure 7-5 where these resistors have been implemented). the resistors also help to keep the level of electromagnetic emissions low. the measurement graphs provided in this mcp3913 data sheet have been performed with 100 ? series resistors connected on each spi i/o pin. measurement accuracy disturbances have not been observed even at the full speed of 20 mhz interfacing. the crosstalk performance is dependent on the package choice due to the difference in the pin arrangement (dual in-line or quad), and is improved in the uqfn-40 package. 7.4 sampling speed and bandwidth if adc power consumption is not a concern in the design, the boost settings can be increased for best performance so that the osr is always kept at the maximum settings to improve the sinad performance (see table 7-1 ). if the mcu cannot generate a clock fast enough, it is possible to tap the osc1/osc2 pins of the mcp3913 crystal oscillator directly to the crystal of the microcontroller. when the sampling frequency is enlarged, the phase resolution is improved, and with the osr increased, the phase compensation range can be kept in the same range as the default settings. mcu power supply circuitry line neutral shunt twisted pair i a i d i d i a ?star? point v a v d analog ground plane digital ground plane mcp3913 table 7-1: sampling speed vs. mclk and osr, adc prescale 1:1 mclk (mhz) boost<1:0> osr sampling speed (ksps) 16 11 1024 3.91 14 11 1024 3.42 12 11 1024 2.93 10 10 1024 2.44 8 10 512 3.91 6 01 512 2.93 4 01 256 3.91
mcp3913 ds20005227a-page 54 ? 2013 microchip technology inc. 7.5 differential inputs anti-aliasing filter due to the nature of the adcs used in the mcp3913 (oversampling converters), each differential input of the adc channels requires an anti-aliasing filter so that the oversampling frequency (dmclk) is largely attenuated and does not generate any disturbances on the adc accuracy. this anti-aliasing filter also needs to have a gain close to one in the signal bandwidth of interest. typically for 50/60 hz measurement and default set- tings (dmclk = 1 mhz), a simple rc filter with 1 k ? and 100 nf can be used. the anti-aliasing filter used for the measurement graphs is a first-order rc filter with 1 k ? and 15 nf. the typical schematic for connect- ing a current transformer to the adc is shown in figure 7-6 . if wires are involved, twisting them is also recommended. figure 7-6: first-order anti-aliasing filter for ct-based designs. the di/dt current sensors, such as rogowski coils, can be an alternative to current transformers. since these sensing elements are highly sensitive to high- frequency electromagnetic fields, using a second order anti-aliasing filter is recommended to increase the attenuation of potential perturbing rf signals. figure 7-7: second-order anti-aliasing filter for rogowski coil-based designs. the mcp3913 is highly recommended in applications using di/dt as current sensors because of the extremely low noise floor at low frequencies. in such applications, a low-pass filter (lpf) with a cut-off frequency much lower than the signal frequency (50-60 hz for metering) is used to compensate for the 90 degree shift and for the 20 db/decade attenuation induced by the di/dt sen- sor. because of this filter, the snr will be decreased, since the signal will attenuate by a few orders of mag- nitude, while the low-frequency noise will not be atten- uated. usually, a high-order high-pass filter (hpf) is used to attenuate the low-frequency noise in order to prevent a dramatic degradation of the snr, which can be very important in other parts. a high-order filter will also consume a significant portion of the computation power of the mcu. when using the mcp3913, such a high-order hpf is not required, since this part has a low noise floor at low frequencies. a first-order hpf is enough to achieve very good accuracy. 7.6 energy measurement error considerations the measurement error is a typical representation of the non-linearity of a pair of adcs (see section 4.0 ?terminology and formulas? for the definition of measurement error). the measurement error is dependent on the thd and on the noise floor of the adcs. improving the measurement error specification on the mcp3913 can be realized by increasing the osr (to get a better sinad and thd performance) and, to some extent, the boost settings (if the bandwidth of the measurements is too limited by the bandwidth of the amplifiers in the sigma-delta adcs). in most of the energy metering ac applications, high-pass filters are used to cancel the offset on each adc channel (current and voltage channels), and therefore a single-point calibration is necessary to calibrate the system for active energy measurement. this calibration is a system gain calibration, and the user can utilize the en_gaincal bit and the gaincal_chn registers to perform this digital calibration. after such calibration, typical measurement error curves like figure 2-7 can be generated by sweeping the current channel amplitude and measuring the energy at the outputs (the energy calculations here are being realized off-chip). the error is measured using a gain of 1x, as it is commonly used in most ct-based applications.
? 2013 microchip technology inc. ds20005227a-page 55 mcp3913 at low signal amplitude values (typically 1000:1 dynamic range and higher), the crosstalk between channels, mainly caused by the pcb, becomes a significant part of the perturbation as the measurement error increases. the 1-point measurement error curves in figure 2-5 have been performed with a full-scale sine wave on all the inputs that are not measured, which means that these channels induce a maximum amount of crosstalk on the measurement error curve. in order to avoid such behavior, a 2-point calibration can be put in place in the calculation section. this 2-point calibration can be a simple linear interpolation between two calibration points (one at high amplitudes, one at low amplitudes at each end of the dynamic range) and helps to significantly lower the effect of crosstalk between channels. a 2-point calibration is very effective in maintaining the measurement error close to zero on the whole dynamic range, since the non-linearity and distortion of the mcp3913 is very low. figure 2-6 shows the measurement error curves obtained with the same adc data taken for figure 2-5 , but where a 2-point calibration has been applied. the difference is significant only at the low end of the dynamic range, where all the perturbing factors are a bigger part of the adc output signals. these curves show extremely tight measurement error across the full dynamic range (here, typically 10,000:1), which is required in high-accuracy class meters.
mcp3913 ds20005227a-page 56 ? 2013 microchip technology inc. notes:
? 2013 microchip technology inc. ds20005227a-page 57 mcp3913 8.0 mcp3913 internal registers the addresses associated with the internal registers are listed in table 8-1 . this section also describes the registers in detail. all registers are 24-bit long registers, which can be addressed and read separately. the format of the data registers (0x00 to 0x05) can be changed with width_data<1:0> bits in the statuscom register. the read<1:0> and write bits define the groups and types of registers for continuous read/write communication or looping on address sets, as shown in tab l e 8 - 2 . table 8-1: mcp3913 register map address name bits r/w description 0x00 channel0 24 r channel 0 adc data <23:0>, msb first 0x01 channel1 24 r channel 1 adc data <23:0>, msb first 0x02 channel2 24 r channel 2 adc data <23:0>, msb first 0x03 channel3 24 r channel 3 adc data <23:0>, msb first 0x04 channel4 24 r channel 4 adc data <23:0>, msb first 0x05 channel5 24 r channel 5 adc data <23:0>, msb first 0x06 unused 24 u unused 0x07 unused 24 u unused 0x08 mod 24 r/w delta-sigma modulators output value 0x09 phase0 24 r/w phase delay configuration register - channel pairs 4/5 0x0a phase1 24 r/w phase delay configuration register - channel pairs 0/1 and 2/3 0x0b gain 24 r/w gain configuration register 0x0c statuscom 24 r/w status and communication register 0x0d config0 24 r/w configuration register 0x0e config1 24 r/w configuration register 0x0f offcal_ch0 24 r/w offset correction register - channel 0 0x10 gaincal_ch0 24 r/w gain correction register - channel 0 0x11 offcal_ch1 24 r/w offset correction register - channel 1 0x12 gaincal_ch1 24 r/w gain correction register - channel 1 0x13 offcal_ch2 24 r/w offset correction register - channel 2 0x14 gaincal_ch2 24 r/w gain correction register - channel 2 0x15 offcal_ch3 24 r/w offset correction register - channel 3 0x16 gaincal_ch3 24 r/w gain correction register - channel 3 0x17 offcal_ch4 24 r/w offset correction register - channel 4 0x18 gaincal_ch4 24 r/w gain correction register - channel 4 0x19 offcal_ch5 24 r/w offset correction register - channel 5 0x1a gaincal_ch5 24 r/w gain correction register - channel 5 0x1b unused 24 u unused 0x1c unused 24 u unused 0x1d unused 24 u unused 0x1e unused 24 u unused 0x1f lock/crc 24 r/w security register (password and crc-16 on register map)
mcp3913 ds20005227a-page 58 ? 2013 microchip technology inc. table 8-2: register map grouping fo r all continuous read/write modes function address read<1:0> write = ?11? = ?10? = ?01? = ?00? = ?1? = ? 0 ? channel 0 0x00 loop entire register map type group static not writable (address undefined for write access) not writable (address undefined for write access) channel 1 0x01 static channel 2 0x02 group static channel 3 0x03 static channel 4 0x04 group static channel 5 0x05 static mod 0x08 type group static loop only on writable registers static phase0 0x09 static static phase1 0x0a static static gain 0x0b static static statuscom 0x0c group static static config0 0x0d static static config1 0x0e static static offcal_ch0 0x0f group static static gaincal_ch0 0x10 static static offcal_ch1 0x11 group static static gaincal_ch1 0x12 static static offcal_ch2 0x13 group static static gaincal_ch2 0x14 static static offcal_ch3 0x15 group static static gaincal_ch3 0x16 static static offcal_ch4 0x17 group static static gaincal_ch4 0x18 static static offcal_ch5 0x19 group static static gaincal_ch5 0x1a static static lock/crc 0x1f group static static
? 2013 microchip technology inc. ds20005227a-page 59 mcp3913 8.1 channel registers - adc channel data output registers the adc channel data output registers always contain the most recent a/d conversion data for each channel. these registers are read-only. they can be accessed independently or linked together (with read<1:0> bits). these registers are latched when an adc read communication occurs. when a data ready event occurs during a read communication, the most current adc data is also latched to avoid data corruption issues. these registers are updated and latched together if dr_link = 1 synchronously with the data ready pulse (toggling on the most lagging adc channel data ready event). name bits address cof. channel0 24 0x00 r channel1 24 0x01 r channel2 24 0x02 r channel3 24 0x03 r channel4 24 0x04 r channel5 24 0x05 r register 8-1: mcp3913 channel registers r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_chn <23> (msb) data_chn <22> data_chn <21> data_chn <20> data_chn <19> data_chn <18> data_chn <17> data_chn <16> bit 23 bit 16 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_chn <15> data_chn <14> data_chn <13> data_chn <12> data_chn <11> data_chn <10> data_chn <9> data_chn <8> bit 15 bit 8 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_chn <7> data_chn <6> data_chn <5> data_chn <4> data_chn <3> data_chn <2> data_chn <1> data_chn <0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 data_chn: output code from adc channel n. this data is post-calibration if the en_offcal or en_gaincal bits are enabled. this data can be formatted in 16-/24-/32-bit modes, depending on the width_data<1:0> settings. (see section 5.5 ?adc output coding? )
mcp3913 ds20005227a-page 60 ? 2013 microchip technology inc. 8.2 mod register ? modulators output register the mod register contains the most recent modulator data output and is updated at a dmclk rate. the default value corresponds to an equivalent input of 0v on all adcs. each bit in this register corresponds to one comparator output on one of the channels. do not write to this register to ensure the accuracy of each adc. . name bits address cof. mod 24 0x08 r/w register 8-2: mod register r/w-0 r/w-0 r/w-1 r/w-1 r/w-0 r/w-0 r/w-1 r/w-1 comp3_ch5 comp2_ch5 comp1_ch5 comp0_ch5 comp3_ch4 comp2_ch4 comp1_ch4 comp0_ch4 bit 23 bit 16 r/w-0 r/w-0 r/w-1 r/w-1 r/w-0 r/w-0 r/w-1 r/w-1 comp3_ch3 comp2_ch3 comp1_ch3 comp0_ch3 comp3_ch2 comp2_ch2 comp1_ch2 comp0_ch2 bit 15 bit 8 r/w-0 r/w-0 r/w-1 r/w-1 r/w-0 r/w-0 r/w-1 r/w-1 comp3_ch1 comp2_ch1 comp1_ch1 comp0_ch1 comp3_ch0 comp2_ch0 comp1_ch0 comp0_ch0 bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-20 compn_ch5 : comparator outputs from adc channel 5 bit 19-16 compn_ch4 : comparator outputs from adc channel 4 bit 15-12 compn_ch3 : comparator outputs from adc channel 3 bit 11-8 compn_ch2 : comparator outputs from adc channel 2 bit 7-4 compn_ch1 : comparator outputs from adc channel 1 bit 3-0 compn_ch0 : comparator outputs from adc channel 0
? 2013 microchip technology inc. ds20005227a-page 61 mcp3913 8.3 phase0 register ? phase configuration register for channel pair 4/5 any write to this register automatically resets and restarts all active adcs. name bits address cof. phase0 24 0x09 r/w register 8-3: phase0 register u-0 u-0 u-0 u-0 u-0 u-0 u-0 u-0 ???????? bit 23 bit 16 u-0 u-0 u-0 u-0 r/w-0 r/w-0 r/w-0 r/w-0 ? ? ? ? phasec<11> phasec<10> phasec<9> phasec<8> bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 phasec<7> phasec<6> phasec<5> phasec<4> p hasec<3> phasec<2> phasec<1> phasec<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-12 unimplemented: read as 0 bit 11-0 phasec<11:0> phase delay between channels ch4 and ch5 (reference). delay = phasec<11:0> decimal code/dmclk
mcp3913 ds20005227a-page 62 ? 2013 microchip technology inc. 8.4 phase1 register ? phase configuration register for channel pairs 2/3 and 0/1 any write to this register automatically resets and restarts all active adcs. name bits address cof. phase1 24 0x0a r/w register 8-4: phase register r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 phaseb<11> phaseb<10> phaseb<9> phaseb< 8> phaseb<7> phaseb<6> phaseb<5> phaseb<4> bit 23 bit 16 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 phaseb<3> phaseb<2> phaseb<1> phaseb<0> ph asea<11> phasea<10> phasea<9> phasea<8> bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 phasea<7> phasea<6> phasea<5> phasea< 4> phasea<3> phasea<2> phasea<1> phasea<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-12 phaseb<11:0> phase delay between channels ch2 and ch3 (reference). delay = phaseb<11:0> decimal code/dmclk bit 11-0 phasea<11:0> phase delay between channels ch0 and ch1(reference). delay = phasea<11:0> decimal code/dmclk
? 2013 microchip technology inc. ds20005227a-page 63 mcp3913 8.5 gain register ? pga gain configuration register name bits address cof. gain 24 0x0b r/w register 8-5: gain register u-0 u-0 u-0 u-0 u-0 u-0 r/w-0 r/w-0 ????? ? pga_ch5<2> pga_ch5<1> bit 23 bit 16 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 pga_ch5<0> pga_ch4<2> pga_ch4<1> pga_ch4<0> p ga_ch3<2> pga_ch3<1> pga_ch3<0> pga_ch2<2> bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 pga_ch2<1> pga_ch2<0> pga_ch1<2> pga_ch1<1> p ga_ch1<0> pga_ch0<2> pga_ch0<1> pga_ch0<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-18 unimplemented: read as 0 bit 17-0 pga_chn<2:0>: pga setting for channel n 111 = reserved (gain = 1) 110 = reserved (gain = 1) 101 = gain is 32 100 = gain is 16 011 = gain is 8 010 = gain is 4 001 = gain is 2 000 = gain is 1 (default)
mcp3913 ds20005227a-page 64 ? 2013 microchip technology inc. 8.6 statuscom register ? status and communication register name bits address cof. statuscom 24 0x0c r/w register 8-6: statuscom register r/w-1 r/w-0 r/w-1 r/w-0 r/w-1 r/w-0 r/w-0 r/w-1 read<1> read<0> write dr_hiz dr_link width_ crc width_ data<1> width_ data<0> bit 23 bit 16 r/w-0 r/w-0 r/w-0 r/w-0 u-0 u-0 u-0 u-0 en_crccom en_int reserved reserved ? ? ? ? bit 15 bit 8 u-0 u-0 r-1 r-1 r-1 r-1 r-1 r-1 ? ? drstatus<5> drstatus<4> drstatus<3> drstatus<2> drstatus<1> drstatus<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-22 read<1:0>: address counter increment setting for read communication 11 = address counter auto-increments, loops on the entire register map 10 = address counter auto-increments, loops on register types (default) 01 = address counter auto-increments, loops on register groups 00 = address not incremented, continually reads the same single-register address bit 21 write: address counter increment setting for write communication 1 = address counter auto-increments and loops on writable part of the register map (default) 0 = address not incremented, continually writes to the same single register address bit 20 dr_hiz : data ready pin inactive state control 1 = the dr pin state is a logic high when data is not ready 0 = the dr pin state is high-impedance when data is not ready (default) bit 19 dr_link data ready link control 1 = data ready link enabled. only one pulse is generated on the dr pin for all adc channels, corresponding to the data ready pulse of the most lagging adc. 0 = data ready link disabled. each adc produces its own data ready pulse on the dr pin. bit 18 width_crc format for crc-16 on communications 1 = 32-bit (crc-16 code is followed by sixteen zeros). this coding is compatible with crc implementation in most 32-bit mcus (including pic32 mcus). 0 = 16 bit (default) bit 17-16 width_data<1:0>: adc data format settings for all adcs (see section 5.5 ?adc output coding? ) 11 = 32-bit with sign extension 10 = 32-bit with zeros padding 01 = 24-bit (default) 00 = 16-bit (with rounding) bit 15 en_crccom: enable crc crc-16 checksum on serial communications 1 = crc-16 checksum is provided at the end of each communication sequence (therefore each communication is longer). the crc-16 message is the complete communication sequence (see section section 6.9 ?securing read communications through crc-16 checksum? for more details). 0 = disabled (default)
? 2013 microchip technology inc. ds20005227a-page 65 mcp3913 bit 14 en_int: enable for the crcreg interrupt function 1 = the interrupt flag for the crcreg checksum verification is enabled. the data ready pin (dr ) will become logic low and stays logic low if a crcreg checksum error happens. this interrupt is cleared if the lock<7:0> value is made equal to the password value (0xa5). 0 = the interrupt flag for the crcreg checksum verification is disabled. the crcreg<15:0> bits are still calculated properly and can still be read in this mode. no interrupt is generated even when a crcreg checksum error happens. (default) bit 13-12 reserved: should be kept equal to 0 at all times bit 11-6 unimplemented: read as 0 bit 5-0 drstatus<5:0>: data ready status bit for each individual adc channel drstatus = 1 - channel chn data is not ready (default) drstatus = 0 - channel chn data is ready. the status bit is set back to ' 1 ' after reading the statuscom register. the status bit is not set back to ' 1 ' by the read of the corresponding channel adc data. register 8-6: statuscom register (continued)
mcp3913 ds20005227a-page 66 ? 2013 microchip technology inc. 8.7 config0 register ? configuration register 0 name bits address cof. config0 24 0x0d r/w register 8-7: co nfig0 register r/w-0 r/w-0 r/w-1 r/w-1 r/w-1 r/w-0 r/w-0 r/w-0 en_offcal en_gaincal dither<1> dither<0> boost<1> boost<0> pre<1> pre<0> bit 23 bit 16 r/w-0 r/w-1 r/w-1 u-0 u-0 u-0 u-0 u-0 osr<2> osr<1> osr<0> ? ? ? ? ? bit 15 bit 8 r/w-0 r/w-1 r/w-0 r/w-1 r/w-0 r/w-0 r/w-0 r/w-0 vrefcal<7> vrefcal<6> vrefcal<5> vrefcal<4> vrefcal<3> vrefcal<2> vrefcal<1> vrefcal<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23 en_offcal: enables the 24-bit digital offset error calibration on all channels 1 = enabled. this mode does not add any group delay to the adc data. 0 = disabled (default) bit 22 en_gaincal: enables or disables the 24-bit digital gain error calibration on all channels 1 = enabled. this mode adds a group delay on all channels of 24 dmclk periods. all data ready pulses are delayed by 24 dmclk clock periods, compared to the mode with en_gaincal = 0 . 0 = disabled (default) bit 21-20 dither<1:0>: control for dithering circuit for idle tone?s cancellation and improved thd on all channels 11 = dithering on, strength = maximum (default) 10 = dithering on, strength = medium 01 = dithering on, strength = minimum 00 = dithering turned off bit 19-18 boost<1:0>: bias current selection for all adcs (impacts achievable maximum sampling speed, see tab le 5 -2 ) 11 = all channels have current x 2 10 = all channels have current x 1 (default) 01 = all channels have current x 0.66 00 = all channels have current x 0.5 bit 17-16 pre<1:0> analog master clock (amclk) prescaler value 11 = amclk = mclk/8 10 = amclk = mclk/4 01 = amclk = mclk/2 00 = amclk = mclk (default)
? 2013 microchip technology inc. ds20005227a-page 67 mcp3913 bit 15-13 osr<2:0> oversampling ratio for delta sigma a/d conversion (all channels, f d / f s ) 111 = 4096 ( f d = 244 sps for mclk = 4 mhz, f s = amclk = 1 mhz) 110 = 2048 ( f d = 488 sps for mclk = 4 mhz, f s = amclk = 1 mhz) 101 = 1024 ( f d = 976 sps for mclk = 4 mhz, f s = amclk = 1 mhz) 100 = 512 ( f d = 1.953 ksps for mclk = 4 mhz, f s =amclk=1mhz) 011 = 256 ( f d = 3.90625 ksps for mclk = 4 mhz, f s = amclk = 1 mhz) (default) 010 = 128 ( f d = 7.8125 ksps for mclk = 4 mhz, f s = amclk = 1 mhz) 001 = 64 ( f d = 15.625 ksps for mclk = 4 mhz, f s =amclk=1mhz) 000 = 32 ( f d = 31.25 ksps for mclk = 4 mhz, f s =amclk=1mhz) bit 12-8 unimplemented: read as 0 bit 7-0 vrefcal<7:0>: internal voltage temperature coefficient vrefcal<7:0> value. (see section 5.6.3 ?temperature compensation (vrefcal<7:0>)? for complete description). register 8-7: config0 register (continued)
mcp3913 ds20005227a-page 68 ? 2013 microchip technology inc. 8.8 config1 register ? configuration register 1 name bits address cof. config1 24 0x0f r/w register 8-8: co nfig1 register u-0 u-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 ? ? reset<5> reset<4> reset<3> reset<2> reset<1> reset<0> bit 23 bit 16 u-0 u-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 ? ? shutdown<5> shutdown<4> shutdown<3> shutdown<2> shutdown<1> shutdown<0> bit 15 bit 8 r/w-0 r/w-1 u-0 u-0 u-0 u-0 u-0 u-0 vrefext clkext ? ? ? ? ? ? bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-22 unimplemented: read as 0 bit 21-16 reset<5:0>: soft reset mode setting for each individual adc reset = 1 : channel chn in soft reset mode reset = 0 : channel chn not in soft reset mode bit 15-14 unimplemented: read as 0 bit 13-8 shutdown<5:0>: shutdown mode setting for each individual adc shutdown = 1 : adc channel chn in shutdown shutdown = 0 : adc channel chn not in shutdown bit 7 vrefext: internal voltage reference selection bit 1 = internal voltage reference disabled. an external reference voltage needs to be applied across the refin+/- pins. the analog power consumption (ai dd ) is slightly diminished in this mode since the internal voltage reference is placed into shutdown mode. 0 = internal reference enabled. for optimal accuracy, the refin+/out pin needs proper decoupling capacitors. refin- pin should be connected to a gnd , when in this mode. bit 6 clkext: internal clock selection bit 1 = mclk is generated externally and should be provided on the osc1 pin: the crystal oscillator is disabled and consumes no current (default) 0 = crystal oscillator enabled. a crystal must be placed between osc1 and osc2 with proper decoupling capacitors. the digital power consumption (di dd ) is increased in this mode due to the oscillator. bit 5-0 unimplemented: read as 0
? 2013 microchip technology inc. ds20005227a-page 69 mcp3913 8.9 offcal_chn and gaincal_chn registers ? digital offset and gain error calibration registers name bits address cof. offcal_ch0 24 0x0f r/w gaincal_ch0 24 0x10 r/w offcal_ch1 24 0x11 r/w gaincal_ch1 24 0x12 r/w offcal_ch2 24 0x13 r/w gaincal_ch2 24 0x14 r/w offcal_ch3 24 0x15 r/w gaincal_ch3 24 0x16 r/w offcal_ch4 24 0x17 r/w gaincal_ch4 24 0x18 r/w offcal_ch5 24 0x19 r/w gaincal_ch5 24 0x1a r/w register 8-9: offcal_chn registers r/w-0 r/w-0 r/w-0 ... r/w-0 r/w-0 r/w-0 r/w-0 off- cal_chn<23> off- cal_chn<22> off- cal_chn<21> ... off- cal_chn<3> off- cal_chn<2> off- cal_chn<1> off- cal_chn<0> bit 23 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 offcal_chn: digital offset calibration value for the corresponding channel chn. this register is simply added to the output code of the channel bit-by-bit. this register is 24-bit two's complement msb first coding. chn output code = offcal_chn + adc chn output code. this register is a don't care if en_offcal = 0 (offset calibration disabled), but its value is not cleared by the en_offcal bit.
mcp3913 ds20005227a-page 70 ? 2013 microchip technology inc. 8.10 security register ? password and crc-16 on register map register 8-10: gaincal_chn registers r/w-0 r/w-0 r/w-0 ... r/w-0 r/w-0 r/w-0 r/w-0 gain- cal_chn<23> gain- cal_chn<22> gain- cal_chn<21> ... gain- cal_chn<3> gain- cal_chn<2> gain- cal_chn<1> gain- cal_chn<0> bit 23 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 gaincal_chn: digital gain error calibration value for the corresponding channel chn. this register is 24-bit signed msb first coding with a range of -1x to +0.9999999x (from 0x800000 to 0x7fffff). the gain calibration adds 1x to this register and mult iplies it to the output code of the channel bit-by-bit, after offset calibration. the range of the gain calibration is thus from 0x to 1.9999999x (from 0x800000 to 0x7fffff). the lsb corresponds to a 2 -23 increment in the multiplier. chn output code = (gaincal_chn+1)*adc chn output code. this register is a don't care if en_gaincal = 0 (gain calibration disabled) but its value is not cleared by the en_gaincal bit. name bits address cof. lock/crc 24 0x1f r/w register 8-11: lock/crc register r/w-1 r/w-0 r/w-1 r/w-0 r/w-0 r/w-1 r/w-0 r/w-1 lock<7> lock<6> lock<5> lock<4> lock<3> lock<2> lock<1> lock<0> bit 23 bit 16 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 crcreg<15> crcreg<14> crcreg<13> crcreg<12 > crcreg<11> crcreg<10> crcreg<9> crcreg<8> bit 15 bit 8 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 crcreg<7> crcreg<6> crcreg<5> crcreg<4> crcreg<3> crcreg<2> crcreg<1> crcreg<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-16 lock<7:0>: lock code for the writable part of the register map lock<7:0> = password =0xa5 (default value): the entire register map is writable. the crcreg<15:0> bits and the crc interrupt are cleared. no crc-16 checksum on register map is calculated. lock<7:0> different than 0xa5: the only writable register is the lock/crc register. all other registers will appear as undefined while in this mode. the crcreg checksum is calculated continuously and can generate inter- rupts if the crc interrupt en_int bit has been enabled. if a write to a register needs to be performed, the user needs to unlock the register map beforehand by writing 0xa5 to the lock<7:0> bits. bit 15-0 crcreg<15:0>: crc-16 checksum that is calculated with the writabl e part of the register map as a message. this is a read-only 16-bit code. this c hecksum is continuously recalculat ed and updated every 21 dmclk periods. it is reset to its default value (0x0000) when lock<7:0> = 0xa5.
? 2013 microchip technology inc. ds20005227a-page 71 mcp3913 9.0 packaging information 9.1 package marking information legend: xx...x customer-specific information y year code (last digit of calendar year) yy year code (last 2 digits of calendar year) ww week code (week of january 1 is week ?01?) nnn alphanumeric traceability code pb-free jedec designator for matte tin (sn) * this package is pb-free. the pb-free jedec designator ( ) can be found on the outer packaging for this package. note : in the event the full microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information. 3 e 3 e 40-lead uqfn (5x5x0.5 mm) example pin 1 pin 1 mcp3913 a1 e/mv ^^ 1327256 3 e 28-lead ssop (5.30 mm) example mcp3913a1 e/ss^^ 1327256 3 e
mcp3913 ds20005227a-page 72 ? 2013 microchip technology inc. l l1 c a2 a1 a e e1 d n 1 2 note 1 b e
? 2013 microchip technology inc. ds20005227a-page 73 mcp3913 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging
mcp3913 ds20005227a-page 74 ? 2013 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging
? 2013 microchip technology inc. ds20005227a-page 75 mcp3913 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging
mcp3913 ds20005227a-page 76 ? 2013 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging
? 2013 microchip technology inc. ds20005227a-page 77 mcp3913 appendix a: revision history revision a (october 2013) ? original release of this document.
? 2013 microchip technology inc. ds20005227a-page 78 mcp3913 notes:
? 2013 microchip technology inc. ds20005227a-page 79 mcp3913 product identification system to order or obtain information, e. g., on pricing or delivery, refer to the factory or the listed sales office . device: mcp3913: six-channel analog front-end converter address options: xx a6 a5 a0 = 0 0 a1* = 0 1 a2 = 1 0 a3 = 1 1 * default option. contact microchip factory for other address options. tape and reel option: blank = standard packaging (tube or tray) t = tape and reel (1) temperature range: e = -40c to +125c package: mv = plastic ultra thin quad flat, no lead package (uqfn) ss = plastic shrink small outline, 5.30 mm body (ssop) examples: a) mcp3913a1-e/ss: extended temperature, 28ld ssop package b) mcp3913a1t-e/ss: tape and reel, extended temperature, 28ld ssop package c) mcp3913a1-e/mv: extended temperature, 40ld uqfn package d) mcp3913a1t-e/mv: tape and reel, extended temperature, 40ld uqfn package part no. x temperature range device /xx package [ x ] (1) tape and reel note 1: tape and reel identifier only appears in the catalog part number description. this identi- fier is used for ordering purposes and is not printed on the device package. check with your microchip sales office for package availability for the tape and reel option.
? 2013 microchip technology inc. ds20005227a-page 80 mcp3913 notes:
? 2013 microchip technology inc. ds20005227a-page 81 information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, dspic, flashflex, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic, sst, sst logo, superflash and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mtp, seeval and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. silicon storage technology is a registered trademark of microchip technology inc. in other countries. analog-for-the-digital age, app lication maestro, bodycom, chipkit, chipkit logo, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mpf, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, sqi, serial quad i/o, total endurance, tsharc, uniwindriver, wiperlock, zena and z-scale are trademarks of microchip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. gestic and ulpp are registered trademarks of microchip technology germany ii gmbh & co. kg, a subsidiary of microchip technology inc., in other countries. all other trademarks mentioned herein are property of their respective companies. ? 2013, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. isbn: 978-1-62077-519-6 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained 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 i n 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 produc ts in a manner outside the operating specif ications 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 semiconduc tor 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 co mmitted to continuously improvin g the code protection features of our products. attempts to break microchip?s 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. microchip received iso/ts-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified. quality management s ystem certified by dnv == iso/ts 16949 ==
ds20005227a-page 82 ? 2013 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8569-7000 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hangzhou tel: 86-571-2819-3187 fax: 86-571-2819-3189 china - hong kong sar tel: 852-2943-5100 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8864-2200 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-3019-1500 japan - osaka tel: 81-6-6152-7160 fax: 81-6-6152-9310 japan - tokyo tel: 81-3-6880- 3770 fax: 81-3-6880-3771 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-5778-366 fax: 886-3-5770-955 taiwan - kaohsiung tel: 886-7-213-7828 fax: 886-7-330-9305 taiwan - taipei tel: 886-2-2508-8600 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 worldwide sales and service 08/20/13


▲Up To Search▲   

 
Price & Availability of MCP3913A1T-EMV

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X