Energy Measurement SOC Features High precision energy measurement Provide RMS voltage and RMS current Calculates active power and power factor Calculates AC frequency High frequency CF pulse for calibration Calculates total energy usage over time 4 seg 4 com LCD drivers, can be switched to become I/O ports Supports LED driving Real time clock, can output second signal UART and I C interfaces K*6 bits OTP program memory, support online programming, 8 bytes data memory Operating voltage: energy measurement circuit 4.75 5.5V, rest of the IC.4 5.5V General Description The SD004 is an electric energy measurement SOC with built in MCU, energy/voltage/current measurement circuit, LCD/LED display drivers, and UART communication interface. It greatly simplifies circuit designs and reduces production costs for energy meter, metering socket, and similar products. Ordering Information LQFP64-0 0-0.5 package Pin Diagram and Descriptions P5/F P5/F P0/SEG0/DOUT P/SEG P/SEG P/SEG P4/SEG4 P5/SEG5 P6/SEG6 P7/SEG7 P0/SEG8 P/SEG9 P/SEG0 P/SEG P4/SEG P5/SEG 64 6 66 60 59 58 57 56 55 54 5 5 5 50 49 48 47 46 4 45 5 44 6 SDIC 4 7 4 8 4 9 XXXXXXX 40 0 9 8 SD004 7 6 4 5 5 4 6 7 8 9 0 4 5 6 7 8 9 0 P6/SEG4 P7/SEG5 P0/INT0/SCK P/INT/DIN P/SCL P/SDA P4/TXD P5/RXD P6/PPG8 P7/PPG6 VPP P40/SEG6 P4/SEG7 P4/SEG8 PLLC VBIAS CF XTOUT XTIN XOUT XIN REVP NRST VREF A VP VN VN VP P57/COM P56/COM P55/COM P54/COM0 P47/SEG P46/SEG P45/SEG P44/SEG0 P4/SEG9 Figure. Pin out diagram SDIC Microelectronics Rev. 0.c Aug 0
Table. Pin Descriptions Pin No. Pin Name Pin Attribute Pin Description P5/F I/O Port P5 or step motor drive F P5/F I/O Port P5 or step motor drive F -8 P0/SEG0/DOUT-- P7/SEG5 LCD driver, I/O Port P0-P7, P0-P7, or LCD SEG0-SEG5 Pin is data output DOUT during OTP programming 9 P0/INT0/SCK I/O Port P0 or interrupt INT0, interrupt edge selectable Clock input SCK during OTP programming 0 P/INT/DIN I/O Port P or interrupt INT, interrupt edge selectable Data input DIN during OTP programming P/SCL I/O Port P or I C clock SCL P/SDA I/O Port P or I C data SDA P4/TXD I/O Port P4 or UART data transmit TXD 4 P5/RXD I/O Port P5 or UART data receive RXD 5 P6/PPG8 I/O Port P6 or 8 bits PPG output PPG8 6 P7/PPG6 I/O Port P7 or 6 bits PPG output PPG6 7 Ground Digital ground 8 Power Digital supply voltage 9 VPP HV power High voltage power for OTP programming 0-7 8-4 P40/SEG6-- P47/SEG P54/COM0-- P57/COM LCD driver, I/O LCD driver, I/O Port P40-P47 or LCD SEG6-SEG Port P54-P57 or LCD common COM0-COM 4 VP Analog Channel (Current) positive input 4 VN Analog Channel (Current) negative input 44 VN Analog Channel (Voltage) negative input 45 VP Analog Channel (Voltage) positive input 46 Power Analog supply voltage 47 A Ground Analog ground 48 VREF Analog.5V reference output 49 - No connect, can connect to supply or ground 50 NRST I Reset pin, active low 5 REVP O 5 XIN Analog.58MHz crystal oscillator input 5 XOUT Analog.58MHz crystal oscillator output 54 XTIN Analog.768kHz crystal oscillator input 55 XTOUT Analog.768kHz crystal oscillator output Goes high when phase difference between voltage and current is greater than 90 degrees. REVP updates its logic state when a CF pulse is issued. 56 - No connect, can connect to supply or ground 57 CF O Calibration frequency output 58 Ground Digital ground SDIC Microelectronics Rev. 0.c Aug 0 of 6
59 Power Digital supply voltage 60 - No connect, can connect to supply or ground 6 VBIAS Analog LCD bias voltage, adjustable through external resistor 6 - No connect, can connect to supply or ground 6 PLLC Analog External capacitor for PLL 64 - No connect, can connect to supply or ground Typical Application P+ U 4 P- CF Opto-coupler output U D R 64 6 C 0pf R 6 6 60 59 58 57 56 C 0pf Y.768KHz 55 54 5 C 0pf 5 5 50 49 Reset circuit R 0K C4 0uf D C5 0uf/6V + R4 0R C6 C7 0uf/6V + C8 PLLC VBIAS CF XTOUT XTIN XOUT XIN REVP NRST SEG 4 SEG 5 SEG 6 SEG 4 7 SEG 5 8 SEG 6 9 SEG 7 0 SEG 8 SEG 9 SEG 0 SEG 4 SEG 5 6 P5/F P5/F P0/SEG0/DOUT P/SEG P/SEG P/SEG P4/SEG4 P5/SEG5 P6/SEG6 P7/SEG7 P0/SEG8 P/SEG9 P/SEG0 P/SEG P4/SEG P5/SEG 7 8 9 SDIC YYWWFNN SD004 P6/SEG4 P7/SEG5 P0/INT0/SCK P/INT/DIN PSCL P/SDA P4/TXD P5/RXD P6/PPG8 P7/PPG6 GNG VPP P40/SEG6 P4/SEG7 P4/SEG8 0 4 5 6 7 8 P0 P P P P4 P5 P6 P7 9 0 VPP VREF A VP VN VN VP P57/COM P56/COM P55/COM P54/COM0 P47/SEG P46/SEG P45/SEG P44/SEG0 P4/SEG9 48 47 46 45 VP 44 VN 4 VN 4 VP 4 COM 40 9 8 7 6 5 4 COM COM COM0 C9 0uf/6V C nf C nf C nf C + R7 U 4C0 A0 VCC 8 A WP 7 4 A SCL SDA 6 5 R5 C0 R6 I+ Current Input I- R 0K R 0K UN Voltage Input UL Z C5 0nF/50VAC R9 M C6 0.47uf R0 MOV R8 R 00/W VP C4 nf D IN474A D4 IN4007 + C7 470uf/5V U4 IN LM78L05 OUT + + C8 C9 0uf/6V C0 Z Figure. Typical application diagram SDIC Microelectronics Rev. 0.c Aug 0 of 6
Electrical Specifications Table. Absolute Maximum Ratings Symbol Parameter Minimum Maximum Unit T A Operating temperature -40 +85 C T S Storage temperature -55 +50 C V DD Supply voltage -0. +7.0 V Vpp Programming voltage -0. + V V IN, V OUT Digital input/output voltage -0. V DD +0. V T L Reflow temperature profile Per IPC/JEDECJ-STD-00C C Remarks:. CMOS device can easily be damaged by electrostatics. It must be stored in conductive foam, and careful not to exceed the operating voltage range.. Turn off power before insert or remove the device. Symbol Table. Electrical Specifications(=5V,=5V) Parameter Minimu m Typic al Maximu m PLLOSC Operating frequency --.604 -- MHz PLL clock Unit Conditions/Remarks OSCK Operating frequency --.768 -- khz External crystal oscillator HOSC Operating frequency --.58 -- MHz External high frequency crystal oscillator RCK Operating frequency 4 6 -- -- khz Internal RC oscillator FOSC Operating frequency --.58 -- MHz Digital power supply.4 5.5 V Analog power supply 4.75 5 5.5 V IDD Operating current -- 5 -- ma Operating frequency -4 or a selectable frequency derived from them.58mhz clock, MCU active, energy measuring, LCD displaying IDD Operating current -- 5 0 ua.768khz clock, MCU sleep, energy measuring stops, LCD displaying IDD Operating current -- -- ua All oscillators stop, MCU stops -- -- 0. PORT/PORT/PORT4/PORT5 VIL VIH Digital input low voltage Digital input high voltage -- -- 0. PORT -- -- 0. NRST 0.7 -- -- PORT/PORT/PORT4/PORT5 0.8 -- -- PORT 0.8 -- -- NRST Rpu Pull up resistance 50K -- 00K Ω PORT/NRST VOL Digital output low voltage -- -- 0. V VOH Digital output high voltage 0.7 -- -- V VPP Programming voltage.75.5 V SDIC Microelectronics Rev. 0.c Aug 0 4 of 6
VREF Reference value..5.7 V T_VREF Reference TC 0 60 ppm/ -40 ~85 I_ACCU Measurement accuracy -- 0.5 %FSR Voltage/current channels RANGE Channel input signal range -- -- 450 mv Current input, 50/60 Hz RANGE Channel input signal range -- -- 650 mv Voltage input, 50/60 Hz CMR Common mode range 0.7 V Channel and channel SDIC Microelectronics Rev. 0.c Aug 0 5 of 6
Packaging Information D D b 48 b 49 c c E E BASE METAL WITH PLATING 64 7 SECTION B-B 6 b e B B A A A 0.5 θ F A L L DETAIL:F Dimensions: mm Symbol Min. Nom. Max. A.60 A 0.05 0.0 A.5.40.45 A 0.59 0.64 0.69 b 0.9 0.7 b 0.8 0.0 0. c 0. 0.8 c 0. 0. 0.4 D.80.00.0 D 9.90 0.00 0.0 E.80.00.0 E 9.90 0.00 0.0 e 0.50BSC L 0.45 0.75 L.00BSC Ө 0 7 Figure. Mechanical specification SDIC Microelectronics Rev. 0.c Aug 0 6 of 6