MCP3421 SOT23-6 DS51793A_CN
Microchip Microchip Microchip Microchip Microchip Microchip Microchip Microchip Microchip Microchip Microchip Digital Millennium Copyright Act Microchip Microchip Technology Inc. Microchip Technology Inc. Microchip Microchip Microchip Microchip Microchip Microchip Microchip dspic KEELOQ KEELOQ MPLAB PIC PICmicro PICSTART PIC 32 rfpic UNI/O Microchip Technology Inc FilterLab Hampshire HI-TECH C Linear Active Thermistor MXDEV MXLAB SEEVAL The Embedded Control Solutions Company Microchip Technology Inc Analog-for-the-Digital Age Application Maestro chipkit chipkit CodeGuard dspicdem dspicdem.net dspicworks dsspeak ECAN ECONOMONITOR FanSense HI-TIDE In-Circuit Serial Programming ICSP Mindi MiWi MPASM MPLAB Certified MPLIB MPLINK mtouch Omniscient Code Generation PICC PICC-18 PICDEM PICDEM.net PICkit PICtail REAL ICE rflab Select Mode Total Endurance TSHARC UniWinDriver WiperLock ZENA Microchip Technology Inc SQTP Microchip Technology Inc 2011, Microchip Technology Inc ISBN 978-1-61341-389-0 Microchip Chandler Tempe Gresham ISO/TS-16949:2009 Microchip PIC MCU dspic DSC KEELOQ EEPROM Microchip ISO 9001:2000 DS51793A_CN ii
MCP3421 SOT23-6... 1 1 1.1... 5 1.2 MCP3421 SOT23-6... 5 1.3 PICkit... 7 A A.1... 23 A.2... 24 A.3... 25 A.4... 26 A.5... 27 B BOM... 30 DS51793A_CN iii
MCP3421 SOT23-6 DS51793A_CN iv
MCP3421 SOT23-6 Microchip / www.microchip.com DS DS DSXXXXXA XXXXXA MPLAB IDE Help Topics MCP3421 SOT23-6 Microchip MCP3421 SOT23-6 1 MCP3421 SOT23-6 PICKit ADC A MCP3421 SOT23-6 B BOM MCP3421 SOT23-6 DS51793A_CN 1
MCP3421 SOT23-6 Arial MPLAB IDE User's Guide Output Settings Enable Programmer Save project before build File>Save OK Power 0xnnnn n 0xFFFF 0x007A < > <Enter> <F1> Courier New Courier New #define START autoexec.bat c:\mcc18\h _asm _endasm static -Opa+ -Opa- 0 1 0xFF A bnnnn n b00100 b10 Courier New file.o file [ ] mcc18 [] file [] { } errorlevel {0 1}... var_name [, var_name...] void main (void) {... } DS51793A_CN 2
MCP3421 SOT23-6 PICkit Microchip PICkit DS51647C_CN PICkit MCP3421 I 2 C 18 DS22003E_CN MCP3421 MICROCHIP Microchip www.microchip.com FAQ Microchip Microchip Microchip Microchip Microchip FAE FAE http://support.microchip.com DS51793A_CN 3
MCP3421 SOT23-6 A 2009 1 DS51793A_CN 4
1 MCP3421 SOT23-6 1.1 MCP3421 SOT23-6 PICkit DV164122 MCP3421 SOT23-6 MCP3421 SOT23-6 PICkit MCP3421 1.2 MCP3421 SOT23-6 MCP3421 SOT23-6 MCP3421EV MCP3421 18 Δ-Σ Analog-to-Digital Converter ADC MCP3421 18 ADC MCP3421 SOT23-6 V DD SDA SCL ADC PICkit PC graphic user interface GUI MCP3421 ADC PICkit GUI MCP3421 SOT23-6 PC MCP3421 SOT23-6 I 2 C PICkit MCP3421 SOT23-6 SDA SCL I 2 C PICkit DV164122 V DD SCL SDA PICkit MCU SDA SCL I 2 C A 1.2.1 I 2 C MCP3421 I 2 C 1101000 DS51793A_CN 5
MCP3421 SOT23-6 1-1 MCP3421 SOT23-6 DS51793A_CN 6
1.3 PICkit 1-1 MCP3421 SOT23-6 1-2 PICkit 1. MCP3421 SOT23-6 J1 PICkit 1-2 2. SCL SDA 3. V DD PICkit V DD V DD JP1 V DD (a) JP1 PICkit V DD (b) JP1 V DD V DD V DD V DD V DD V DD 4. V DD V DD PICkit V DD V DD PICkit PC V DD 5. V DD LED D1 V DD PICkit LED I 2 C 1.3.2.1 6. V IN - V SS 7. PICkit PC GUI I 2 C 1.3.2.1 8. PICkit ADC PICkit PC GUI ESD (a) MCP3421 (b) V DD DS51793A_CN 7
MCP3421 SOT23-6 USB PICkit PICkit MCP3421 1-2 PICkit MCP3421 SOT23-6 DS51793A_CN 8
1.3.1 MCP3421 SOT23-6 PICkit PC PICkit PC GUI MCP3421 ADC 1. PICkit Personal Computer PC 2. USB PICkit PC 3. PICkit PC GUI Next 1-3 PICkit 4. I 2 C Master I 2 C Next 1-4 1 DS51793A_CN 9
MCP3421 SOT23-6 5. 100 khz 400 khz Next 1-5 2 I 2 C MCP3421 3.4 MHz I 2 C PICkit 400 khz I 2 C 6. Enable Pull-ups No Next MCP3421 SOT23-6 PICkit 1-6 3 DS51793A_CN 10
7. MCP3421 SOT23-6 V DD Next 1 PICkit V DD PICkit Serial will power my device PICkit 5 Volt 5V MCP3421 SOT23-6 PICkit 5V JP1 MCP3421 SOT23-6 JP1 2 V DD V DD V DD V DD JP1 1-7 4 DS51793A_CN 11
MCP3421 SOT23-6 8. OK PICkit PICkit MCP3421 SOT23-6 1-8 DS51793A_CN 12
1.3.2 PICkit MCP3421 SOT23-6 Communication -----> Script -----> Script Builder -----> -----> 1-9 DS51793A_CN 13
MCP3421 SOT23-6 1.3.2.1 1. Example I 2 C Scripts I 2 C WriteBlockAddrA8 Script Detail Script Detail Script Details 1. Script Detail 2. 3. 4. 1. 2. 3. Script Detail 1-10 Script Builder DS51793A_CN 14
5. Script Detail I2CSTART I2CWRTBYT 02 D0 9C I2CSTOP * * * ------> ------> 1 W/R = 1101-0000 ------> 2 1001-1100 6 * (A2, A1, A0) = (0,0,0) MCP3421 DS51793A_CN 15
MCP3421 SOT23-6 2 9C 9C - - 18-1x 1-11 I 2 C DS51793A_CN 16
1.3.2.2 1. Script Detail 2 3 2. Script Name MCP3421_Write 3. Save Script 4. Execute Script PICkit I 2 C MCP3421 Users I2C Scripts I2C 5. SCL SDA Execute Script PICkit Busy LED LED PICkit Script Detail Busy LED 1-12 MCP3421 I 2 C DS51793A_CN 17
MCP3421 SOT23-6 1.3.3 PICkit 1.3.3.1 1. Example I2C Scripts ReadAddrA8 Script Detail Script Detail Script Detail Script Detail I2CSTART I2CWRTBYT 01 D1 I2CRDBYTNLB 5 I2CSTOP * * ------> ------> W/R = 1101-0001 * ------> 5 * 7 * MCP3421 (A2, A1, A0) = (0,0,0) MCP3421 DS51793A_CN 18
5 1-13 2. Script Name MCP3421_Read 3. Save Script 4. Execute Script PICkit I 2 C MCP3421 Users I2C Scripts 5. SCL SDA Execute Script PICkit Busy LED LED PICkit Script Detail Busy LED DS51793A_CN 19
MCP3421 SOT23-6 5 5 4 RDY 1 4 RDY 0 3 2 1 101AD = 65965 65865 x 15.625 mv (LSB) = 1.0307 V PGA = 1 PGA *18 1 LSB 15.625 µv 1-14 1 1.0307V 1.0307V 1-15 DS51793A_CN 20
= 0101AD (a) 3 4 5 RDY RDY (b) 2 1-15 I 2 C 4 RDY 0 4 RDY RDY 5 1 DS51793A_CN 21
MCP3421 SOT23-6 DS51793A_CN 22
A MCP3421 SOT23-6 A.1 MCP3421 SOT23-6 DS51793A_CN 23
MCP3421 SOT23-6 A.2 DS51793A_CN 24
A.3 DS51793A_CN 25
MCP3421 SOT23-6 A.4 DS51793A_CN 26
A.5 DS51793A_CN 27
MCP3421 SOT23-6 DS51793A_CN 28
B BOM MCP3421 SOT23-6 B-1 1 C1 CAP.1UF 25V CERAMIC X7R 0805 1 C2 CAP CERAMIC 10UF 6.3V X5R 0805 1 D1 LED RED ORANGE CLEAR 0805 SMD Panasonic - ECG Panasonic - ECG LITE-ON INC ECJ-2VB1E104K ECJ-2FB0J106K LTST-C170EKT 1 J1 CONN HEADER 6POS.100 R/A TIN 1 PCB RoHS PCB MCP3421EV 2 R1 R3 RES 4.99K OHM 1/8W 1% 0805 SMD Molex/Waldom Electronics Corp 22-05-2061 104-00124 Panasonic - ECG ERJ-6ENF4991V 2 R2 R4 1 R5 RES 470 OHM 1/8W 5% 0805 SMD Panasonic - ECG ERJ-6GEYJ471V 1 U1 I 2 C 18 Microchip Technology Inc. MCP3421A0T-E/OT 7 VDD Vin+ Vin- GND SCL SDA VDD TEST POINT PC COMPACT SMT Keystone Electronics 5016 PCB BOM RoHS DS51793A_CN 29
Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 1-480-792-7200 Fax: 1-480-792-7277 http://www.microchip.com/ support www.microchip.com Atlanta Duluth, GA Tel: 1-678-957-9614 Fax: 1-678-957-1455 Boston Westborough, MA Tel: 1-774-760-0087 Fax: 1-774-760-0088 Chicago Itasca, IL Tel: 1-630-285-0071 Fax: 1-630-285-0075 Cleveland Independence, OH Tel: 1-216-447-0464 Fax: 1-216-447-0643 Dallas Addison, TX Tel: 1-972-818-7423 Fax: 1-972-818-2924 Detroit Farmington Hills, MI Tel: 1-248-538-2250 Fax: 1-248-538-2260 Indianapolis Noblesville, IN Tel: 1-317-773-8323 Fax: 1-317-773-5453 Los Angeles Mission Viejo, CA Tel: 1-949-462-9523 Fax: 1-949-462-9608 Santa Clara Santa Clara, CA Tel: 1-408-961-6444 Fax: 1-408-961-6445 Toronto Mississauga, Ontario, Canada Tel: 1-905-673-0699 Fax: 1-905-673-6509 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 Tel: 86-10-8569-7000 Fax: 86-10-8528-2104 Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 Tel: 86-23-8980-9588 Fax: 86-23-8980-9500 Tel: 86-571-2819-3187 Fax: 86-571-2819-3189 Tel: 852-2401-1200 Fax: 852-2401-3431 Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 Tel: 86-755-8203-2660 Fax: 86-755-8203-1760 Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 Tel: 86-592-238-8138 Fax: 86-592-238-8130 Tel: 86-756-321-0040 Fax: 86-756-321-0049 Tel: 886-7-536-4818 Fax: 886-7-330-9305 Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Tel: 886-3-5778-366 Fax: 886-3-5770-955 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 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-2566-1512 Fax: 91-20-2566-1513 Japan - Yokohama Tel: 81-45-471-6166 Fax: 81-45-471-6122 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 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 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 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 08/02/11 DS51793A_CN 30