The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

Precision Analog Digital Converter (ADC) Current Output Digital Analog


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



MSC1200 MSC1201 MSC1202
Precision Analog Digital Converter (ADC) Current Output Digital Analog Converter (DAC) with 8051 Microcontroller Flash Memory
ANALOG Peripheral Features Digital Pins Additional 32-Bit Accumulator 16-Bit Timer/Counters System Timers Programmable Watchdog Timer Full-Duplex USART Basic Basic Power Management Control Internal Clock Divider Idle Mode Current 200mA Stop Mode Current 100nA Digital Brownout Reset Analog Low-Voltage Detect Interrupt Sources
MSC1200 MSC1201:
Bits Missing Codes Bits Effective Resolution 10Hz Noise: 75nV MSC1202: Bits Missing Codes Bits Effective Resolution 200Hz Noise: 600nV From Precision On-Chip Voltage Reference Diff/Single-Ended Channels (MSC1200) Diff/Single-Ended Channels (MSC1201/02) On-Chip Offset/Gain Calibration Offset Drift: 0.1ppm/°C Gain Drift: 0.5ppm/°C On-Chip Temperature Sensor Selectable Buffer Input Signal-Source Open-Circuit Detect 8-Bit Current
GENERAL
Each Device Unique Serial Number Packages:
TQFP-48 (MSC1200) QFN-36 (MSC1201/02) Power: 3.0V, 1MHz Industrial Temperature Range: -40°C +125°C Power Supply: 2.7V 5.25V
DIGITAL Microcontroller Core 8051-Compatible High-Speed Core: Clocks Instruction Cycle 33MHz On-Chip Oscillator with 32kHz Capability Single Instruction 121ns Dual Data Pointer Memory Flash Memory Flash Memory Partitioning Endurance Erase/Write Cycles, 100-Year Data Retention Bytes Data SRAM In-System Serially Programmable Flash Memory Security Boot
APPLICATIONS
Industrial Process Control Instrumentation Liquid/Gas Chromatography Blood Analysis Smart Transmitters Portable Instruments Weigh Scales Pressure Transducers Intelligent Sensors Portable Applications Systems
Please aware that important notice concerning availability, standard warranty, critical applications Texas Instruments semiconductor products disclaimers thereto appears this data sheet. trademarks property their respective owners.
PRODUCTION DATA information current publication date. Products conform specifications terms Texas Instruments standard warranty. Production processing does necessarily include testing parameters.
Copyright 2004-2006, Texas Instruments Incorporated
www.ti.com
MSC1200 MSC1201 MSC1202
www.ti.com
PACKAGE/ORDERING INFORMATION(1)
PRODUCT MSC1200Y2 MSC1200Y3 MSC1201Y2 MSC1201Y3 MSC1202Y2 MSC1202Y3 FLASH MEMORY (BYTES) RESOLUTION (BITS) PACKAGE MARKING MSC1200Y2 MSC1200Y3 MSC1201Y2 MSC1201Y3 MSC1202Y2 MSC1202Y3
most current package ordering information, Package Option Addendum located this datasheet, refer site www.ti.com.
MSC120x FAMILY FEATURES(1) Flash Program Memory (Bytes) Flash Data Memory (Bytes) Internal Scratchpad (Bytes) MSC120xY2(2) MSC120xY3(2)
This integrated circuit damaged ESD. Texas Instruments recommends that integrated circuits handled with appropriate precautions. Failure observe proper handling installation procedures cause damage. damage range from subtle performance degradation complete device failure. Precision integrated circuits more susceptible damage because very small parametric changes could cause device meet published specifications.
peripheral features same devices; flash memory size only difference. last digit part number represents onboard flash size (2N)kBytes.
ABSOLUTE MAXIMUM RATINGS(1)
MSC120x Analog Inputs Momentary Input current Input voltage Power Supply DVDD DGND AVDD AGND AGND DGND VREF AGND Digital input voltage DGND Digital output voltage DGND Maximum junction temperature Max) Operating temperature range Storage temperature range Package power dissipation Output current, pins Output short-circuit High Thermal resistance Digital Outputs Output current source/sink current Power maximum Continuous Junction ambient (qJA) Junction case (qJC) (1s) -0.3 -0.3 -0.3 +0.3 -0.3 AVDD -0.3 DVDD -0.3 DVDD +150 +125 +150 TAMBIENT)/qJA 21.9 103.7 21.9 °C/W °C/W °C/W Continuous AGND AVDD UNITS
Stresses above those listed under Absolute Maximum Ratings cause permanent damage device. Exposure absolute maximum conditions extended periods affect device reliability.
www.ti.com
MSC1200 MSC1201 MSC1202
specifications from TMIN TMAX, DVDD +2.7V +5.25V, fMOD 15.625kHz, Buffer fDATA 10Hz, Bipolar Mode, VREF (REF IN+) (REF IN-) +2.5V, unless otherwise noted. MSC120x PARAMETER Analog Input (AIN0-AIN5, AINCOM) Buffer Analog Input Range Full-Scale Input Voltage Range Differential Input Impedance Input Current Fast Settling Filter Bandwidth Sinc2 Filter Sinc3 Filter Programmable Gain Amplifier Input Capacitance Input Leakage Current Burnout Current Sources Offset Offset Range Offset Resolution Offset Full-Scale Gain Error Offset Full-Scale Gain Error Drift System Performance MSC1200, MSC1201 Resolution MSC1202 MSC1200, MSC1201 ENOB Output Noise MSC1201, Sinc3 Filter, Decimation Missing Codes Integral Nonlinearity Offset Error Offset Drift(2) Gain Error(3) Gain Error Drift(2) System Gain Calibration Range System Offset Calibration Range Common-Mode Rejection 60Hz, fDATA 10Hz 50Hz, fDATA 50Hz 60Hz, fDATA 60Hz Normal-Mode Rejection Power-Supply Rejection 50Hz, fDATA 50Hz 60Hz, fDATA 60Hz -20log(VOUT/VDD)(4), MSC1202, Sinc3 Filter Point Fit, Differential Input After Calibration Before Calibration After Calibration Before Calibration ±0.0004 0.005 ±0.0015 MSC1202 Typical Characteristics Bits Bits FS/°C ppm/°C Bits Bits Bits Bits ±1.0 ±VREF/(2 Bits Range ppm/°C Buffer (In+) (In-), Bipolar Mode Buffer Buffer -3dB -3dB -3dB User-Selectable Gain Range Buffer Multiplexer Channel OFF, +25°C Buffer 7/PGA(1) 0.469 fDATA 0.318 fDATA 0.262 fDATA AGND AGND 50mV AVDD AVDD ±VREF/PGA CONDITION UNITS
ELECTRICAL CHARACTERISTICS: AVDD
input impedance same that (that 7M/64). Calibration minimize these errors. gain self-calibration cannot have more than AVDD -1.5V with Buffer calibrate gain, turn Buffer OFF. VOUT change digital result.
MSC1200 MSC1201 MSC1202
www.ti.com
specifications from TMIN TMAX, DVDD +2.7V +5.25V, fMOD 15.625kHz, Buffer fDATA 10Hz, Bipolar Mode, VREF (REF IN+) (REF IN-) +2.5V, unless otherwise noted. MSC120x PARAMETER Voltage Reference Input Reference Input Range VREF VREF Common-Mode Rejection Input Current On-Chip Voltage Reference VREFH +25°C Output Voltage Short-Circuit Current Source Short-Circuit Current Sink Short-Circuit Duration Startup Time from Power Temperature Sensor Temperature Sensor Voltage Temperature Sensor Coefficient IDAC Output Characteristics IDAC Resolution Full-Scale Output Current Maximum Short-Circuit Current Duration Compliance Voltage IDAC Zero Code Current IDAC Analog Power-Supply Requirements Analog Power-Supply Voltage Analog Current AVDD OFF, External Clock Mode, Analog OFF, ALVD OFF, PDADC PDIDAC Buffer Analog Power-Supply Current Current (IADC) 128, Buffer Buffer 128, Buffer VREF Supply Current (IVREF) IDAC Supply Current (IIDAC) IDAC 4.75 5.25 IDAC IDAC 0FFh Indefinite AVDD Bits +25°C MSC1200 MSC1201, MSC1202 µV/°C µV/°C Sink Source CREFOUT 0.1µF VREFH 2.49 1.23 1.25 Indefinite 2.51 1.27 IN+, VREF (REFIN+) (REFIN-) VREF 2.5V, AGND AVDD(3) AVDD CONDITION UNITS
ELECTRICAL CHARACTERISTICS: AVDD (continued)
input impedance same that (that 7M/64). Calibration minimize these errors. gain self-calibration cannot have more than AVDD -1.5V with Buffer calibrate gain, turn Buffer OFF. VOUT change digital result.
www.ti.com
MSC1200 MSC1201 MSC1202
ELECTRICAL CHARACTERISTICS: AVDD
specifications from TMIN TMAX, DVDD +2.7V +5.25V, VREF (REF IN+) (REF IN-) +1.25V, unless otherwise noted. fMOD 15.625kHz, Buffer fDATA 10Hz, Bipolar Mode, MSC120x PARAMETER Analog Input (AIN0-AIN5, AINCOM) Buffer Analog Input Range Full-Scale Input Voltage Range Differential Input Impedance Input Current Fast Settling Filter Bandwidth Sinc2 Filter Sinc3 Filter Programmable Gain Amplifier Input Capacitance Input Leakage Current Burnout Current Sources Offset Offset Range Offset Resolution Offset Full-Scale Gain Error Offset Full-Scale Gain Error Drift System Performance MSC1200, MSC1201 Resolution MSC1202 MSC1200, MSC1201 ENOB Output Noise MSC1200, MSC1201, Sinc3 Filter, Decimation MSC1202, Sinc3 Filter Integral Nonlinearity Offset Error Offset Drift(2) Gain Error(3) Gain Error Drift(2) System Gain Calibration Range System Offset Calibration Range Common-Mode Rejection 60Hz, fDATA 10Hz 50Hz, fDATA 50Hz 60Hz, fDATA 60Hz Normal-Mode Rejection Power-Supply Rejection fSIG 50Hz, fDATA 50Hz fSIG 60Hz, fDATA 60Hz -20log(VOUT/VDD)(4), Point Fit, Differential Input After Calibration Before Calibration After Calibration Before Calibration ±0.0004 0.005 ±0.0015 MSC1202 Typical Characteristics Bits Bits FS/°C ppm/°C Bits Bits Bits Bits ±1.5 Bits Range ppm/°C Buffer (In+) (In-), Bipolar Mode Buffer Buffer -3dB -3dB -3dB User-Selectable Gain Range Buffer Multiplexer Channel Off, +25°C Buffer 7/PGA(1) 0.469 fDATA 0.318 fDATA 0.262 fDATA AGND AGND 50mV AVDD AVDD ±VREF/PGA CONDITIONS UNITS
Missing Codes
input impedance same that (that 7M/64). Calibration minimize these errors. gain self-calibration cannot have more than AVDD -1.5V with Buffer calibrate gain, turn Buffer OFF. VOUT change digital result.
MSC1200 MSC1201 MSC1202
www.ti.com
ELECTRICAL CHARACTERISTICS: AVDD (continued)
specifications from TMIN TMAX, DVDD +2.7V +5.25V, VREF (REF IN+) (REF IN-) +1.25V, unless otherwise noted. fMOD 15.625kHz, Buffer fDATA 10Hz, Bipolar Mode, MSC120x PARAMETER Voltage Reference Input Reference Input Range VREF VREF Common-Mode Rejection Input Current On-Chip Voltage Reference Output Voltage Short-Circuit Current Source Short-Circuit Current Sink Short-Circuit Duration Startup Time from Power Temperature Sensor Temperature Sensor Voltage Temperature Sensor Coefficient IDAC Output Characteristics IDAC Resolution Full-Scale Output Source Current Maximum Short-Circuit Current Duration Compliance Voltage IDAC Zero Code Current IDAC Analog Power-Supply Requirements Analog Power-Supply Voltage Analog Current AVDD OFF, External Clock Mode, Analog OFF, ALVD OFF, PDADC PDIDAC Buffer Analog Power-Supply Current Current (IADC) 128, Buffer Buffer 128, Buffer VREF Supply Current (IVREF) IDAC Supply Current (IIDAC) IDAC Indefinite AVDD Bits +25°C MSC1200 MSC1201, MSC1202 µV/°C µV/°C Sink Source CREFOUT 0.1µF VREFH +25°C 1.23 1.25 Indefinite 1.27 IN+, VREF (REFIN+) (REFIN-) VREF 1.25V, AGND 1.25 AVDD(3) AVDD CONDITIONS UNITS
input impedance same that (that 7M/64). Calibration minimize these errors. gain self-calibration cannot have more than AVDD -1.5V with Buffer calibrate gain, turn Buffer OFF. VOUT change digital result.
www.ti.com
MSC1200 MSC1201 MSC1202
DIGITAL CHARACTERISTICS: DVDD 2.7V 5.25V
specifications from TMIN TMAX, FMCON 10h, digital outputs high, PDCON (all peripherals PDCON (all peripherals OFF), unless otherwise specified. MSC120x PARAMETER Digital Power-Supply Requirements DVDD Normal Mode, fOSC 1MHz, Peripherals Normal Mode, fOSC 1MHz, Peripherals Normal Mode, fOSC 8MHz, Peripherals Normal Mode, fOSC 8MHz, Peripherals Digital Power-Supply Current Internal Oscillator Mode (14.8MHz nominal), Peripherals Internal Oscillator Mode (14.8MHz nominal), Peripherals Stop Mode, External Clock DVDD Normal Mode, fOSC 1MHz, Peripherals Normal Mode, fOSC 1MHz, Peripherals Normal Mode, fOSC 8MHz, Peripherals Normal Mode, fOSC 8MHz, Peripherals Internal Oscillator Mode (14.8MHz nom), Peripherals Digital Power-Supply Current Internal Oscillator Mode (14.8MHz nom), Peripherals Internal Oscillator Mode (29.5MHz nom), Peripherals Internal Oscillator Mode (29.5MHz nom), Peripherals Stop Mode, External Clock Digital Input/Output (CMOS) Logic Level (except pin) (except pin) DVDD DVDD DGND 30mA, (20mA) 30mA, (20mA) Tolerance ±25% DVDD DGND DVDD DVDD DVDD DVDD DVDD 4.75 5.25 CONDITIONS UNITS
Ports Input Leakage Current, Input Mode Hysteresis VOL, Ports Output Modes
VOH, Ports Strong Drive Output Ports Pull-Up Resistors
FLASH MEMORY CHARACTERISTICS: DVDD 2.7V 5.25V
MSC120x PARAMETER Flash Memory Endurance Flash Memory Data Retention Mass Page Erase Time Flash Memory Write Time with Value FTCON, from TMIN TMAX with Value FTCON CONDITIONS 100,000 1,000,000 UNITS cycles Years
MSC1200 MSC1201 MSC1202
www.ti.com
ELECTRICAL CHARACTERISTICS(1): DVDD 2.7V 5.25V
MSC120x PARAMETER PHASE LOCK LOOP (PLL) Input Frequency Range Mode Mode Lock Time INTERNAL OSCILLATOR (IO) Mode Mode Settling Time CONDITION External Crystal/Clock Frequency (fOSC) PLLDIV (default) PLLDIV (must user), DVDD Within Typical Characteristics DVDD DVDD Within 32.768 14.8 29.5 14.8 29.5 UNITS
Parameters valid over operating temperature range, unless otherwise specified.
EXTERNAL CLOCK DRIVE TIMING: FIGURE
SYMBOL External Clock Mode fOSC(1) 1/tOSC(1) fOSC(1) tHIGH tLOW PARAMETER External Crystal Frequency (fOSC) External Clock Frequency (fOSC) External Ceramic Resonator Frequency (fOSC) High Time(2) Time(2) Rise Time(2) Fall Time(2) 2.7V 3.6V 4.75V 5.25V UNITS
1/fOSC oscillator clock period clock divider These values characterized 100% production tested.
tHIGH 0.8V 0.8V tLOW 0.8V tOSC
0.8V
Figure External Clock Drive SERIAL FLASH PROGRAMMING TIMING: FIGURE
SYMBOL tRRD tRFD PARAMETER width rise P1.0 internal pull high falling start Input signal falling setup time falling P1.0 hold time tOSC tOSC UNITS
P1.0/PROG NOTE: P1.0 internally pulled- with ~11k during high. tRFD,
Figure Serial Flash Programming Timing
www.ti.com
MSC1200 MSC1201 MSC1202
CONFIGURATIONS
View
P3.6/SCK/SCL/CLKS
TQFP
P3.0/RxD0 P3.1/TxD0 P3.3/INT1 P3.2/INT0 P1.7/INT5 DVDD DVDD DGND DGND P1.6/INT4 P1.5/INT3 P1.4/INT2/SS P1.3/DIN P1.2/DOUT P1.1 P1.0/PROG NC(1) AIN0
P3.5/T1 AIN6
NC(1) XOUT
DGND
NC(1) NC(1) NC(1)
MSC1200
AVDD AGND AGND AINCOM AIN7 AIN5 AIN4 AIN3 AIN2 REFIN-
REFOUT/REFIN+
P3.4/T0
DGND
DVDD
NC(1)
P3.7
IDAC
NOTE: pins should left unconnected.
P3.6/SCK/SCL/CLKS
View
NC(1)
AIN1
P3.0/RxD0 P3.1/TxD0 P3.3/INT1 P3.2/INT0 P1.7/INT5
P3.5/T1
XOUT DGND NC(1) AVDD AGND AGND AINCOM
REFOUT/REFIN+
P3.4/T0
P3.7
DVDD DGND P1.6/INT4 P1.5/INT3 P1.4/INT2/SS P1.3/DIN P1.2/DOUT P1.1 P1.0/PROG
MSC1201 MSC1202
AIN5
AIN4
AIN3
AIN2
AIN1
IDAC
REFIN-
NOTE: should left unconnected.
AIN0
MSC1200 MSC1201 MSC1202
www.ti.com
ASSIGNMENTS
NAME MSC1200 MSC1201/1202 DESCRIPTION Connection. Leave unconnected. crystal oscillator supports parallel resonant AT-cut fundamental frequency crystals ceramic resonators. also input there external clock source instead crystal. must left floating. crystal oscillator XOUT supports parallel resonant AT-cut fundamental frequency crystals ceramic resonators. XOUT serves output crystal amplifier. Digital Ground Holding reset input high tOSC periods will reset device. Analog Power Supply Analog Ground Analog Input (can analog common single-ended inputs analog input differential inputs) IDAC Output Internal Voltage Reference Output/Voltage Reference Positive Input (required CREF 0.1µF) Voltage Reference Negative Input (tie AGND internal voltage reference) Analog Input Channel Analog Input Channel Analog Input Channel Analog Input Channel Analog Input Channel Analog Input Channel Analog Input Channel Analog Input Channel Port bidirectional port (refer P1DDRL, AEh, P1DDRH, AFh, port configuration control). alternate functions Port listed below. Port P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 DVDD P3.0-P3.7 38-45 29-36 Alternate Name(s) PROG DOUT INT2/SS INT3 INT4 INT5 Serial data Serial data External interrupt Slave Select External interrupt External interrupt External interrupt Alternate Serial programming mode (must DGND reset)
XOUT DGND AVDD AGND AINCOM IDAC REFOUT/REF AIN7 AIN6 AIN5 AIN4 AIN3 AIN2 AIN1 AIN0 P1.0-P1.7
26-32,
19-25,
Digital Power Supply Port bidirectional port (refer P3DDRL, B3h, P3DDRH, B4h, port configuration control). alternate functions Port listed below. Port P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 Alternate Name(s) RxD0 TxD0 INT0 INT1 SCK/SCL/CLKS Alternate Serial port input Serial port output External interrupt External interrupt Timer external input Timer external input various clocks (refer PASEL, F2h)
www.ti.com
MSC1200 MSC1201 MSC1202
TYPICAL CHARACTERISTICS: MSC1200 MSC1201 ONLY
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified. EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA1 PGA1 PGA8 PGA32 PGA64 PGA2 PGA4 PGA8
EFFECTIVE NUMBER BITS DATA RATE ENOB (rms) Sinc3 Filter, Buffer Data Rate (SPS) 1000
ENOB (rms)
PGA128
PGA16
PGA32
PGA64
PGA128
Sinc3 Filter, Buffer
1000 Decimation Ratio fMOD
1500 fDATA
2000
EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA2 PGA4 PGA8
EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA1 PGA2 PGA4 PGA8
ENOB (rms)
PGA1
ENOB (rms)
PGA16 PGA32 PGA64 PGA128
1000 Decimation Ratio fDATA 1500 2000 Sinc3 Filter, Buffer
PGA32 PGA16 PGA64 PGA128
1000 Decimation Ratio fDATA 1500 2000 AVDD Sinc3 Filter, VREF 1.25V, Buffer
EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA2 PGA4 PGA8
EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA2 PGA4 PGA8
ENOB (rms)
PGA1
ENOB (rms)
PGA1
1000 Decimation Ratio fMOD fDATA 1500 2000 AVDD Sinc3 Filter, VREF 1.25V, Buffer
PGA16 PGA32 PGA64 PGA128
PGA32
PGA16
PGA64
1000 Decimation Ratio 1500 fMOD fDATA
PGA128
Sinc2 Filter
2000
MSC1200 MSC1201 MSC1202
www.ti.com
TYPICAL CHARACTERISTICS: MSC1200 MSC1201 ONLY (Continued)
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified. FAST SETTLING FILTER EFFECTIVE NUMBER BITS DECIMATION RATIO ENOB 1000 Decimation Value 1500 2000 Data Rate (SPS) 100k Gain ENOB (rms) Gain fMOD 31.25kHz Gain fMOD 15.6kHz fMOD 203kHz fMOD 110kHz EFFECTIVE NUMBER BITS fMOD (set with ACLK)
fMOD 62.5kHz
EFFECTIVE NUMBER BITS fMOD (set with ACLK) WITH FIXED DECIMATION 2020 4500 Number Occurrences 4000 3500 3000 2500 2000 1500 1000 Data Rate (SPS) 100k
HISTOGRAM OUTPUT DATA
ENOB (rms)
NOISE INPUT SIGNAL Noise (rms,
EFFECTIVE NUMBER BITS INPUT SIGNAL (Internal External VREF) 22.0 21.5 21.0 Internal ENOB (rms) 20.5 20.0 19.5 19.0 18.5 18.0
External
www.ti.com
MSC1200 MSC1201 MSC1202
TYPICAL CHARACTERISTICS: MSC1202 ONLY
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified. EFFECTIVE NUMBER BITS DATA RATE ENOB (rms) ENOB (rms) Data Rate (SPS) 1000 PGA128 Sinc3 Filter, Buffer PGA1 1000 Decimation Ratio fMOD fDATA 1500 2000 Sinc3 Filter, Buffer PGA128 PGA1 EFFECTIVE NUMBER BITS DECIMATION RATIO
EFFECTIVE NUMBER BITS DECIMATION RATIO ENOB (rms) 1000 Decimation Ratio fDATA 1500 2000 PGA128 Sinc3 Filter, Buffer ENOB (rms) PGA1 PGA1
EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA128
AVDD Sinc3 Filter, VREF 1.25V, Buffer 1000 Decimation Ratio fMOD fDATA 1500 2000
EFFECTIVE NUMBER BITS DECIMATION RATIO ENOB (rms) 1000 Decimation Ratio fMOD fDATA 1500 2000 AVDD Sinc3 Filter, VREF 1.25V, Buffer PGA128 ENOB (rms) PGA1 PGA1
EFFECTIVE NUMBER BITS DECIMATION RATIO
PGA128
Sinc2 Filter
1000 Decimation Ratio
1500 fMOD fDATA
2000
MSC1200 MSC1201 MSC1202
www.ti.com
TYPICAL CHARACTERISTICS: MSC1202 ONLY (Continued)
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified. FAST SETTLING FILTER EFFECTIVE NUMBER BITS DECIMATION RATIO ENOB (rms) 1000 Decimation Ratio 1500 fMOD fDATA 2000 Data Rate (SPS) 100k Fast Settling Filter fMOD 62.5kHz ENOB (rms) fMOD 15.6kHz fMOD 31.25kHz fMOD 110kHz fMOD 203kHz EFFECTIVE NUMBER BITS fMOD (set with ACLK)
EFFECTIVE NUMBER BITS fMOD (set with ACLK) WITH FIXED DECIMATION
ENOB (rms)
Data Rate (SPS) 100k
www.ti.com
MSC1200 MSC1201 MSC1202
TYPICAL CHARACTERISTICS: DEVICES
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified. INTEGRAL NONLINEARITY INPUT VOLTAGE (ppm) AVDD VREF 2.5V Buffer -40_C +25_ -55_ (ppm) +85_ AVDD VREF 2.5V Buffer +25_ -40_C INTEGRAL NONLINEARITY INPUT VOLTAGE
+85_C -2.5 -2.0 -1.5 -1.0 -0.5
+125_C
-2.5 -2.0 -1.5 -1.0 -0.5
Input Voltage
Input Voltage
INTEGRAL NONLINEARITY INPUT SIGNAL (ppm (ppm -VREF +VREF VREF AVDD Buffer
INTEGRAL NONLINEARITY VREF VREF Buffer
AVDD
AVDD VREF
INTEGRAL NONLINEARITY ERROR Offset (ppm) (ppm Setting AVDD VREF 2.5V
OFFSET TEMPERATURE (Offset Calibration Only) AVDD AVDD
Temperature (_C)
MSC1200 MSC1201 MSC1202
www.ti.com
TYPICAL CHARACTERISTICS: DEVICES (Continued)
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified. ANALOG SUPPLY CURRENT ANALOG SUPPLY VOLTAGE Analog Supply Current (mA) Analog Supply Voltage -40_C -55_C IADC (µA) +25_ DVDD AVDD VREF 1.25V +125_ +85_ Setting AVDD Buffer AVDD Buffer AVDD Buffer AVDD Buffer POWER-SUPPLY CURRENT
OFFSET DAC: OFFSET TEMPERATURE 1.00008 1.00006 1.00004 Normalized Gain 1.00002 0.99998 0.99996 0.99994
OFFSET DAC: GAIN TEMPERATURE
Offset (ppm FSR)
0.99992 +100 +120 +140
+100 +120 +140 Temperature (_C)
Temperature (_C)
DIGITAL SUPPLY CURRENT EXTERNAL CLOCK FREQUENCY Digital Supply Current (mA) DVDD Normal Mode DVDD Normal Mode
DIGITAL SUPPLY CURRENT CLOCK DIVIDER Divider Values Digital Supply Current (mA)
DVDD Idle Mode
1024
DVDD Idle Mode Clock Frequency (MHz)
Clock Frequency (MHz)
www.ti.com
MSC1200 MSC1201 MSC1202
TYPICAL CHARACTERISTICS: DEVICES (Continued)
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified.
DIGITAL SUPPLY CURRENT DIGITAL SUPPLY VOLTAGE Digital Supply Current (mA) +85_C Digital Supply Voltage -40_C +25_C -55_C DVDD AVDD VREF 1.25V +125_ Normalized Gain
NORMALIZED GAIN
External Reference Buffer
External Reference Buffer
Setting
VOLTAGE REFERENCE INPUT CURRENT SETTING Input Current (µA) Gain VREF 2.5V fMOD 62.5kHz VREF Change VREF 1.25V fMOD 62.5kHz VREF 2.5V fMOD 15.6kHz VREF 1.25V fMOD 15.6kHz 101.0 100.8 100.6 100.4 100.2 100.0 99.8 99.6 99.4 99.2 99.0 1.25V
VOLTAGE REFERENCE CHANGE ANALOG SUPPLY VOLTAGE
2.5V
2.75 3.25 3.75 4.25 4.75 5.25 Analog Supply Voltage
INTERNAL OSCILLATOR LOW-FREQUENCY MODE TEMPERATURE 16.0 15.5 Frequency (MHz) 15.0 14.5 14.0 13.5 3.3V 13.0 2.7V 12.5 12.0 Temperature 5.25V 4.75V Frequency (MHz)
INTERNAL OSCILLATOR HIGH-FREQUENCY MODE TEMPERATURE
5.25V 4.75V Temperature (_C)
MSC1200 MSC1201 MSC1202
www.ti.com
TYPICAL CHARACTERISTICS: DEVICES (Continued)
AVDD +5V, DVDD +5V, fOSC 8MHz, fMOD 15.625kHz, Bipolar Mode, Buffer VREF (REF IN+) (REF IN-) +2.5V, unless otherwise specified.
IDAC OUTPUT CURRENT IDAC OUTPUT VOLTAGE IDAC Output Current (mA) IDAC Output Votage IDAC AVDD AVDD IDAC Current (µA) 1020 1010 1000
IDAC OUTPUT CURRENT TEMPERATURE ANALOG SUPPLY VOLTAGE -55_C -40_C +25_
+85_C +125_
2.75 3.25 3.75 4.25 4.75 5.25 Analog Supply Voltage
IDAC INTEGRAL NONLINEARITY IDAC CODE Output Voltage IDAC (Bits) -0.5
DIGITAL OUTPUT VOLTAGE Output
Output
IDAC Code
Output Current (mA)
HISTOGRAM TEMPERATURE SENSOR VALUES Occurrences 112.4 112.7 113.1 113.4 113.7 114.1 114.4 114.7 115.1 115.4 115.7 116.1 116.4 116.7 117.1
Temperature Sensor Value (mV)
www.ti.com
MSC1200 MSC1201 MSC1202
DESCRIPTION
MSC1200Yx, MSC1201Yx, MSC1202Yx completely integrated families mixed-signal devices incorporating high-resolution, delta-sigma ADC, 8-bit cuurent output DAC, input multiplexer, burnout detect current sources, selectable buffered input, offset DAC, programmable gain amplifier (PGA), temperature sensor, voltage reference, 8-bit 8051 microcontroller, Flash Program Memory, Flash Data Memory, Data SRAM, shown Figure MSC1200, MSC1201, MSC1202 will referred MSC120x this document, unless otherwise noted. On-chip peripherals include additional 32-bit summation register, basic SPI, basic I2C, USART, 8-bit digital input/output ports, watchdog timer, low-voltage detect, on-chip power-on reset, brownout reset, timer/counters, system clock divider, PLL, on-chip oscillator, external internal interrupts. devices accept differential single-ended signals directly from transducer. provides bits (MSC1200/01) bits (MSC1202) resolution bits (MSC1200/01) bits (MSC1202) no-missing-code performance using Sinc3 filter with
programmable sample rate. also selectable filter that allows high-resolution, single-cycle conversions. microcontroller core 8051 instruction compatible. microcontroller core optimized 8051 core that executes three times faster than standard 8051 core, given same clock source. This design makes possible device lower external clock frequency achieve same performance lower power than standard 8051 core. MSC120x allow users uniquely configure Flash Memory meet needs their applications. Flash programmable down +2.7V using serial programming. Flash endurance typically Erase/Write cycles. parts have separate analog digital supplies, which independently powered from +2.7V +5.25V. operation, power dissipation part typically less than 3mW. MSC1200 available TQFP-48 package. MSC1201 MSC1202 both available QFN-36 package. MSC120x designed high-resolution measurement applications smart transmitters, industrial process control, weigh scales, chromatography, portable instrumentation.
DVDD DGND
AVDD AVDD
AGND
REFOUT/REFIN+
Burnout Detect
Temperature Sensor
VREF
ALVD DBOR
Timers/ Counters
AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6(2) AIN7(2) AINCOM
8-Bit Offset
Alternate Functions
Modulator FLASH Bytes SRAM
Digital Filter PORT1 32-Bit
DOUT PROG USART0 SCK/SCL/CLKS
8051 PORT3 System Clock Divider On-Chip Oscillator
Burnout Detect
Bytes System FLASH
AGND IDAC 8-Bit IDAC
NOTES: must tied AGND when using internal VREF. AIN6 AIN7 available only MSC1200.
XOUT
Figure Block Diagram
MSC1200 MSC1201 MSC1202
www.ti.com
ENHANCED 8051 CORE
instructions MSC120x families perform exactly same functions they would standard 8051. effects bits, flags, registers same; however, timing different. MSC120x families efficient 8051 core that results improved instruction execution speed between times faster than original core same external clock speed clock cycles instruction versus clock cycles instruction, shown Figure This efficiency translates into effective throughput improvement more than times, using same code same external clock speed. Therefore, device frequency 33MHz MSC120x actually performs equivalent execution speed 82.5MHz compared standard 8051 core. This increased performance allows device slower clock speeds, which reduces system noise power consumption, provides greater throughput. This performance difference seen Figure timing software loops will faster with MSC120x. However, timer/counter operation MSC120x maintained clocks increment optionally clocks increment. MSC120x also provide dual data pointers (DPTRs).
Single-Byte, Single-Cycle Instruction Internal Internal PSEN Internal AD0-AD7 Internal A8-A15 Cycles Cycles
Standard 8051 Timing
MSC120x Timing
PSEN AD0-AD7 PORT Single-Byte, Single-Cycle Instruction
Figure Comparison MSC120x Timing Standard 8051 Timing
fCLK instr_cycle
cpu_cycle
Figure Instruction Timing Cycle
www.ti.com
MSC1200 MSC1201 MSC1202
Furthermore, improvements were made peripheral features that off-load processing from core, user, further improve efficiency. These iprovements allow 32-bit addition, subtraction shifting accomplished instruction cycles, compared hundreds instruction cycles executed through software implementation. instance, 32-bit accumulation done through summation register significantly reduce processing overhead multiple-byte data from other sources.
differently than MSC1200 MSC1201.) This gives user ability subtract software functions migrate between family members. Thus, MSC120x become standard device used across several application platforms.
Family Development Tools
MSC120x fully compatible with standard 8051 instruction set. This compatibility means that users develop software MSC120x with their existing 8051 development tools. Additionally, complete, integrated development environment provided with each demo board, third-party developers also provide support.
Family Device Compatibility
hardware functionality configuration across MSC120x families fully compatible. user, only difference between family members memory configuration. This design makes migration between family members simple. Code written MSC1200Y2, MSC1201Y2, MSC1202Y2 executed directly MSC1200Y3, MSC1201Y3, MSC1202Y3, respectively. (However, registers MSC1202 mapped
Power-Down Modes
MSC120x power several on-chip peripherals into Idle mode. This accomplished shutting clocks those sections, shown Figure
fOSC
fSYS SYSCLK fCLK SPICON/ I2CCON PDCON.0 USEC FTCON [3:0] Flash Write Timing Flash Erase Timing (30µs 40µs) SCL/SCK
STOP
MSECL MSECH
FTCON [7:4]
(5ms 11ms) milliseconds interrupt
MSINT PDCON.1 SECINT
seconds interrupt
HMSEC
100ms WDTCON PDCON.2
watchdog
ACLK
divide
Power Down PDCON.3 Timers IDLE Clock
ADCON3 ADCON2 Decimation Ratio
Output Rate
fDATA
Modulator Clock USART0
ADCON0
fSAMP (see Figure fMOD
Figure MSC120x Timing Chain Clock Control
MSC1200 MSC1201 MSC1202
www.ti.com
OVERVIEW
MSC120x structure shown Figure figure lists components that make ADC, along with corresponding special function register (SFR) associated with each component.
AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 MSC1200 AIN6 Only AIN7 AINCOM Temperature Sensor
Burnout Detect Burnout Detect
AVDD
REFIN+ fSAMP
Input Multiplexer
Buffer
Sample Hold
REFIN- AGND ADCON0 ACLK
Offset ODAC
ADMUX
AIPOL.5 REFIN+ fMOD fDATA AIE.5 AISTAT.5 FAST Modulator SINC2 SINC3 AUTO
AIPOL.6 AIE.6 AISTAT.6
Offset Calibration Register
Gain Calibration Register
Result Register
Summation Block
REFIN- ADCON1 ADCON2 ADCON3
ADRES DBh(1) SUMR
NOTE: MSC1202, this register sign-extended (Bipolar mode) zero-padded (Unipolar mode) 16-bit result registers D9h.
SSCON
Figure MSC120x Structure
www.ti.com
MSC1200 MSC1201 MSC1202
INPUT MULTIPLEXER
input multiplexer provides combination differential inputs selected input channel, shown Figure example, AIN0 selected positive differential input channel, then other channel selected negative differential input channel. With this method, possible have fully differential input channels. also possible switch polarity differential input pair negate offset voltages. addition, current sources supplied that will source sink current detect open short circuits pins.
TEMPERATURE SENSOR
On-chip diodes provide temperature sensing capability. When configuration register input diodes connected inputs ADC. other channels open. internal device power dissipation affects temperature sensor reading. recommended that internal buffer enabled temperature sensor measurements.
BURNOUT DETECT
When Burnout Detect (BOD) control configuration register (ADCON0, DCh), current sources enabled. current source positive input channel sources approximately current. current source negative input channel sinks approximately 2µA. These current sources allow detection open circuit (full-scale reading) short circuit (small differential reading) selected input differential pair. buffer should sensor burnout detection.
AIN0
AIN1 AVDD
AIN2
Burnout Detect (2µA)
INPUT BUFFER
analog input impedance always high, regardless setting (when buffer enabled). With buffer enabled, input voltage range reduced analog power-supply current higher. limitation input voltage range acceptable, then buffer always preferred. input impedance MSC120x without buffer 7M/PGA. buffer controlled state control register (ADCON0, DCh).
AIN3 AIN4 Buffer
AIN5 Burnout Detect (2µA) Temperature Sensor AVDD AVDD
MSC1200 Only
AIN6(1) AGND AIN7(1)
AINCOM
NOTE: MSC1201/MSC1202, AIN6 AIN7 tied REFIN-.
Figure Input Multiplexer Configuration
MSC1200 MSC1201 MSC1202
www.ti.com
ANALOG INPUT
When buffer selected, input impedance analog input changes with ACLK clock frequency (ACLK, F6h) gain (PGA). relationship
Impedance SAMP 1MHz Impedance ACLK Frequency
Table ENOB versus (Bipolar Mode)
MSC1200 MSC1201 ENOB(1) 10HZ (BITS) 21.7 21.5 21.4 21.2 20.8 20.4 MSC1202 ENOB(1) 200HZ (BITS) 15.6 15.5 15.4 15.4 15.3 15.2 14.2 INPUT-REFERRED NOISE MSC1200 MSC1201 (nV) 1468 74.5 74.5 MSC1202 (mV) 76.3 38.1 19.1
SETTING
FULLSCALE RANGE ±2.5 ±1.25 ±0.625 ±0.313 ±0.156 ±0.078 ±0.039 ±0.019
where ACLK frequency ACLK) ACLK ACLK
NOTE: input impedance same that (that 7M/64). Figure shows basic input structure MSC120x.
ENOB Log2(FSR/RMS Noise) Log2(224) Log2(CODES) Log2(CODES)
OFFSET
analog output from offset half full-scale range using ODAC register (SFR E6h). ODAC (Offset DAC) register 8-bit value; sign seven LSBs provide magnitude offset.
RSWITCH typical) Sampling Frequency fSAMP SAMP fMOD fMOD fMOD fMOD AGND High Impedance 18pF 36pF
MODULATOR
modulator single-loop, 2nd-order system. modulator runs clock speed (fMOD) that derived from using value Analog Clock register (ACLK, F6h). data output rate
fMOD
fACLK
Data Rate DATA where
Decimation Ratio
ACLK (ACLK
Figure Analog Input Structure (without Buffer)
Decimation Ratio [ADCON3:ADCON2]
gains 128. Using actually improve effective resolution ADC. instance, with ±2.5V full-scale range (FSR), resolve 1.5µV. With ±19mV FSR, resolve 75nV. With ±2.5V FSR, would require 26-bit resolve 75nV, shown Table
CALIBRATION
offset gain errors MSC120x, complete system, reduced with calibration. Calibration controlled through ADCON1 register (SFR DDh), bits CAL2:CAL0. Each calibration process takes seven tDATA periods (data conversion time) complete. Therefore, takes tDATA periods complete both offset gain calibration.
www.ti.com
MSC1200 MSC1201 MSC1202
system calibration, appropriate signal must applied inputs. then computes offset that will nullify offset system. system gain calibration requires positive full-scale differential input signal. then computes gain value nullify gain errors system. Each these calibrations will take seven tDATA periods complete. Calibration should performed after power should also done after change temperature, decimation ratio, buffer, power supply, voltage reference, PGA. offset will affect offset calibration; therefore, value offset should zero before performing calibration. completion calibration, Interrupt goes high, which indicates calibration finished valid data available.
Gain (dB)
SINC3 FILTER RESPONSE (-3dB 0.262 fDATA) -100 -120 fDATA
DIGITAL FILTER
Digital Filter either Fast Settling, Sinc2, Sinc3 filter, shown Figure addition, Auto mode changes Sinc filter after input channel changed. When switching channel, will Fast Settling filter next conversions, first which should discarded. will then Sinc2 followed Sinc3 filter improve noise performance. This combines low-noise advantage Sinc3 filter with quick response Fast Settling Time filter. frequency response each filter shown Figure
SINC2 FILTER RESPONSE (-3dB 0.318 fDATA) Gain (dB) -100 Adjustable Digital Filter Sinc3 -120 fDATA
Modulator
Sinc2
Data FAST SETTLING FILTER RESPONSE
Fast Settling
(-3dB 0.469 fDATA)
FILTER SETTLING TIME FILTER Sinc3 Sinc2 Fast Gain (dB) SETTLING TIME (Conversion Cycles)(1)
-100 -120 fDATA NOTE: fDATA Data Output Rate 1/tDATA
With synchronized channel changes. AUTO MODE FILTER SELECTION CONVERSION CYCLE Fast Fast Sinc2 Sinc3
Figure Filter Step Responses
Figure Filter Frequency Responses
MSC1200 MSC1201 MSC1202
www.ti.com
VOLTAGE REFERENCE
MSC120x either internal external voltage reference. voltage reference selection controlled Control Register (ADCON0, DCh). default power-up configuration voltage reference 2.5V internal. internal voltage reference selected either 1.25V 2.5V. analog power supply (AVDD) must within specified range selected internal voltage reference. valid ranges are: VREF internal (AVDD 3.3V 5.25V) VREF 1.25 internal (AVDD 2.7V 5.25V). internal VREF selected, then AGND must connected REFIN-. REFOUT/REFIN+ should also have 0.1µF capacitor connected AGND close possible pin. internal VREF used, then VREF should disabled ADCON0. external voltage reference selected, used either single-ended input differential input, ratiometric measures. When using external reference, important note that input current will increase VREF with higher settings with higher modulator frequency. external voltage reference used over input range specified Electrical Characteristics section.
RESET
MSC120x reset from following sources:
Power-on reset External reset Software reset Watchdog timer reset Brownout reset
external reset accomplished taking high tOSC periods, followed taking low. software reset accomplished through System Reset register (SRTST, 0F7h). watchdog timer reset enabled controlled through Hardware Configuration Register (HCR0) Watchdog Timer register (WDTCON, 0FFh). brownout reset enabled through Hardware Configuration Register (HCR1). Power-on reset external reset complete after clock cycles, using internal oscillator low-frequency mode. Brownout reset, watchdog timer reset, software reset complete after clock cycles, using active clock source. sources reset cause digital pins pulled high from initiation reset procedure. external reset, taking high stops device operation (crystal oscillation, internal oscillator, circuit operation) causes digital pins pulled high from that point. Taking initiates reset procedure. recommended external reset circuit shown Figure serial resistor recommended external reset circuit configuration. proper execution reset procedure, necessary keep AVDD supply above 2.0V during reset procedure.
DVDD 0.1µF
IDAC
8-bit IDAC MSC120x provides current source that used ratiometric measurements. IDAC operates from voltage reference dependent voltage reference. full-scale output current IDAC approximately (within compliance voltage range). equation IDAC output current
IDAC IDAC 3.9mA 25°C)
IDAC output voltage cannot exceed compliance voltage AVDD 1.5V.
MSC120x
Figure Typical Reset Circuit
Note that P1.0/PROG defines operation device after reset. P1.0/PROG connected pulled high during reset, device will enter User Application mode (UAM). P1.0/PROG pulled during reset, device will enter Serial Flash Programming mode (SFPM). Refer Electrical Characteristics section timing information.
www.ti.com
MSC1200 MSC1201 MSC1202
POWER RESET
on-chip Power Reset (POR) circuitry releases device from reset when DVDD 2.0V. power supply ramp rate does affect POR. power supply falls below 1.0V longer than 200ms, will execute. power supply falls below 1.0V less than 200ms, unexpected operation occur. these conditions met, will execute. example, negative spike DVDD supply that does remain below 1.0V least 200ms, will initiate POR. Digital Brownout Reset circuit circuit effect.
configuring device prior entering Idle mode, further power reductions achieved (while Idle mode). These power reductions include powering down peripherals PDCON register (0F1h), reducing system clock frequency using System Clock Divider register (SYSCLK, 0C7h).
STOP MODE
Stop mode entered setting STOP Power Control register (PCON, 087h). Stop mode, internal clocks halted. This mode lowest power consumption. device returned active mode only external reset power-on reset (not brownout reset). configuring device prior entering Stop mode, further power reductions achieved (while Stop mode). These power reductions include halting external clock into device, configuring digital pins open drain with output drive, disabling buffer, disabling internal VREF, setting PDCON 0FFh power down peripherals. Stop mode, digital pins retain their values.
DIGITAL BROWNOUT RESET
Digital Brownout Reset (DBOR) enabled through HCR1. conditions proper met, DBOR used ensure proper device operation. DBOR will hold state device when power supply drops below threshold level programmed HCR1, then generate reset when supply rises above threshold level. Note that device released from reset program execution begins, device current consumption increase, which result power supply voltage drop, which initiate another brownout condition. Also, DBOR comparison done against analog reference; therefore, AVDD must within valid operating range DBOR function. DBOR level should chosen match closely with application. That with high external clock frequency, DBOR level should match minimum operating voltage range device improper operation still occur.
POWER CONSUMPTION CONSIDERATIONS
following suggestions will reduce consumption MSC120x devices: current
lowest supply voltage that will work application both AVDD DVDD. lowest clock frequency that will work application. Idle mode system clock divider whenever possible. Note that system clock divider also affects clock. Avoid using 8051-compatible mode ports. internal pull-up resistors will draw current when outputs low. delay line Flash Memory control setting FRCM FMCON register (SFR EEh). Power down internal oscillator External Clock mode setting PDICLK PDCON register (SFR F1h). Power down peripherals when they needed. Refer PDCON, LVDCON, ADCON0, IDAC.
ANALOG LOW-VOLTAGE DETECT
MSC120x contain analog low-voltage detect circuit. When analog supply drops below value programmed LVDCON (SFR E7h), interrupt generated, and/or flag set.
IDLE MODE
Idle mode entered setting IDLE Power Control register (PCON, 087h). Idle mode, CPU, Timer0, Timer1, USART stopped, other peripherals digital pins remain active. device returned active mode active internal external interrupt. This mode typically used reducing power consumption between samples.
MSC1200 MSC1201 MSC1202
www.ti.com
CLOCKS
MSC120x operate three separate clock modes: Internal Oscillator mode (IOM), External Clock mode (ECM), Phase Lock Loop (PLL) mode. block diagram shown Figure clock mode MSC120x selected CLKSEL bits HCR2. low-frequency (LF) mode default mode device. Serial Flash Programming mode (SFPM) uses mode (the HCR2 CLKSEL bits have effect). Table shows active clock mode various startup conditions during User Application mode.
Internal Oscillator
IOM, executes either mode HCR2, CLKSEL 111) high-frequency (HF) mode HCR2, CLKSEL DVDD 5.0V). this mode, must grounded tied supply.
External Clock
(HCR2, CLKSEL 011), execute from external crystal, external ceramic resonator, external clock, external oscillator. external clock detected startup, then will begin execution after startup. external clock detected startup, then device will revert mode shown Table
tOSC
STOP Phase Detector Charge Pump 100k
PLL/tIOM
tSYS SYSCLK
tCLK
XOUT
LF/HF Internal Mode Oscillator PLLDIV
NOTE: Disabled mode; therefore, external resistor between XOUT required.
Figure Clock Block Diagram Table Active Clock Modes
SELECTED CLOCK MODE External Clock Mode (ECM) Mode Mode Mode PLL(3) Mode HCR2, CLKSEL2:0 STARTUP CONDITION(1) Active clock present clock present Active 32.768kHz clock clock present Active 32.768kHz clock clock present ACTIVE CLOCK MODE (fSYS) External Clock Mode Mode Mode Mode Mode Nominal Mode Mode Nominal Mode
Internal Oscillator Mode (IOM)(2)
Clock detection only done startup; refer Serial Flash Programming Timing parameter tRFD Figure must left floating; must tied high parasitic oscillation occur. operation requires that both AVDD DVDD within their specified ranges.
www.ti.com
MSC1200 MSC1201 MSC1202
SBAS317E APRIL 2004 REVISED 2006
mode (HCR2, CLKSEL HCR2, CLKSEL 100), execute from external 32.768kHz crystal. This mode enables circuit that synthesizes selected clock frequencies (PLL mode mode). external clock detected startup, then begins execution mode after startup. external clock detected startup, then device reverts mode shown Table status determined first writing PLLLOCK (enable) then reading PLLLOCK status PLLH SFR. frequency preloaded with default trimmed values. However, frequency fine-tuned writing PLLH PLLL SFRs. equation frequency Frequency ([PLLH:PLLL] fOSC where fOSC 32.768kHz. default value mode automatically loaded into PLLH PLLL SFRs. different connections external clocks, Figure Figure Figure mode, value PLL[9:0] automatically doubled hardware; however, since PLL[9:0] writable, also modified writing respective SFRs.
32pF NOTE: Typical configuration shown. 32pF 32.768kHz XOUT
XOUT
NOTE: Refer crystal manufacturer's specification values.
Figure External Crystal Connection
External Clock
Figure External Clock Connection
Figure Connection
MSC1200 MSC1201 MSC1202
www.ti.com
MSC120x implement basic interface that includes hardware simple serial data transfers. Figure shows block diagram SPI. peripheral supports master slave modes, full duplex data transfers, both clock polarities, both clock phases, order, slave select. timing diagram supported data transfers shown Figure pins needed data transfer Data (DIN), Data (DOUT) serial clock (SCK). slave select (SS) also used control output data DOUT. used shifting data both master slave modes. DOUT used shifting data both master slave modes. used synchronize transfer data both master slave modes. always generated master. generation master mode done either software simply toggling port pin), configuring output PASEL (SFR F2h). list most common methods generating follows, complete list clock sources found referring PASEL SFR.
Toggle setting clearing port pin. Memory Write Pulse (WR) that idle high.
Whenever external memory write command (MOVX) executed, pulse seen P3.6. This method used only CPOL `1'.
Memory Write Pulse toggle version. this mode,
toggles whenever external write command (MOVX) executed.
T0_Out signal used clock. pulse
generated whenever Timer expires. idle state signal low, this used only CPOL cleared `0'.
T0_Out toggle. toggles whenever Timer
expires.
T1_Out signal used clock. pulse
generated whenever Timer expires. idle state signal low, this used only CPOL cleared `0'.
T1_Out toggle. toggles whenever Timer
expires.
DOUT Data Write TX_CLK SPICON I2CCON CNT_CLK Counter Start/Stop Detect Logic SCK/SCL Control P3.6 Stretch Control RX_CLK /I2C Data Read P1.4 P1.2 DOUT
P1.3
CLKS (refer PASEL, F2h)
Figure SPI/I2C Block Diagram
www.ti.com
MSC1200 MSC1201 MSC1202
SBAS317E APRIL 2004 REVISED 2006 Cycle
(CPOL
(CPOL
Sample Input (CPHA Data Sample Input (CPHA Data Slave Slave CPHA Transfer Progress Asserted First Edge CNTIF (dependent CPHA bit) Negated Slave CPHA Transfer Progress
Figure Timing Diagram
used control output data DOUT when MSC120x slave mode. function enabled disabled SPICON SFR. When enabled, input slave device must externally asserted before master device exchange data with slave device. must before data transactions must stay duration transaction. When high, data will shifted into shift register, will counter increment. When enabled, also controls drive line DOUT (P1.2). When slave mode, DOUT will driven when high, DOUT will high impedance. generates interrupt ECNT (AIE.2) indicate that transfer/reception byte complete. interrupt goes high whenever counter value equal (indicating that eight SCKs have occurred). interrupt cleared reading writing SPIDATA register. During data transfer, actual counter value read from SPICON SFR.
Application Flow
This section explains typical application usage flow master slave modes.
Master Mode Application Flow Configure port pins. Configure SPI. Assert enable slave communication applicable). Write data SPIDATA. Generate eight SCKs. Read received data from SPIDATA. Slave Mode Application Flow Configure ports pins. Enable applicable). Configure SPI. Write data SPIDATA. Wait Count Interrupt (eight SCKs). Read data from SPIDATA.
CAUTION: SPIDATA read before next transaction, ECNT interrupt will removed previous data will lost.
Power Down
powered down PDSPI power control register (PDCON). This needs cleared enable function. When powered down, pins P1.2, P1.3, P1.4, P3.6 revert general-purpose pins.
MSC1200 MSC1201 MSC1202
www.ti.com
pins needed transfer serial clock (SCL) serial data (SDA-implemented connecting DOUT externally). transfer timing shown Figure MSC120x supports:
Master slave operation (control software) Standard fast modes transfer Clock stretching General call
When used mode, pins (P1.3) DOUT (P1.2) should tied together externally. should configured input DOUT should configured open drain standard 8051 setting P1DDR (DOUT should high that pulled low). MSC120x generate interrupts:
(I2CCON.CNTSEL). This used ACK/NACK interrupt generation. instance, interrupt configured 8-bit interrupt detection; eighth bit, interrupt generated. During this interrupt, clock stretched (SCL held low) set. interrupt then configured 1-bit detection (which terminates clock stretching). ACK/NACK written software, which will terminate clock stretching. next interrupt will generated after ACK/NACK been latched receiving device. interrupt cleared reading writing I2CDATA register. I2CDATA read before next data transfer, interrupt will removed previous data will lost.
Master Operation
source controlled PASEL register generated software.
Transmit
serial data must stable while high. Therefore, writing serial data I2CDATA must coordinated with generation SCL, since transitions interpreted START STOP while high. START STOP conditions must generated software. After serial data been transmitted, generation ACK/NACK clock must enabled writing 0xFFh I2CDATA. This allows master read state ACK/NACK.
interrupt START/STOP interrupt (AIE.3) interrupt counter interrupt (AIE.2)
START/STOP interrupt generated when START condition STOP condition detected bus. counter generates interrupt complete (8-bit) data transfer also after transfer ACK/NACK. counter serial transfer always incremented falling edge reset reading writing I2CDATA (SFR 9Bh) when START/STOP condition detected. counter polled used interrupt. counter interrupt occurs when counter value equal indicating that eight bits data have been transferred. mode also allows interrupt generation data transfer
Receive
serial data latched into receive buffer rising edge SCL. After serial data been received, ACK/NACK generated writing 0x7Fh (for ACK) 0xFFh (for NACK) I2CDATA.
START ADDRESS(2) Condition(1)
R/W(2)
ACK(3)
DATA(2)
ACK(3)
DATA(2)
ACK(3)
STOP Condition(4)
NOTES: Generate software; write 0x7F I2CDATA. I2CDATA register. Generate software. enable count interrupt prior ACK/NACK interrupt use. Generate writing 0x7F I2CDATA; generate NACK writing 0xFF I2CDATA. Generate software; write 0xFF I2CDATA.
Figure Timing Diagram Transmission Reception
www.ti.com
MSC1200 MSC1201 MSC1202
Slave Operation
Slave operation supported, address recognition, determination, ACK/NACK must done under software control. Disable Clock Stretch (DCS) disable clock stretching. When set, device will longer stretch clock will generate interrupts. This used disable clock stretch interrupts when there address match. This automatically cleared when start repeated start condition occurs.
precaution, lock feature activated through HCR0, which disables erase/write operation Program Flash Memory entire Program Flash Memory UAM.
FLASH MEMORY
page size Flash memory bytes. respective page must erased before written regardless whether mapped Program memory Data memory space. MSC120x memory addressing scheme that separates Program Memory (FLASH/ROM) from Data Memory (FLASH/RAM). Addressing program data segments overlap since they accessed different instructions. MSC120x have three hardware configuration registers (HCR0, HCR1, HCR2) that programmable only during Flash Memory Programming mode. MSC120x allow user partition Flash Memory between Program Memory Data Memory. instance, MSC120xY3 contain Flash Memory on-chip. Through hardware configuration registers, user define partition between Program Memory (PM) Data Memory (DM), shown Table Table Figure MSC120x families offer memory configurations.
Transmit
Once address recognition, determination, ACK/NACK complete, serial data transferred written I2CDATA. data automatically shifted based master SCL. After data transmission, CNTIF generated stretched MSC120x until I2CDATA register written with 0xFFh. ACK/NACK from master then read.
Receive
Once address recognition, determination, ACK/NACK complete, I2CDATA must written with 0xFFh enable data reception. Upon completion data shift, MSC120x generates interrupt stretches SCL. Received data then read from I2CDATA. After serial data been received, ACK/NACK generated writing 0x7Fh (for ACK) 0xFFh (for NACK) I2CDATA. write I2CDATA clears interrupt clock stretch.
Table Flash Memory Partitioning
HCR0 MSC120xY2 MSC120xY3 DFSEL (default)
MEMORY
MSC120x contain on-chip SFR, Flash Memory, Configuration Memory, Scratchpad SRAM Memory, Boot ROM. registers primarily used control status. standard 8051 features additional peripheral features MSC120x controlled through SFR. Reading from undefined returns zero. Writing undefined registers recommended will have indeterminate effects. Flash Memory used both Program Memory Data Memory; however, program execution only occur from Program Memory. Program/Data Memory partition size selectable. partition size through HCR0 Configuration Memory), which programmed serially. Both Program Data Flash Memory erasable writable (programmable) UAM. Erase write timing Flash Memory controlled Flash Memory Timing Control register (FTCON, 0EFh). added
Table Flash Memory Partitioning Addresses
HCR0 DFSEL (default) 0000-07FF 0000-07FF 0000-0BFF 0000-0FFF MSC120xY2 0400-0BFF 0400-0BFF 0400-07FF 0000 0000-0FFF 0000-17FF 0000-1BFF 0000-1FFF MSC120xY3 0400-13FF 0400-0BFF 0400-07FF 0000
MSC1200 MSC1201 MSC1202
www.ti.com
Program Memory
FFFFh Unused Select HCR0 FC00h Internal Boot F800h
Data Memory
FFFFh
Configuration Memory
UAM: Read Only SFPM: Read Only
Serial Flash Programming Mode Address 807Fh
User Application Mode Address(1)
Unused Unused
8040h 1FFFh, (Y3) UAM: Read Only SFPM: Read/Write 13FFh, (Y3) 0FFFh, (Y2) 0000h, On-Chip Flash 0BFFh, (Y2) 03FFh, 8000h
On-Chip Flash
NOTE: accessed using CADDR faddr_data_read Boot routine.
Figure Memory
important note that Flash Memory readable writable (depending MXWS SFR) through MOVX instruction when configured either Program Data Memory. This flexibility means that device partitioned maximum Flash Program Memory size Flash Data Memory) Flash Program Memory used Flash Data Memory. However, this usage lead undesirable behavior points area Flash Program Memory that being used data storage. Therefore, recommended Flash partitioning when Flash Memory used data storage. Flash partitioning prohibits execution code from Data Flash Memory. Additionally, Program Memory erase/write disabled through hardware configuration bits (HCR0), while still providing access (read/write/erase) Data Flash Memory. effect memory mapping Program Data Memory straightforward. Program Memory decreased size from Flash Memory. maintain compatibility with MSC121x, Flash Data Memory maps addresses 0400h. Therefore, access Data Memory (through MOVX) will access Flash Memory addresses shown Table
CONFIGURATION MEMORY
MSC120x Configuration Memory consists bytes memory. UAM, Configuration Memory readable using faddr_data_read Boot routine CADDR register, none Configuration Memory writable. SFPM, Configuration Memory readable, only lower bytes (8000h-803Fh) writable; upper bytes (8040h-807Fh) writable. Note that reading/writing configuration memory SFPM requires 16-bit addressing; whereas, reading configuration memory requires only 8-bit addressing.
Lower Bytes
Note that three hardware configuration registers (HCR0, HCR1, HCR2) reside lower bytes Configuration Memory located SFPM addresses 0803Fh, 0803Eh, 0803Dh, respectively. Therefore, care should taken when writing Configuration Memory that user parameters written into these locations. Also note that Enable Program Memory Access (HCR0.7) cleared, Configuration Memory cannot changed unless memory been cleared with Mass Erase command.
Data Memory
MSC120x on-chip Flash Data Memory, which readable writable (depending Memory Write Select register) during normal operation (full range). This memory mapped into external Data Memory space, which requires MOVX instruction program.
Upper Bytes
Information such device trim values device serial number located upper bytes Configuration Memory. locations 08050h through 08053h contain unique 4-byte serial number. location 8054h contains temperature sensor correction value (refer application note SBAA126, available download from www.ti.com). None these memory locations altered.
www.ti.com
MSC1200 MSC1201 MSC1202
REGISTER
Figure illustrates Register Map. entirely separate from Program Data Memory areas discussed previously. separate class instructions used access registers. There potential register locations. practice, MSC120x have bytes Scratchpad SFRs. This possible since upper Scratchpad locations only accessed indirectly. Thus, direct reference upper locations must access. Direct reached locations 127).
Program Status Word register (PSW; 0D0h) area described below. bytes immediately above R0-R7 registers bit-addressable, bits this area directly accessed using bit-addressable instructions.
Direct Bit-Addressable
Indirect Direct Scratchpad
Direct Special Function Registers
Registers
Figure Register
SFRs accessed directly between (128 255). locations between reached through indirect reference those locations. Scratchpad available general-purpose data storage. Within bytes RAM, there several special-purpose areas.
Addressable Locations
addition direct register access, some individual bits also accessible. These individually addressable bits both area. Scratchpad area, registers bit-addressable. This provides individual bits available software. access distinguished from full-register access type instruction. area, register location ending bit-addressable. Figure shows details on-chip addressing including locations individual bits.
Bank Bank Bank Bank
Working Registers
part lower bytes RAM, there four banks Working Registers, shown Figure Working Registers general-purpose locations that addressed special way. They designated through Since there four banks, currently selected bank will used instruction using R0-R7. This design allows software change context simply switching banks. Bank access controlled
Figure Scratchpad Register Addressing
Thus, instruction designate value stored (for example) address upper RAM. bytes immediately above these registers bit-addressable, bits this area directly accessed using bit-addressable instructions.
MSC1200 MSC1201 MSC1202
www.ti.com
Stack
Another Scratchpad area programmer's stack. This area selected using Stack Pointer (SP, 81h). Whenever call interrupt invoked, return address placed Stack. also available programmer variables, etc., since Stack moved there fixed location within designated Stack. Stack Pointer defaults reset user then move needed. will point last used value. Therefore, next value placed Stack Each PUSH CALL increments appropriate value each decrements
Program Memory
After reset, begins execution from Program Memory location 0000h. enabled, Boot will appear from address F800h FFFFh.
Boot
There Boot that controls operation during serial programming. Additionally, Boot routines shown Table accessed during user mode, enabled. When enabled, Boot routines will located memory addresses F800h-FBFFh during user mode.
Table MSC120x Boot Routines
ADDRESS F802 F805 FBD8 FBDA FBDC FBDE FBE0 FBE2 FBE4 FBE6 FBE8 FBEA FBEC FBEE FBF0 FBF2 FBF4 FBF6 FBF8 FBFA FBFC FBFE ROUTINE sfr_rd sfr_wr monitor_isr cmd_parser put_string page_erase write_flash write_flash_chk write_flash_byte faddr_data_read data_x_c_read tx_byte tx_hex putx rx_byte rx_byte_echo rx_hex_echo rx_hex_dbl_echo rx_hex_word_echo autobaud putspace1 putcr DECLARATIONS char sfr_rd(void); void sfr_wr(char void monitor_isr() interrupt void cmd_parser(void); void put_string(char code *string); char page_erase(int faddr, char fdata, char fdm); Assembly only; DPTR address, data char write_flash_chk(int faddr, char fdata, char fdm); void write_flash_byte(int faddr, char fdata); char faddr_data_read(char faddr); char data_x_c_read(int faddr, char fdm); void tx_byte(char); void tx_hex(char); void putx(void); char rx_byte(void); char rx_byte_echo(void); char rx_hex_echo(void); int_rx_hex_dbl_echo(void); int_rx_hex_word_echo(void); void autobaud(void); void putspace1(void); void putcr(void); DESCRIPTION Return value pointed CADDR(1) Write pointed CADDR(1) Push registers call cmd_parser application note SBAA076, Programming MSC1210, available www.ti.com. Output string Erase flash page Flash write(2) Write flash byte, verify Write flash byte(2) Read byte from Configuration Memory Read xdata code byte Send byte USART0 send value USART0 send USART0 Read byte from USART0 Read echo byte USART0 Read echo USART0 Read echo: USART0 Read reversed echo: USART0 USART0 baud rate after CR(3) received Output space USART0 Output USART0
CADDR must prior using these routines. register (SFR 8Fh) defines Data Memory Program Memory write. registers CKCON TCON must initialized: CKCON 0x10 TCON 0x00.
www.ti.com
MSC1200 MSC1201 MSC1202
Serial Flash Programming Mode
Serial Flash Programming mode (SFPM) used download Program Data Memory into onboard Flash Memory MSC120x. initiated holding P1.0/PROG during reset cycle, shown Figure After reset cycle, host communicate with MSC120x through USART0. Refer application note SBAA076 (www.ti.com) serial programming commands protocol. SFPM, MSC120x uses internal oscillator frequency mode (that external clock disabled). internal oscillator frequency affected power supply voltage device temperature. Therefore, order avoid losing communication during programming, important have stable power supply temperature environment during serial communication.
recommended baud rate range SFPM 2400 19200. communication errors occur, decreasing baud rate improve communication performance. Also note that SFPM, Brownout Detect circuit disabled AVDD must 2.0V.
INTERRUPTS
MSC120x three-priority interrupt system. shown Table each interrupt source independent priority bit, flag, interrupt vector, enable (except that nine interrupts share Auxiliary Interrupt, highest priority). addition, interrupts globally enabled disabled. interrupt structure compatible with original 8051 family. standard interrupts available.
MSC120x Reset Circuit VDD) P1.0/PROG AVDD DVDD P3.1 Serial Port P3.0 RS232 Transceiver Host Serial Terminal
NOTE: Serial programming selected when P1.0/PROG reset.
Figure Serial Flash Programming Mode
MSC1200 MSC1201 MSC1202
www.ti.com
Table Interrupt Summary
INTERRUPT INTERRUPT/EVENT AVDD Voltage Detect Count (SPI/I2C) Start/Stop Milliseconds Timer Summation Register Seconds Timer External Interrupt Timer Overflow External Interrupt Timer Overflow Serial Port External Interrupt External Interrupt External Interrupt External Interrupt Watchdog ADDR PRIORITY High FLAG ALVDIP (AIPOL.1)(1) CNTIP (AIPOL.2)(1) I2CIP (AIPOL.3)(1) MSECIP (AIPOL.4)(1) ENABLE EALV (AIE.1)(1) ECNT (AIE.2)(1) EI2C (AIE.3)(1) EMSEC (AIE.4)(1) PRIORITY CONTROL (IP.0) (IP.1) (IP.2) (IP.3) (IP.4) (EIP.0) (EIP.1) (EIP.2) (EIP.3) PWDI (EIP.4)
ADCIP (AIPOL.5)(1) SUMIP (AIPOL.6)(1) SECIP (AIPOL.7)(1)
EADC (AIE.5)(1) ESUM (AIE.6)(1) ESEC (AIE.7)(1)
(TCON.1)(2) (TCON.5)(3) (TCON.3)(2)
(IE.0)(4) (IE.1)(4) (IE.2)(4) (IE.3)(4) (IE.4)(4) (EIE.0)(4) (EIE.1)(4) (EIE.2)(4) (EIE.3)(4)
(TCON.7)(3) RI_0 (SCON0.0) TI_0 (SCON0.1) (EXIF.4) (EXIF.5) (EXIF.6) (EXIF.7) WDTI (EICON.3)
EWDI (EIE.4)(4)
These interrupts flag (EICON.4) enabled (EICON.5). edge-triggered, cleared automatically hardware when service routine vectored level-triggered, flag follows state pin. Cleared automatically hardware when interrupt vector occurs. Globally enabled (IE.7).
www.ti.com
MSC1200 MSC1201 MSC1202
Hardware Configuration Register (HCR0)
CADDR EPMA EWDR DFSEL1 DFSEL0
NOTE: HCR0 programmable only SFPM, read using faddr_data_read Boot routine. EPMA Enable Program Memory Access (Security Bit). After reset programming modes, Flash Memory only accessed until mass erase done. Fully Accessible (default) Program Memory Lock (PML priority over RSL). Enable read write Program Memory UAM. Enable Read-Only mode Program Memory (default). Reset Sector Lock. reset sector used provide another method Flash Memory programming, which allows Program Memory updates without changing jumpers in-circuit code updates program development. code this boot sector would then provide monitor programming routines with ability jump into main Flash code when programming finished. Enable Reset Sector Writing Enable Read-Only mode reset sector (4kB) (default). Same effect MSC120xY2. Enable Boot ROM. Boot code located ROM, confused with Boot Sector located Flash Memory. Disable Internal Boot Enable Internal Boot (default) Enable Watchdog Reset. Disable Watchdog Reset Enable Watchdog Reset (default)
EWDR
DFSEL1-0 Data Flash Memory Size (see Table bits Data Flash Memory (MSC120xY3 only) Data Flash Memory Data Flash Memory Data Flash Memory (default)
MSC1200 MSC1201 MSC1202
www.ti.com
Hardware Configuration Register (HCR1)
CADDR DBSEL3 DBSEL2 DBSEL1 DBSEL0
NOTE: HCR1 programmable only SFPM, read using faddr_data_read Boot routine. DBSEL3-0 Digital Supply Brownout Level Select. values listed nominal. actual value will vary depending device clock frequency supply voltage. high clock frequencies, variation could order below nominal value. bits 0000: 4.6V 0001: 4.2V 0010: 3.8V 0011: 3.6V 0100: 3.3V 0101: 3.1V 0110: 2.9V 0111: 2.7V 1000: 2.6V 1001: Reserved 1010: Reserved 1011: Reserved 1100: Reserved 1101: Reserved 1110: Reserved 1111: Reserved Disable Digital Brownout Detection. Enable Digital Brownout Detection Disable Digital Brownout Detection (default)
www.ti.com
MSC1200 MSC1201 MSC1202
Hardware Configuration Register (HCR2)
CADDR CLKSEL2 CLKSEL1 CLKSEL0
NOTE: HCR2 programmable only SFPM, read using faddr_data_read Boot routine. CLKSEL2-1 Clock Select. bits 000: Reserved 001: Reserved 010: Reserved 011: External Clock Mode 100: High-Frequency (HF) Mode 101: Low-Frequency (LF) Mode 110: Internal Oscillator High-Frequency (HF) Mode 111: Internal Oscillator Low-Frequency (LF) Mode NOTE: Clock status verified reading PLLH UAM.
Configuration Memory Programming
Hardware Configuration Memory changed only Serial Flash Programming mode (SFPM).
MSC1200 MSC1201 MSC1202
www.ti.com
Table Special Function Registers
ADDRESS AIPOL AISTAT SECIP ESEC SUMIP ESUM ADCIP EADC MSECIP EMSEC MSEC I2CIP PAI3 EI2C CNTIP PAI2 ECNT ALVDIP PAI1 EALV ALVD PAI0 SCON0 SBUF0 SPICON I2CCON SPIDATA I2CDATA SBIT3 SBIT3 SBIT2 SBIT2 SBIT1 SBIT1 SBIT0 SBIT0 ORDER STOP CPHA START CPOL CNTSEL SM0_0 SM1_0 SM2_0 REN_0 TB8_0 RB8_0 TI_0 RI_0 CADDR CDATA CKCON EXIF P1.7 INT5 P1.6 INT4 P1.5 INT3 P1.4 INT2/SS P1.3 P1.2 DOUT P1.1 MXWS P1.0 PROG DPL0 DPH0 DPL1 DPH1 PCON TCON TMOD SMOD STOP IDLE REGISTER RESET VALUE
Timer GATE
Timer GATE
www.ti.com
MSC1200 MSC1201 MSC1202
Table Special Function Registers (continued)
ADDRESS SYSCLK DIVMOD1 DIVMOD0 EWUWDT DIV2 EWUEX1 DIV1 EWUEX0 DIV0 P3DDRL P3DDRH IDAC P33H P37H P33L P37L P32H P36H P32L P36L P31H P35H P31L P35L P30H P34H P30L P34L P1DDRL P1DDRH P13H P17H P3.7 P13L P17L P3.6
SCK/SCL/CLKS
REGISTER
RESET VALUE
P12H P16H P3.5
P12L P16L P3.4
P11H P15H P3.3 INT1
P11L P15L P3.2 INT0
P10H P14H P3.1 TXD0
P10L P14L P3.0 RXD0
MSC1200 MSC1201 MSC1202
www.ti.com
Table Special Function Registers (continued)
ADDRESS PLLL PLLH ACLK SRST SECINT MSINT USEC MSECL MSECH HMSEC WDTCON PLL7 CKSTAT2 MSECL7 MSECH7 HMSEC7 EWDT PLL6 CKSTAT1 FREQ6 SECINT6 MSINT6 MSECL6 MSECH6 HMSEC6 DWDT PLL5 CKSTAT0 FREQ5 SECINT5 MSINT5 FREQ5 MSECL5 MSECH5 HMSEC5 RWDT PLL4 PLLLOCK FREQ4 PWDI SECINT4 MSINT4 FREQ4 MSECL4 MSECH4 HMSEC4 WDCNT4 PLL3 FREQ3 SECINT3 MSINT3 FREQ3 MSECL3 MSECH3 HMSEC3 WDCNT3 PLL2 FREQ2 SECINT2 MSINT2 FREQ2 MSECL2 MSECH2 HMSEC2 WDCNT2 PLL1 PLL9 FREQ1 SECINT1 MSINT1 FREQ1 MSECL1 MSECH1 HMSEC1 WDCNT1 PLL0 PLL8 FREQ0 RSTREQ SECINT0 MSINT0 FREQ0 MSECL0 MSECH0 HMSEC0 WDCNT0 xxh(2) xxh(2) FMCON FTCON PDCON PASEL PDICLK PSEN4 PDIDAC PSEN3 PDI2C PSEN2 PSEN1 PDADC PSEN0 PDWDT PDST PDSPI FER3 PGERA FER2 FER1 FRCM FER0 FWR3 BUSY FWR2 FWR1 FWR0 REGISTER ADMUX EICON ADRESL(1) ADRESM(1) ADRESH(1) ADCON0 ADCON1 ADCON2 ADCON3 SSCON SUMR0 SUMR1 SUMR2 SUMR3 ODAC LVDCON HWPC0 HWPC1 HWVER ALVDIS EWDI ALVD3 ALVD2 ALVD1 DEVICE ALVD0 MEMORY OF_UF ACC.7 SSCON1 MSB(1) MSB(1) ACC.6 SSCON0 EVREF ACC.5 SCNT2 VREFH ACC.4 SCNT1 EBUF ACC.3 SCNT0 PGA2 CAL2 DR10 ACC.2 SHF2 PGA1 CAL1 ACC.1 SHF1 PGA0 CAL0 ACC.0 SHF0 INP3 INP2 INP1 INP0 INN3 WDTI INN2 INN1 INN0 LSB(1) RESET VALUE 0000_00xxb
MSC1200/01, result contained ADRESH, ADRESM, ADRESL. MSC1202, result contained ADRESM ADRESL (that shifted right byte) sign-extended (Bipolar mode) zero-padded (Unipolar mode) ADRESH. Therefore, when migrating between MSC1200/01 MSC1202, result calculation must adjusted accordingly. devices, interrupt cleared reading ADRESL. Dependent active clock mode.
www.ti.com
MSC1200 MSC1201 MSC1202
Table Special Function Register Cross Reference
SERIAL COMM. POWER CLOCKS TIMER COUNTERS FLASH MEMORY DACS
DPL0 DPH0 DPL1 DPH1 PCON TCON TMOD CKCON EXIF CADDR CDATA SCON0 SBUF0 SPICON I2CCON SPIDATA I2CDATA AIPOL AISTAT P1DDRL P1DDRH P3DDRL P3DDRH IDAC SYSCLK ADMUX EICON
ADDRESS
FUNCTIONS Stack Pointer Data Pointer Data Pointer High Data Pointer Data Pointer High Data Pointer Select Power Control Timer/Counter Control Timer Mode Control Timer0 Timer1 Timer0 Timer1 Clock Control Memory Write Select Port External Interrupt Flag Configuration Address Configuration Data Serial Port Control Serial Data Buffer Control Control Data Data Auxiliary Interrupt Poll Pending Auxiliary Interrupt Auxiliary Interrupt Enable Auxiliary Interrupt Status Interrupt Enable Port Data Direction Port Data Direction High Port Port Data Direction Port Data Direction High Current Interrupt Priority Enable Wake System Clock Divider Program Status Word Offset Calibration Byte Offset Calibration Byte Offset Calibration High Byte Gain Calibration Byte Gain Calibration Byte Gain Calibration High Byte Input Multiplexer Enable Interrupt Control
INTERRUPTS
PORTS
MSC1200 MSC1201 MSC1202
www.ti.com
Table Special Function Register Cross Reference (continued)
SERIAL COMM. POWER CLOCKS TIMER COUNTERS FLASH MEMORY DACS
ADRESL ADRESM ADRESH ADCON0 ADCON1 ADCON2 ADCON3 SSCON SUMR0 SUMR1 SUMR2 SUMR3 ODAC LVDCON HWPC0 HWPC1 HWVER FMCON FTCON PDCON PASEL PLLL PLLH ACLK SRST SECINT MSINT USEC MSECL MSECH HMSEC WDTCON
ADDRESS
FUNCTIONS Results Byte Results Middle Byte Results High Byte Control Control Control Control Accumulator Summation/Shifter Control Summation Summation Summation Summation Offset Voltage Detect Control Extended Interrupt Enable Hardware Product Code Hardware Product Code Hardware Version Flash Memory Control Flash Memory Timing Control Second Accumulator Power Down Control PSEN/ALE Select Phase Lock Loop Phase Lock Loop High Analog Clock System Reset Extended Interrupt Priority Seconds Interrupt Milliseconds Interrupt Microsecond Millisecond Millisecond High Hundred Millisecond Watchdog Timer
INTERRUPTS
PORTS
HCR0 HCR1 HCR2
Hardware Configuration Reg. Hardware Configuration Reg. Hardware Configuration Reg.
www.ti.com
MSC1200 MSC1201 MSC1202
Stack Pointer (SP)
SP.7 SP.6 SP.5 SP.4 SP.3 SP.2 SP.1 SP.0 Reset Value
SP.7-0 bits
Stack Pointer. stack pointer identifies location where stack will begin. stack pointer incremented before every PUSH CALL operation decremented after each RET/RETI. This register defaults after reset.
Data Pointer (DPL0)
DPL0.7 DPL0.6 DPL0.5 DPL0.4 DPL0.3 DPL0.2 DPL0.1 DPL0.0 Reset Value
DPL0.7-0 bits
Data Pointer This register byte standard 8051 16-bit data pointer. DPL0 DPH0 used point non-scratchpad data RAM. current data pointer selected (SFR 86h).
Data Pointer High (DPH0)
DPH0.7 DPH0.6 DPH0.5 DPH0.4 DPH0.3 DPH0.2 DPH0.1 DPH0.0 Reset Value
DPH0.7-0 bits
Data Pointer High This register high byte standard 8051 16-bit data pointer. DPL0 DPH0 used point non-scratchpad data RAM. current data pointer selected (SFR 86h).
Data Pointer (DPL1)
DPL1.7 DPL1.6 DPL1.5 DPL1.4 DPL1.3 DPL1.2 DPL1.1 DPL1.0 Reset Value
DPL1.7-0 bits
Data Pointer This register byte auxiliary 16-bit data pointer. When (DPS.0) (SFR 86h) set, DPL1 DPH1 used place DPL0 DPH0 during DPTR operations.
Data Pointer High (DPH1)
DPH1.7 DPH1.6 DPH1.5 DPH1.4 DPH1.3 DPH1.2 DPH1.1 DPH1.0 Reset Value
DPH1.7-0 bits
Data Pointer High. This register high byte auxiliary 16-bit data pointer. When (DPS.0) (SFR 86h) set, DPL1 DPH1 used place DPL0 DPH0 during DPTR operations.
Data Pointer Select (DPS)
Reset Value
Data Pointer Select. This selects active data pointer. Instructions that DPTR will DPL0 DPH0. Instructions that DPTR will DPL1 DPH1.
MSC1200 MSC1201 MSC1202
www.ti.com
Power Control (PCON)
SMOD STOP IDLE Reset Value
SMOD STOP IDLE
Serial Port Baud Rate Doubler Enable. serial baud rate doubling function Serial Port Serial Port baud rate will standard baud rate. Serial Port baud rate will double that defined baud rate generation equation. General-Purpose User Flag This general-purpose flag software control. General-Purpose User Flag This general-purpose flag software control. Stop Mode Select. Setting this halts internal oscillator blocks external clocks. This always reads Exit with RESET. this mode, internal peripherals frozen pins held their current state. frozen, IDAC VREF remain active. Idle Mode Select. Setting this freezes CPU, Timer USART; other peripherals remain active. This will always read Exit with (A6h) (C6h) interrupts (refer Figure clocks affected during Idle mode).
Timer/Counter Control (TCON)
Reset Value
Timer Overflow Flag. This indicates when Timer overflows maximum count defined current mode. This cleared software automatically cleared when vectors Timer interrupt service routine. Timer overflow been detected. Timer overflowed maximum count. Timer Control. This enables/disables operation Timer Halting this timer preserves current count TH1, TL1. Timer halted. Timer enabled. Timer Overflow Flag. This indicates when Timer overflows maximum count defined current mode. This cleared software automatically cleared when vectors Timer interrupt service routine. Timer overflow been detected. Timer overflowed maximum count. Timer Control. This enables/disables operation Timer Halting this timer preserves current count TH0, TL0. Timer halted. Timer enabled. Interrupt Edge Detect. This when edge/level type defined detected. this will remain until cleared software start External Interrupt service routine. this will inversely reflect state INT1 pin. Interrupt Type Select. This selects whether INT1 will detect edge- level-triggered interrupts. INT1 level-triggered. INT1 edge-triggered. Interrupt Edge Detect. This when edge/level type defined detected. this will remain until cleared software start External Interrupt service routine. this will inversely reflect state INT0 pin. Interrupt Type Select. This selects whether INT0 will detect edge- level-triggered interrupts. INT0 level-triggered. INT0 edge-triggered.
www.ti.com
MSC1200 MSC1201 MSC1202
Timer Mode Control (TMOD)
GATE TIMER GATE TIMER Reset Value
GATE bits
Timer Gate Control. This enables/disables ability Timer increment. Timer will clock when regardless state INT1. Timer will clock only when INT1 Timer Counter/Timer Select. Timer incremented internal clocks. Timer incremented pulses when (TCON.6, 88h) Timer Mode Select. These bits select operating mode Timer
MODE Mode 8-bit counter with 5-bit prescale. Mode bits. Mode 8-bit counter with auto reload. Mode Timer halted, holds count.
GATE bits
Timer Gate Control. This enables/disables ability Timer increment. Timer will clock when regardless state INT0 (software control). Timer will clock only when INT0 (hardware control). Timer Counter/Timer Select. Timer incremented internal clocks. Timer incremented pulses when (TCON.4, 88h) Timer Mode Select. These bits select operating mode Timer
MODE Mode 8-bit counter with 5-bit prescale. Mode bits. Mode 8-bit counter with auto reload. Mode 8-bit counters.
Timer (TL0)
TL0.7 TL0.6 TL0.5 TL0.4 TL0.3 TL0.2 TL0.1 TL0.0 Reset Value
TL0.7-0 bits
Timer LSB. This register contains least significant byte Timer
Timer (TL1)
TL1.7 TL1.6 TL1.5 TL1.4 TL1.3 TL1.2 TL1.1 TL1.0 Reset Value
TL1.7-0 bits
Timer LSB. This register contains least significant byte Timer
MSC1200 MSC1201 MSC1202
www.ti.com
Timer (TH0)
TH0.7 TH0.6 TH0.5 TH0.4 TH0.3 TH0.2 TH0.1 TH0.0 Reset Value
TH0.7-0 bits
Timer MSB. This register contains most significant byte Timer
Timer (TH1)
TH1.7 TH1.6 TH1.5 TH1.4 TH1.3 TH1.2 TH1.1 TH1.0 Reset Value
TH1.7-0 bits
Timer MSB. This register contains most significant byte Timer
Clock Control (CKCON)
Reset Value
Timer Clock Select. This controls division system clock that drives Timer Clearing this maintains 8051 compatibility. This effect instruction cycle timing. Timer uses divide-by-12 crystal frequency. Timer uses divide-by-4 crystal frequency. Timer Clock Select. This controls division system clock that drives Timer Clearing this maintains 8051 compatibility. This effect instruction cycle timing. Timer uses divide-by-12 crystal frequency. Timer uses divide-by-4 crystal frequency. Stretch MOVX Select. These bits select time which external MOVX cycles stretched standard 8051 core. Since MSC120x does allow external memory access, these bits should 000b allow fastest Flash Data Memory access.
MD2, MD1, bits
Memory Write Select (MWS)
MXWS Reset Value
MXWS
MOVX Write Select. This allows writing internal Flash Program Memory. writes allowed internal Flash Program Memory. Writing allowed internal Flash Program Memory, unless (HCR0, CADDR 3Fh) set.
www.ti.com
MSC1200 MSC1201 MSC1202
Port (P1)
P1.7 INT5 P1.6 INT4 P1.5 INT3 P1.4 INT2/SS P1.3 P1.2 DOUT P1.1 P1.0 PROG Reset Value
P1.7-0 bits
General-Purpose Port This register functions general-purpose port. addition, pins have alternative function listed below. Each functions controlled several other SFRs. associated Port latch must contain logic before used alternate function capacity. alternate function, appropriate mode P1DDRL (SFR AEh), P1DDRH (SFR AFh). External Interrupt falling edge this will cause external interrupt enabled.
INT5 INT4 INT3 INT2/SS DOUT PROG
External Interrupt rising edge this will cause external interrupt enabled.
External Interrupt falling edge this will cause external interrupt enabled.
External Interrupt rising edge this will cause external interrupt enabled. This used slave select (SS) slave mode. Serial Data This receives serial data modes mode, this should configured input) standard 8051. Serial Data Out. This transmits serial data modes mode, this should configured open drain) standard 8051. Program Mode. When this pulled power-up, device enters Serial Programming mode (refer Figure
External Interrupt Flag (EXIF)
Reset Value
External Interrupt Flag. This will when falling edge detected INT5. This must cleared manually software. Setting this software will cause interrupt enabled. External Interrupt Flag. This will when rising edge detected INT4. This must cleared manually software. Setting this software will cause interrupt enabled. External Interrupt Flag. This will when falling edge detected INT3. This must cleared manually software. Setting this software will cause interrupt enabled. External Interrupt Flag. This will when rising edge detected INT2. This must cleared manually software. Setting this software will cause interrupt enabled.
MSC1200 MSC1201 MSC1202
www.ti.com
Configuration Address (CADDR) (write-only)
Reset Value
CADDR bits
Configuration Address. This register supplies address reading bytes bytes Flash Configuration Memory. recommended that faddr_data_read used when accessing Configuration memory.This register also used address sfr_read sfr_write routines, must prior their use.
CAUTION: this register written while executing from Flash Memory, CDATA register will incorrect.
Configuration Data (CDATA) (read-only)
Reset Value
CDATA bits
Configuration Data. This register will contain data bytes Flash Configuration Memory that located last written address CADDR register. This read-only register.
Serial Port Control (SCON0)
SM0_0 SM1_0 SM2_0 REN_0 TB8_0 RB8_0 TI_0 RI_0 Reset Value
SM0-2 bits
Serial Port Mode. These bits control mode serial Port Modes have start stop addition data bits.
MODE FUNCTION Synchronous Synchronous Asynchronous Asynchronous-Valid Stop Required(2) Asynchronous Asynchronous with Multiprocessor Communication Asynchronous Asynchronous with Multiprocessor Communication(3) LENGTH bits bits bits bits bits bits bits bits PERIOD pCLK(1) pCLK(1) Timer Baud Rate Equation Timer Baud Rate Equation pCLK(1) (SMOD pCLK(1) (SMOD pCLK(1) (SMOD pCLK(1) (SMOD Timer Baud Rate Equation Timer Baud Rate Equation
pCLK will equal tCLK, except that pCLK will stop Idle mode. RI_0 will only activated when valid STOP received. RI_0 will activated
REN_0
Receive Enable. This enables/disables serial Port received shift register. Serial Port reception disabled. Serial Port received enabled (modes Initiate synchronous reception (mode Transmission State. This defines state transmission serial Port modes
TB8_0 RB8_0 TI_0
Received State. This identifies state reception received data serial Port modes serial port mode when SM2_0 RB8_0 state stop bit. RB8_0 used mode Transmitter Interrupt Flag. This indicates that data serial Port buffer been completely shifted out. serial port mode TI_0 data bit. other modes, this last data bit. This must manually cleared software. Receiver Interrupt Flag. This indicates that byte data been received serial Port buffer. serial port mode RI_0 bit. serial port mode RI_0 after last sample incoming stop subject state SM2_0. modes RI_0 after last sample RB8_0. This must manually cleared software.
RI_0
www.ti.com
MSC1200 MSC1201 MSC1202
Serial Data Buffer (SBUF0)
Reset Value
SBUF0 bits
Serial Data Buffer Data Serial Port read from written this location. serial transmit receive buffers separate registers, both addressed this location.
Control (SPICON)
SBIT3 SBIT2 SBIT1 SBIT0 ORDER CPHA CPOL Reset Value
SBIT3-0 bits
Serial Count. Number bits transferred (read-only).
SBIT3:0 0x00 0x01 0x03 0x02 0x06 0x07 0x05 0x04 0x0C COUNT
ORDER
Order Transmit Receive. Most significant bits first Least significant bBits first Serial Clock Phase Control. Valid data starting from half period before first edge Valid data starting from first edge Enable Slave Select. (P1.4) configured general-purpose (default). (P1.4) configured mode. DOUT (P1.2) drives when low, DOUT (P1.2) high-impedance when high. Serial Clock Polarity. idle logic idle logic high
CPHA
CPOL
MSC1200 MSC1201 MSC1202
www.ti.com
Control (I2CCON)
SBIT3 SBIT2 SBIT1 SBIT0 STOP START CNTSEL Reset Value
SBIT3-0 bits
Serial Count. Number bits transferred (read-only).
SBIT3:0 0x00 0x01 0x03 0x02 0x06 0x07 0x05 0x04 0x0C COUNT
STOP
Stop-Bit Status. stop Stop condition received (bit A7h) (cleared write I2CDATA) Start-Bit Status. stop Start repeated start condition received (bit A7h) (cleared write I2CDATA) Disable Serial Clock Stretch. Enable stretch (cleared firmware START condition) Disable stretch Counter Select. Counter counter (default) Counter counter
START
CNTSEL
Data (SPIDATA) Data (I2CDATA)
Reset Value
SPIDATA bits
Data. Data read from written this location. transmit receive buffers separate registers, both addressed this location. Read clear receive interrupt write clear transmit interrupt. Data. Data read from written this location. transmit receive buffers separate registers, both addressed this location.
I2CDATA bits
www.ti.com
MSC1200 MSC1201 MSC1202
Auxiliary Interrupt Poll (AIPOL)
SECIP SUMIP ADCIP MSECIP I2CIP CNTIP ALVDIP Reset Value
Interrupts enabled EICON.4 (SFR D8h). other interrupts controlled registers.
SECIP Second System Timer Interrupt Poll (before masking). Second system timer interrupt poll inactive Second system timer interrupt poll active Summation Interrupt Poll (before masking). Summation interrupt poll inactive Summation interrupt poll active Interrupt Poll (before masking). interrupt poll inactive interrupt poll active Millisecond System Timer Interrupt Poll (before masking). Millisecond system timer interrupt poll inactive Millisecond system timer interrupt poll active Start/Stop Interrupt Poll (before masking). start/stop interrupt poll inactive start/stop interrupt poll active Serial Count Interrupt Poll (before masking). Serial count interrupt poll inactive Serial count interrupt poll active Analog Voltage Detect Interrupt Poll (before masking). Analog voltage detect interrupt poll inactive (AVDD ALVD threshold; ALVD threshold LVDCON, E7h) Analog voltage detect interrupt poll active (AVDD ALVD threshold; ALVD threshold LVDCON, E7h)
SUMIP
ADCIP
MSECIP
I2CIP
CNTIP
ALVDIP
Pending Auxiliary Interrupt (PAI)
PAI3 PAI2 PAI1 PAI0 Reset Value
bits
Pending Auxiliary Interrupt Register. results this register used index vector appropriate interrupt routine. these interrupts vector through address 0033h.
PAI3 PAI2 PAI1 PAI0 AUXILIARY INTERRUPT STATUS Pending Auxiliary IRQ. Reserved. Analog Voltage Detect Possible Lower Priority Pending. Possible Lower Priority Pending. Serial Count Interrupt Possible Lower Priority Pending. Millisecond System Timer Possible Lower Priority Pending. Possible Lower Priority Pending. Summation Possible Lower Priority Pending. Second System Timer IRQ.
MSC1200 MSC1201 MSC1202
www.ti.com
Auxiliary Interrupt Enable (AIE)
ESEC ESUM EADC EMSEC EI2C ECNT EALV Reset Value
Interrupts enabled EICON.4 (SFR D8h). other interrupts controlled registers.
ESEC Enable Second System Timer Interrupt (lowest priority auxiliary interrupt). Write: mask this interrupt; masked, enabled. Read: Second Timer Interrupt mask. Enable Summation Interrupt. Write: mask this interrupt; masked, enabled. Read: Summation Interrupt mask. Enable Interrupt. Write: mask this interrupt; masked, enabled. Read: Interrupt mask. Enable Millisecond System Timer Interrupt. Write: mask this interrupt; masked, enabled. Read: Millisecond System Timer Interrupt mask. Enable Start/Stop Bit. Write: mask this interrupt; masked, enabled. Read: Start/Stop mask. Enable Serial Count Interrupt. Write: mask this interrupt; masked, enabled. Read: Serial Count Interrupt mask. Enable Analog Voltage Interrupt. Write: mask this interrupt; masked, enabled. Read: Analog Voltage Detect Interrupt mask.
ESUM
EADC
EMSEC
EI2C
ECNT
EALV
www.ti.com
MSC1200 MSC1201 MSC1202
Auxiliary Interrupt Status (AISTAT)
MSEC ALVD Reset Value
Second System Timer Interrupt Status Flag (lowest priority AI). interrupt cleared masked. Interrupt active cleared reading SECINT, F9h). Summation Register Interrupt Status Flag. interrupt cleared masked. interrupt active cleared reading lowest byte SUMR0, E2h). Interrupt Status Flag. interrupt cleared masked. interrupt active cleared reading lowest byte ADRESL, D9h; active, data will written Results registers). Millisecond System Timer Interrupt Status Flag. MSEC interrupt cleared masked. MSEC interrupt active cleared reading MSINT, FAh). Start/Stop Interrupt Status Flag. start/stop interrupt cleared masked. start/stop interrupt active cleared writing I2CDATA, 9Bh). Interrupt Status Flag. Interrupt cleared masked. Interrupt active cleared reading from writing SPIDATA/I2CDATA, 9Bh). Analog Voltage Detect Interrupt Status Flag. ALVD Interrupt cleared masked. ALVD Interrupt active (cleared hardware AVDD exceeds ALVD threshold).
MSEC
ALVD
NOTE: interrupt masked, status read AIPOL (SFR A4h).
MSC1200 MSC1201 MSC1202
www.ti.com
Interrupt Enable (IE)
Reset Value
Global Interrupt Enable. This controls global masking interrupts except those (SFR A6h). Disable interrupt sources. This overrides individual interrupt mask settings this register. Enable individual interrupt masks. Individual interrupts this register will occur enabled. Enable Serial Port Interrupt. This controls masking serial Port interrupt. Disable serial Port interrupts. Enable interrupt requests generated RI_0 (SCON0.0, 98h) TI_0 (SCON0.1, 98h) flags. Enable Timer Interrupt. This controls masking Timer interrupt. Disable Timer interrupt. Enable interrupt requests generated flag (TCON.7, 88h). Enable External Interrupt This controls masking external interrupt Disable external interrupt Enable interrupt requests generated INT1 pin. Enable Timer Interrupt. This controls masking Timer interrupt. Disable Timer interrupts. Enable interrupt requests generated flag (TCON.5, 88h). Enable External Interrupt This controls masking external interrupt Disable external interrupt Enable interrupt requests generated INT0 pin.
www.ti.com
MSC1200 MSC1201 MSC1202
Port Data Direction (P1DDRL)
P13H P13L P12H P12L P11H P11L P10H P10L Reset Value
P1.3 bits
Port control.
P13H P13L Standard 8051 CMOS Output Open Drain Output Input
P1.2 bits
Port control.
P12H P12L Standard 8051 CMOS Output Open Drain Output Input
P1.1 bits
Port control.
P11H P11L Standard 8051 CMOS Output Open Drain Output Input
P1.0 bits
Port control.
P10H P10L Standard 8051 CMOS Output Open Drain Output Input
MSC1200 MSC1201 MSC1202
www.ti.com
Port Data Direction High (P1DDRH)
P17H P17L P16H P16L P15H P15L P14H P14L Reset Value
P1.7 bits
Port control.
P17H P17L Standard 8051 CMOS Output Open Drain Output Input
P1.6 bits
Port control.
P16H P16L Standard 8051 CMOS Output Open Drain Output Input
P1.5 bits
Port control.
P15H P15L Standard 8051 CMOS Output Open Drain Output Input
P1.4 bits
Port control.
P14H P14L Standard 8051 CMOS Output Open Drain Output Input
www.ti.com
MSC1200 MSC1201 MSC1202
Port (P3)
P3.7 P3.6 SCK/SCL/CLKS P3.5 P3.4 P3.3 INT1 P3.2 INT0 P3.1 TXD0 P3.0 RXD0 Reset Value
P3.7-0 bits
General-Purpose Port This register functions general-purpose port. addition, pins have alternative function listed below. Each functions controlled several other SFRs. associated Port latch must contain logic before used alternate function capacity.
SCK/SCL/CLKS Clock Source Select. Refer PASEL (SFR F2h). INT1 INT0 TXD0 RXD0 Timer/Counter External Input. transition this will increment Timer
Timer/Counter External Input. transition this will increment Timer
External Interrupt falling edge/low level this will cause external interrupt enabled.
External Interrupt falling edge/low level this will cause external interrupt enabled.
Serial Port Transmit. This transmits serial Port data serial port modes emits synchronizing clock serial port mode Serial Port Receive. This receives serial Port data serial port modes bidirectional data transfer serial port mode
MSC1200 MSC1201 MSC1202
www.ti.com
Port Data Direction (P3DDRL)
P33H P33L P32H P32L P31H P31L P30H P30L Reset Value
P3.3 bits
Port control.
P33H P33L Standard 8051 CMOS Output Open Drain Output Input
P3.2 bits
Port control.
P32H P32L Standard 8051 CMOS Output Open Drain Output Input
P3.1 bits
Port control.
P31H P31L Standard 8051 CMOS Output Open Drain Output Input
P3.0 bits
Port control.
P30H P30L Standard 8051 CMOS Output Open Drain Output Input
www.ti.com
MSC1200 MSC1201 MSC1202
Port Data Direction High (P3DDRH)
P37H P37L P36H P36L P35H P35L P34H P34L Reset Value
P3.7 bits
Port control.
P37H P37L Standard 8051 CMOS Output Open Drain Output Input
NOTE: Port also controlled Memory Access Control HCR1.1.
P3.6 bits
Port control.
P36H P36L Standard 8051 CMOS Output Open Drain Output Input
NOTE: Port also controlled Memory Access Control HCR1.1.
P3.5 bits
Port control.
P35H P35L Standard 8051 CMOS Output Open Drain Output Input
P3.4 bits
Port control.
P34H P34L Standard 8051 CMOS Output Open Drain Output Input
MSC1200 MSC1201 MSC1202
www.ti.com
IDAC
Reset Value
IDAC bits
Current DAC. IDACOUT IDAC 3.9µA (1mA full-scale). Setting (PDCON.PDIDAC) will shut down IDAC float IDAC pin.
Interrupt Priority (IP)
Reset Value
Serial Port Interrupt. This controls priority serial Port interrupt. Serial Port priority determined natural priority order. Serial Port high-priority interrupt. Timer Interrupt. This controls priority Timer interrupt. Timer priority determined natural priority order. Timer priority high-priority interrupt. External Interrupt This controls priority external interrupt External interrupt priority determined natural priority order. External interrupt high-priority interrupt. Timer Interrupt. This controls priority Timer interrupt. Timer priority determined natural priority order. Timer priority high-priority interrupt. External Interrupt This controls priority external interrupt External interrupt priority determined natural priority order. External interrupt high-priority interrupt.
Enable Wake (EWU) (Waking from Idle Mode)
EWUWDT EWUEX1 EWUEX0 Reset Value
Auxiliary interrupts will wake from Idle mode. They enabled with (EICON.5).
EWUWDT Enable Wake Watchdog Timer. Wake using watchdog timer interrupt. wake watchdog timer interrupt. Wake watchdog timer interrupt. Enable Wake External Wake using external interrupt source wake external interrupt source Wake external interrupt source Enable Wake External Wake using external interrupt source wake external interrupt source Wake external interrupt source
EWUEX1
EWUEX0
www.ti.com
MSC1200 MSC1201 MSC1202
System Clock Divider (SYSCLK)
DIVMOD1 DIVMOD0 DIV2 DIV1 DIV0 Reset Value
NOTE: Changing SYSCLK registers affects internal clocks, including clock. DIVMOD1-0 Clock Divide Mode bits Write:
DIVMOD DIVIDE MODE Normal mode (default, divide). Immediate mode: start divide immediately; return Normal mode Idle mode wakeup condition, direct write SFR. Delay mode: same Immediate mode, except that mode changes with millisecond interrupt (MSINT). MSINT enabled, divide will start next MSINT return normal mode following MSINT. MSINT enabled, divide will start next MSINT condition (even masked) will leave divide mode until MSINT counter overflows, which follows wakeup condition. exit directly writing SFR. Manual mode: start divide immediately; exit mode only directly writing SFR. Same immediate mode, cannot return Normal mode Idle mode wakeup condition; only directly writing SFR.
Read:
DIVMOD DIVIDE MODE STATUS divide Divider Immediate mode Divider Delay mode Manual mode
DIV2-0
Divide Mode
DIVISOR Divide (default) Divide Divide Divide Divide Divide 1024 Divide 2048 Divide 4096 fCLK FREQUENCY fCLK fSYS/2 fCLK fSYS/4 fCLK fSYS/8 fCLK fSYS/16 fCLK fSYS/32 fCLK fSYS/1024 fCLK fSYS/2048 fCLK fSYS/4096
MSC1200 MSC1201 MSC1202
www.ti.com
Program Status Word (PSW)
Reset Value
RS1, bits
Carry Flag. This when last arithmetic operation resulted carry (during addition) borrow (during subtraction). Otherwise, cleared arithmetic operations. Auxiliary Carry Flag. This last arithmetic operation resulted carry into (during addition), borrow (during subtraction) from high order nibble. Otherwise, cleared arithmetic operations. User Flag This bit-addressable, general-purpose flag software control.
Register Bank Select 1-0. These bits select which register bank addressed during register accesses.
REGISTER BANK ADDRESS
Overflow Flag. This last arithmetic operation resulted carry (addition), borrow (subtraction), overflow (multiply divide). Otherwise, cleared arithmetic operations. User Flag This bit-addressable, general-purpose flag software control.
Parity Flag. This modulo-2 bits accumulator (odd parity), cleared even parity.
www.ti.com
MSC1200 MSC1201 MSC1202
Offset Calibration Byte (OCL)
Reset Value
MSC120x devices support 24-bit calibration values.
bits Offset Calibration Byte. This byte 24-bit word that contains offset calibration. This value written device after performing calibration. This register read/writable, used setting calibration values independent hardware-generated calibration values.
Offset Calibration Middle Byte (OCM)
Reset Value
MSC120x devices support 24-bit calibration values.
bits Offset Calibration Middle Byte. This middle byte 24-bit word that contains offset calibration. This value written device after performing calibration. This register read/writable, used setting calibration values independent hardware-generated calibration values.
Offset Calibration High Byte (OCH)
Reset Value
MSC120x devices support 24-bit calibration values.
bits Offset Calibration High Byte. This high byte 24-bit word that contains offset calibration. This value written device after performing calibration. This register read/writable, used setting calibration values independent hardware-generated calibration values.
Gain Calibration Byte (GCL)
Reset Value
MSC120x devices support 24-bit calibration values.
bits Gain Calibration Byte. This byte 24-bit word that contains gain calibration. This value written device after performing calibration. This register read/writable, used setting calibration values independent hardware-generated calibration values.
Gain Calibration Middle Byte (GCM)
Reset Value
MSC120x devices support 24-bit calibration values.
bits Gain Calibration Middle Byte. This middle byte 24-bit word that contains gain calibration. This value written device after performing calibration. This register read/writable, used setting calibration values independent hardware-generated calibration values.
MSC1200 MSC1201 MSC1202
www.ti.com
Gain Calibration High Byte (GCH)
Reset Value
MSC120x devices support 24-bit calibration values.
bits Gain Calibration High Byte. This high byte 24-bit word that contains gain calibration. This value written device after performing calibration. This register read/writable, used setting calibration values independent hardware-generated calibration values.
Input Multiplexer (ADMUX)
INP3 INP2 INP1 INP0 INN3 INN2 INN1 INN0 Reset Value
INP3-0 bits
Input Multiplexer Positive Input. This selects positive signal input.
INP3 INP2 INP1 INP0 POSITIVE INPUT AIN0 (default) AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 (MSC1200 only; MSC1201/02, this internally tied REFIN-) AIN7 (MSC1200 only; MSC1201/02, this internally tied REFIN-) AINCOM Temperature Sensor (requires ADMUX FFh)
INN3-0 bits
Input Multiplexer Negative Input. This selects negative signal input.
INN3 INN2 INN1 INN0 NEGATIVE INPUT AIN0 AIN1 (default) AIN2 AIN3 AIN4 AIN5 AIN6 (MSC1200 Only) AIN7 (MSC1200 Only) AINCOM Temperature Sensor (requires ADMUX FFh)
www.ti.com
MSC1200 MSC1201 MSC1202
Enable Interrupt Control (EICON)
WDTI Reset Value
Enable Auxiliary Interrupt. Auxiliary Interrupt accesses nine different interrupts which masked identified registers (SFR A5h), (SFR A6h), AISTAT (SFR A7h). Auxiliary Interrupt disabled (default). Auxiliary Interrupt enabled. Auxiliary Interrupt Flag. must cleared software before exiting interrupt service routine, after source interrupt cleared. Otherwise, interrupt occurs again. Setting software generates Auxiliary Interrupt, enabled. Auxiliary Interrupt detected (default). Auxiliary Interrupt detected. Watchdog Timer Interrupt Flag. WDTI must cleared software before exiting interrupt service routine. Otherwise, interrupt occurs again. Setting WDTI software generates watchdog time interrupt, enabled. Watchdog timer generate interrupt reset. interrupt available only reset action disabled HCR0. Watchdog Timer Interrupt Detected (default). Watchdog Timer Interrupt Detected.
WDTI
Results Byte (ADRESL)
Reset Value
ADRESL bits
Results Byte. This byte results. Reading from this register clears interrupt; however, EICON (SFR must also cleared.
Results Middle Byte (ADRESM)
Reset Value
ADRESM bits
Results Middle Byte. This middle byte results MSC1200/01 most significant byte MSC1202.
Results High Byte (ADRESH)
Reset Value
ADRESH bits
Results High Byte. This high byte most significant byte results MSC1200/01. This sign-extended (Bipolar mode) zero-padded (Unipolar mode) byte MSC1202 (that positive unipolar results negative results).
MSC1200 MSC1201 MSC1202
www.ti.com
Control (ADCON0)
EVREF VREFH EBUF PGA2 PGA1 PGA0 Reset Value
Burnout Detect. When enabled, this connects positive current source positive channel negative current source negative channel. channel open circuit, then results will full-scale (buffer must enabled). Burnout Current Sources (default). Burnout Current Sources Enable Internal Voltage Reference. external voltage used, internal voltage reference should disabled. Internal Voltage Reference external reference. Internal Voltage Reference (default). Note that this mode, REFIN- must connected AGND. Voltage Reference High Select. internal voltage reference selected 2.5V 1.25V. REFOUT/REF 1.25V. REFOUT/REF 2.5V (default). Enable Buffer. Enables input buffer provide higher input impedance limits input voltage range dissipates more power. Buffer disabled (default). Buffer enabled. Input signal limited AVDD 1.5V. Programmable Gain Amplifier. Sets gain from 128.
PGA2 PGA1 PGA0 GAIN (default)
EVREF
VREFH
EBUF
PGA2-0 bits
www.ti.com
MSC1200 MSC1201 MSC1202
Control (ADCON1)
OF_UF CAL2 CAL1 CAL0 Reset Value
OF_UF
Overflow/Underflow. this set, data Summation register invalid; either overflow underflow occurred. This cleared writing Polarity. Polarity result Summation register. Bipolar. Unipolar.
DIGITAL OUTPUT (ADRESH:ADRESM:ADRESL) ANALOG INPUT +FSR ZERO -FSR +FSR ZERO -FSR MSC1200 MSC1201 7FFFFFh 000000h 800000h FFFFFFh 000000h 000000h MSC1202(1) 007FFFh 000000h FF8000h 00FFFFh 000000h 000000h
MSC1202 result sign-extended into ADRESH.
SM1-0 bits
Settling Mode. Selects type filter auto-select which defines digital filter settling characteristics.
SETTLING MODE Auto Fast Settling Filter Sinc2 Filter Sinc3 Filter
CAL2-0 bits
Calibration Mode Control Bits. Writing this register initiates calibration.
CAL2 CAL1 CAL0 CALIBRATION MODE Calibration (default) Self-Calibration, Offset Gain Self-Calibration, Offset only Self-Calibration, Gain only System Calibration, Offset only (requires external signal) System Calibration, Gain only (requires external signal) Reserved Reserved
NOTE: Read value-000b.
MSC1200 MSC1201 MSC1202
www.ti.com
Control (ADCON2)
Reset Value
DR7-0 bits
Decimation Ratio (refer ADCON3, DFh).
Control (ADCON3)
DR10 Reset Value
DR10-8 bits
Decimation Ratio Most Significant Bits. output data rate
fMOD Decimation Ratio where fMOD fCLK
(ACLK)1)
Accumulator ACC)
ACC.7 ACC.6 ACC.5 ACC.4 ACC.3 ACC.2 ACC.1 ACC.0 Reset Value
ACC.7-0 bits
Accumulator. This register serves accumulator arithmetic logic operations.
www.ti.com
MSC1200 MSC1201 MSC1202
Summation/Shifter Control (SSCON)
SSCON1 SSCON0 SCNT2 SCNT1 SCNT0 SHF2 SHF1 SHF0 Reset Value
Summation register powered down when powered down. zeroes written this register, 32-bit SUMR3-0 registers will cleared. Summation registers will sign-extend Bipolar Mode selected ADCON1.
SSCON1-0 Summation/Shift Count. bits
SSCON1 SSCON0 SCNT2 Note Note SCNT1 Note Note SCNT0 Note Note SHF2 Note Note SHF1 Note Note SHF0 Note Note DESCRIPTION Clear Summation Register Summation Write SUMR0 (sum count/shift ignored) Subtraction Write SUMR0 (sum count/shift ignored) Shift only Summation only Summation completes, then shift completes
Refer register definition.
SCNT2-0 bits
Summation Count. When summation complete interrupt will generated unless masked. Reading SUMR0 register clears interrupt.
SCNT2 SCNT1 SCNT0 SUMMATION COUNT
SHF2-0 bits
Shift Count.
SHF2 SHF1 SHF0 SHIFT DIVIDE
MSC1200 MSC1201 MSC1202
www.ti.com
Summation (SUMR0)
Reset Value
SUMR0 bits
Summation This least significant byte 32-bit summation register, bits Write: Will cause values SUMR3-0 added summation register. Read: Will clear Summation Interrupt.
Summation (SUMR1)
Reset Value
SUMR1 bits
Summation This most significant byte lowest bits summation register, bits 8-15.
Summation (SUMR2)
Reset Value
SUMR2 bits
Summation This most significant byte lowest bits summation register, bits 16-23.
Summation (SUMR3)
Reset Value
SUMR3 bits
Summation This most significant byte 32-bit summation register, bits 24-31.
Offset (ODAC)
Reset Value
ODAC bits
Offset DAC. This register will shift input half full-scale input range. Offset value summed into prior conversion. Writing ODAC turns Offset DAC. offset should cleared prior calibration, since offset analog output applied directly input. Offset Sign Bit. Positive Negative Offset *VREF ODAC bit7 (*1)
NOTE: ODAC cannot used offset analog inputs that buffer used signals within 50mV AGND.
www.ti.com
MSC1200 MSC1201 MSC1202
Voltage Detect Control (LVDCON)
ALVDIS ALVD3 ALVD2 ALVD1 ALVD0 Reset Value
ALVDIS
Analog Voltage Detect Disable. Enable Detection Analog Supply Voltage (ALVD flag interrupt when AVDD ALVD threshold) Disable Detection Analog Supply Voltage Analog Voltage Detect. Sets ALVD threshold. 0000: 4.6V 0001: 4.2V 0010: 3.8V 0011: 3.6V 0100: 3.3V 0101: 3.1V 0110: 2.9V 0111: 2.7V 1000: Reserved 1001: Reserved 1010: Reserved 1011: Reserved 1100: Reserved 1101: Reserved 1110: Reserved 1111: Reserved
ALVD3-0 bits
Extended Interrupt Enable (EIE)
EWDI Reset Value
EWDI
Enable Watchdog Interrupt. This enables/disables watchdog interrupt. Watchdog timer enabled WDTCON (SFR FFh) PDCON (SFR F1h) registers. Disable Watchdog Interrupt Enable Interrupt Request Generated Watchdog Timer External Interrupt Enable. This enables/disables external interrupt Disable External Interrupt Enable Externa

Other recent searches


Si7911DN - Si7911DN   Si7911DN Datasheet
MC14562B - MC14562B   MC14562B Datasheet
GTXO-560 - GTXO-560   GTXO-560 Datasheet
GTXO-560T - GTXO-560T   GTXO-560T Datasheet
GTXO-560V - GTXO-560V   GTXO-560V Datasheet
GTXO-560N - GTXO-560N   GTXO-560N Datasheet
BVU-5M1RS1 - BVU-5M1RS1   BVU-5M1RS1 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive