SEMTECH SH3100 Technical data

SH3100
Supervisory IC with I2C
Interface and PWM
POWER MANAGEMENT
Description
The SH3100 consumes very little power when in standby, and it provides a stable output clock in less than 2s. This allows it to outperform ceramic resonators and crystals requiring much longer start-up times.
Features
Master HFDCO oscillator which can be programmed to
between 8MHz and 33.5MHz with 2kHz resolution
A 32.768kHz crystal oscillator with 5-bit programma-
ble padding capacitance giving a frequency adjust- ment resolution of 4ppm
Two clock outputs, each of which can be powered inde
pendently from V
DD or VBAK and can operate either
in-phase or in complementary mode
An internal oscillator which is fuse-calibrated to
provide a 32.768kHz clock source, accuracy is better than ±3% over temperature and supply voltage
96-bit electrically programmable non-volatile fuse
memory array
7-bit programmable threshold reset comparator (VBO)
between 1.7V and 4V with 24mV resolution
Programmable reset duration between 6ms and 5.3
seconds
Periodic interrupt timer (PIT) with a 30s resolution
up to 36 hours
Real time clock with 1/256 second resolution up to
Year 2099
Spread spectrum option on the output clock
Battery backup facility, which maintains register con-
tents less than 2A consumption
1.7V to 5.5V operating range on the main VDD supply
0.9V to 5.5V operating range on the battery backup
supply (V
Edge-triggered, level-sensitive, and toggling interrupt
BAK)
output (INT)
General-purpose I/O option on the interrupt pin (INT)
Low power, low dropout voltage regulator (LDO) output
on PWM pin
Less than 10A standby current and less than 12mA
maximum operating current (excluding LDO load)
2
I
C interface with 3-bit fuse-settable address complies
with I
General-purpose 8-bit DAC and Comparator
General-purpose PWM & PDM output
Programmable watchdog counter with a 7.8ms
2
C fast mode specifi cation
resolution up to 8 seconds delay
May 22, 2006
Switched mode boost, bootstrap boost, and buck
regulation control
56 bytes of control registers including a 9-byte
scratchpad
Small 3mm x 3mm 16-lead MLP package
Covered by United States Patent 6,903,986 Semtech, the Semtech logo, MicroBuddy, Buddy, and B are marks of Semtech Corporation. All other marks belong to their respective
owners.
1
www.semtech.com
SH3100
POWER MANAGEMENT
Table of Contents
Description .................................................................................................................. .................................................................. 1
Features ...................................................................................................................... .................................................................. 1
Absolute Maximum Ratings ..................................................................................... .................................................................. 4
Current Consumption ................................................................................................ ................................................................ 4,5
Pin Confi guration ....................................................................................................... .................................................................. 6
Ordering Information ................................................................................................. .................................................................. 6
Pin Descriptions ......................................................................................................... .............................................................. 6, 7
Block Diagram ........................................................................................................... .................................................................. 8
Power Supply and Battery Backup .......................................................................... .................................................................. 9
VBAK Protection ........................................................................................................ ................................................................. 10
Operating Modes ........................................................................................................ ........................................................... 11, 12
Application Diagrams: Modes 1 to 3 ...................................................................... ................................................................. 13
Application Diagrams: Modes 4 to 6 ...................................................................... ................................................................. 14
Application Diagrams: Modes 7 to 9 ...................................................................... ................................................................. 15
Non-Volatile Fuse Memory Registers ....................................................................... ........................................................... 16, 17
SH3100 Default Settings .......................................................................................... .................................................................. 18
Register Memory Map ............................................................................................... ................................................................. 19
Register Organization ................................................................................................ ................................................................. 19
Register Initialization from Fuses .............................................................................. ................................................................. 19
Multi-Word Registers ................................................................................................. ................................................................. 19
System Management ................................................................................................. .................................................................. 20
Register Descriptions ................................................................................................ ............................................................ 21-47
Applications Information ........................................................................................... ................................................................. 48
Initial Power-Up .......................................................................................................... ................................................................. 48
Standard Operation, VDD settles at greater than programmed VBO ..................... ................................................................. 48
Standard Operation, VDD settles at less than programmed VBO .......................... ................................................................. 49
Automatic Fan Speed Control Enabled ..................................................................... .................................................................. 49
Switching Regulator Modes Enabled ........................................................................ .................................................................. 50
Pad Speci cations ..................................................................................................... .................................................................. 51
Standard Digital Input: CLKIN .................................................................................. .................................................................. 51
Tri-State / Analog Input: SNSE ................................................................................. .................................................................. 51
Dual Supply Digital Output: CLK0 & CLK1 ............................................................... .................................................................. 52
Asymmetric Drive Digital Output: NRST .................................................................... .................................................................. 52
Dual Drive Digital Bidirectional: INT .......................................................................... .................................................................. 53
I2C Communication: SCL & SDA ................................................................................ ................................................................. 54
Multi-Function Output: PWM ..................................................................................... .................................................................. 54
© 2006 Semtech Corp. www.semtech.com
2
SH3100
POWER MANAGEMENT
Table of Contents (continued)
Functional Descriptions ............................................................................................. .................................................................. 55
32.768 kHz Crystal Oscillator ................................................................................... .................................................................. 55
Plot of Crystal Padding Capacitance versus Adjustment Code .............................. .................................................................. 56
Internal 32.768 kHz Oscillator .................................................................................. .................................................................. 56
System Reset – Programmable VDD Threshold (VBO) ............................................ .................................................................. 57
Programmable Reset Duration ................................................................................. .................................................................. 58
System Reset - Watchdog Timer (WDT) .................................................................... .................................................................. 59
System Reset - Manual Override ............................................................................... .................................................................. 59
Real Time Clock (RTC) ............................................................................................... .................................................................. 60
Periodic Interval Timer (PIT) ...................................................................................... .................................................................. 61
Interrupt Operation .................................................................................................... .................................................................. 62
I2C Short-Form Interrupt Clear .................................................................................. .................................................................. 63
General Purpose 8-Bit DAC & Comparator ............................................................... .................................................................. 64
Temperature Measurement ...................................................................................... .................................................................. 65
PWM Operation & Fan Speed Control ...................................................................... .................................................................. 66
Auto-PWM Mode (Fan Control Mode) ....................................................................... .................................................................. 66
Auto-PWM Engine Features: ...................................................................................... ........................................................... 66, 67
Erratum ....................................................................................................................... .................................................................. 67
Manual PWM Control ................................................................................................. .................................................................. 67
PWM Mode ................................................................................................................. .................................................................. 68
Switching Regulator Operation ................................................................................. .................................................................. 69
Low Dropout Linear Regulator (LDO) ........................................................................ .................................................................. 70
I2C Interface ............................................................................................................... .................................................................. 71
Combined Write Format ............................................................................................ .................................................................. 71
Normal Write Format ................................................................................................. .................................................................. 71
Combined Read Format ............................................................................................ .................................................................. 72
I2C Timing Diagrams .................................................................................................. .................................................................. 73
High-Frequency Digitally-Controlled Oscillator (HFDCO) .......................................... ................................................................. 74
Spectrum Spreading .................................................................................................. .................................................................. 75
Clock Management & Frequency Locked Loop (FLL) .............................................. .................................................................. 76
CLK0 & CLK1 Outputs ............................................................................................... .................................................................. 77
HFDCO Clock On/Off Control ..................................................................................... .................................................................. 78
Outline Drawing and Land Pattern ............................................................................ .................................................................. 79
© 2006 Semtech Corp. www.semtech.com
3
SH3100
POWER MANAGEMENT
Absolute Maximum Ratings
Exceeding the specifi cations below may result in permanent damage to the device or device malfunction. Operation outside of the parameters specifi ed in the Electrical Characteristics section is not implied. Exposure to Absolute Maximum rated conditions for extended periods of time may affect device reliability.
Pin Combination Min Max Units
Supply voltages on VDD or VBAK relative to GND 0.5 5.5 V
Supply voltage on VREG when blowing fuses (1 second maximum) 3.6 3.7 V
Input voltage on CLKIN & INT -0.5 VDD V
Input voltage on SDA & SCL -0.5 5.5 V
Input voltage on SNSE, XIN, XOUT -0.5 VREG + 0.5 V
Input current on any pin (not VREG) 10 mA
Input current on VREG 150 mA
Ambient operating temperature for full specifi ed performance -40 85 °C
Ambient operating temperature for chip operation with de-rated performance -40 125 °C
Storage temperature -50 160 °C
Notes: (1) The SH3100 is an ESD-sensitive device. (2) Package ThetaJA is 100°C/Watt. This should be used to determine core temperature increase based on power dissipation.
© 2006 Semtech Corp. www.semtech.com
4
SH3100
POWER MANAGEMENT
Current Consumption
The following table shows the maximum current consumption fi gures from VDD and VBAK under a number of possible operating conditions.
Battery Backup Modes
State Condition
Battery backup 1 Crystal oscillator and RTC running from VBAK; VDD is zero 2A
Battery backup 2 Internal 32.768kHz oscillator and RTC running from VBAK; VDD is zero 12A
MAX VBAK
Current
Normal Operating Modes
State Condition
Standby 32.768kHz system clock, programmable reset, RTC and logic enabled 10A
Auto-fan mode Automatic fan mode with 32.768kHz output on CLK0; HFDCO disabled 15A
Switching regulator standby
LDO standby Standby but with LDO running on no load 250A
Start-up Current consumed during chip startup 1mA
Switching regulator maintaining 10A load with occasional active burst to maintain supply level
MAX VDD
Current
20A
Active Up to 33.5MHz output clock enabled on both CLK0 and CLK1; 20pF load on each 12mA
Programming Simultaneous blowing of up to eight fuses 100mA
Note: At temperatures above 40°C, the above fi gures start to increase due to leakage. Expect +2A at 60°C, and +6A at 80°C.
Note: VBAK current in normal operation mode is dependent on clock feedthrough from CLK0 & CLK1 to V case conditions with CLK output at 33MHz and VDD = 5.5 V, VBAK input current could be up to 2A. At lower frequencies, VBAK current drops to approximately 50nA. This effect is relat­ed to the same phenomenon as described in the V tion section, and the net feedthrough current on to VBAK may be positive or negative, dependent on V levels.
© 2006 Semtech Corp. www.semtech.com
BAK. Under worst-
BAK protec-
DD and VBAK voltage
5
SH3100
POWER MANAGEMENT
Pin Confi guration Ordering Information
Device Package
(1)
16-Pin MLP 3mm x 3mm x 0.9mm
(2)
GND
VREG
VDD
VBAK
16 15 14
1
2
3
4
TOP VIEW
T
5678
MLPQ16: 3X3 16 LEAD
SH3100IMTR
13
12
SDA
11
SCL
10
NRST
9
INT
SH3100IMLTRT
Notes:
1) Available in tape and reel packaging only. A reel contains 3000 devices.
2) Available in lead-free packaging only. This product is fully WEEE, RoHS and J-TD-020B compliant. This component and all homogenous subcomponents are RoHS compliant.
(2)
Pin Descriptions
Pin # Pin Name Pin Function
1 GND Ground
2 VREG
1.6V regulated digital supply - generated internally from V backup - may be left unconnected
3 VDD Main supply (range is 1.7V to 5.5V)
4 VBAK
5 XIN
Backup battery supply to maintain register contents and RTC operation when VDD collapses ­can be higher or lower than VDD - range is 0.9V to 5.5V - connect to VDD if not used
32.768kHz crystal oscillator input pin - tie to ground if not used - can be over driven by external clock source up to 250kHz
6 XOUT 32.768kHz crystal oscillator output pin - leave unconnected if not used
7 SNSE
Sense input for fan speed control - spare analog input for switching regulator feedback or ADC conversion - tri state (low, fl oating, or high) input pin used to select reset duration
8 GND Ground
9 INT Level, edge or toggling interrupt output, general-purpose input/output (GPIO)
10 NRST
Active-low system reset output - strong pull-down - weak pull-up - reset state is valid for VDD levels down to 1V - can be externally over driven to trigger programmed duration reset
11 SCL I2C clock - 400kHz fast mode compliant - operates up to 1MHz
DD - collapses to GND during battery
12 SDA I2C data - 400kHz fast mode compliant - operates up to 1MHz
General-purpose PWM or PDM output - fan control PWM output - LDO output regulated
13 PWM
down from V regulator control output - drives Inductor directly in bootstrap boost mode, or external switching
DD - programmable 3V to 4.5V in 18mV steps - 15mA drive capability - switching
FETs or bipolar transistors - directly drives inductor in bootstrap boost with internal switching
© 2006 Semtech Corp. www.semtech.com
6
POWER MANAGEMENT
Pin Descriptions (continued)
Pin # Pin Name Pin Function
14 CLK1 Secondary clock output - can be powered from either VDD or VBAK
15 CLKIN System clock input - used to detect processor-initiated clock STOP
16 CLK0 Primary clock output - can be powered from either VDD or VBAK
SH3100
TPAD
Thermal pad for heatsinking purposes - not connected internally - connect to system ground plane with multiple vias
© 2006 Semtech Corp. www.semtech.com
7
SH3100
g
POWER MANAGEMENT
Block Diagram
VDD
VBAK
VREG
GND
GND
SH3100
Internal regulators
Battery backup handler
Bandgap reference
OTP fuse memory 96 Bits for calibration & mode configuration
LDO
8-bit DAC and comparator. Used to monitor VDD, VBAK, SNSE or temperature.
Temperature sensor
System management
Control/status registers
Scratchpad registers
Switching regulator
PWM & fan controller
Reset Duration
Programmable VDD threshold reset generator
I2C interface
PWM
SNSE
NRST
SDA
SCL
XIN
XOUT
RTC calendar & alarm
32.768 kHz crystal oscillator
Clock select
32.768 kHz ±3% internal oscillator
Watchdog counter
Master 8 MHz to
33 MHz HFDCO
oscillator & frequency
lockin
Spread spectrum control
Clock stop/start control
PIT
Interrupt generator & GPIO
CLK0 postscaler
CLK1 postscaler
INT
CLK0
CLK1
CLKIN
© 2006 Semtech Corp. www.semtech.com
8
POWER MANAGEMENT
Power Supplies & Battery Backup
SH3100
The main power supply is between VDD and GND and may have any value between 1.7V and 5.5V for normal opera­tion. In order to guarantee start-up, VDD should initially be taken to at least 100mV above the reset threshold (VBO) in order to overcome the reset threshold hysteresis; e.g., for a VBO level of 2.8V, VDD must initially rise to at least
2.9V for the chip to come out of reset.
The battery backup supply is between VBAK and GND. The SH3100 switches to VBAK, if VDD drops below VBO and VBAK is within its valid operating range of 0.9V to 5.5V for battery backup.
While VBAK is within its valid operating range during bat­tery backup, RTC operation is maintained and those reg­ister contents not reset by a VBO reset event (Brownout) are maintained. Any functions not required during battery backup are shut down to save power.
Note: If the 32.768kHz system clock output is enabled on CLK1 during battery backup then the maximum VBAK voltage for valid CLK1 output is 4.5V. Battery backup continues for VBAK voltages above 4.5V, but the CLK1 output is no longer
guaranteed to function correctly.
When running in battery backup from the 32.768kHz crystal oscillator, full RTC accuracy is maintained down to the minimum VBAK of 0.9V.
When running in battery backup from the internal
32.768kHz oscillator, RTC accuracy is maintained only down to a VBAK level of 1.7V. Below this point, operation continues down to 0.9V, but a fl ag is set to indicate that the internal oscillator can no longer be guaranteed to be within ±3% of 32.768kHz.
The minimum VBAK level is guaranteed as 0.9V; however, depending on process variations, operation may continue down to 0.7V before battery back up fails.
An unpowered (cold) chip starts up and initializes only when VDD is applied. Applying only VBAK to a cold chip does not cause it to start up.
Battery backup facility is only enabled once the chip has come out of reset after an initial power-up.
© 2006 Semtech Corp. www.semtech.com
9
SH3100
POWER MANAGEMENT
VBAK Protection
To avoid degradation of Lithium cells connected to VBAK, charging current over the operating lifetime needs to be limited to less than 3% of the cell capacity. It is therefore necessary to limit any current fl owing from VDD to VBAK.
On the SH3100, VDD and VBAK have diode protection structures, so VDD and VBAK can independently have any DC voltage between 0 V and 5.5V, and no DC current ows between VDD and VBAK in either direction.
However, since CLK0 and CLK1 may be powered either from VDD or VBAK, there is capacitance between CLK0 or CLK1 and VBAK, so an AC signal on CLK0 or CLK1 pow­ered by VDD would couple some net current through to VBAK. This current coupling is proportional to frequency and to the voltage differential between VDD and VBAK.
The following graph shows the variation in reverse cur­rent from VDD to VBAK versus CLK frequency for different settings of VBAK. VDD is fi xed at 5.5V, which is the worst-
case condition. Note that as VBAK approaches VDD, the net current changes direction so that it fl ows into VBAK.
Note: If the SH3100 is operated at clock frequencies and sup­ply levels that mean that current fl ow out of VBAK into the bat- tery would be a problem, then one solution would be to use a series diode between the battery and VBAK to inhibit any reverse current. This lowers the battery voltage by 0.7V on to VBAK; however, since VBAK can go as low as 0.9V, this is un­likely to be a problem for lithium cells.
As additional protection, if the battery is connected in re­verse, then a large protection diode between VBAK and GND means that VBAK limits at approximately 0.7V below GND depending on the current fl owing through the diode. A safe maximum current through this protection diode is 10mA. The SH3100 continues to function normally (apart from battery backup) while VBAK is negative.
SH3100 R1: VBAK Current versus CLK0 Frequency for different VBAK values
10.00
VBAK = 5.5V
0.00
0 5 10 15 20 25 30 35 40
-10.00
-20.00
-30.00
VBAK Current (uA)
-40.00
-50.00
-60.00
-70.00
VDD = 5.5V (Worst case condition)
Negative current indicates flow out of VBAK pin
CLK0 Frequency (MHz)
VBAK = 3V
VBAK = 2.5V
VBAK = 2.0V
© 2006 Semtech Corp. www.semtech.com
10
SH3100
POWER MANAGEMENT
Operating Modes
The SH3100 is fuse programmed to a default power-up operating mode from a number of possible options. Once the device has been initialized, it is possible to use the I modes.
2
C interface to change between any of the following available
Mode LDO
1 NO NO NO YES
2 YES NO NO NO
3 NO NO YES NO
4 NO YES NO NO
Switching Regulator
Fan
Control
Duration
Reset
Notes
Standard operating mode. PWM pin may be used as general­purpose PWM/PDM output. INT defaults to high impedance and may then be programmed by I2C access to defi ne an Interrupt function or GPIO as required. Start-up frequency is determined by confi guration fuse setting
LDO is enabled on PWM pin with default output voltage between 3V and 4.5V as set by fuses. Setting may then be overridden by I2C access
Automatic fan control is enabled with SNSE input used to detect fan rotation and PWM pin used for fan drive
Bootstrap boost regulation from an external supply to VDD with internal switching FET and transfer diode on PWM pin. Regulator feedback is determined by the internal VDD divider. The PWM pin is active low during the inductor energize period and fl oating during the transfer period (to allow current to fl ow from PWM to VDD through the internal diode). During power up, the PWM pad is clamped to VDD to ensure that the chip can start up with an input battery supply as low as 1.8V. Conversion effi ciency is very low due to the relatively high internal switching FET and diode impedances, so this mode is recommended only for powering the SH3100 alone and where energy effi ciency is not important
Bootstrap boost regulation from an external supply to VDD with external switching FET and transfer diode. Regulator feedback is determined by the internal VDD divider. This is suitable for heavier load requirements and is limited by the
5 NO YES NO NO
6 NO YES NO NO
Note: The Reset Duration column refers to the option to select Low, Medium or fuse set reset durations by the tristate input SNSE pin. If this option is not available then the reset duration defaults to the fuse setting.
© 2006 Semtech Corp. www.semtech.com
capabilities of the external components. The PWM pin drives an external NMOS or NPN switching the inductor to GND, and is High during the inductor energize period and Low during the transfer period (to allow current to fl ow through the external diode)
Normal boost regulation from VDD to a separate supply with external switching FET and transfer diode. Regulator feedback is input on the SNSE pin. The PWM pin drives an external NMOS or NPN switching the inductor to GND, and is High during the inductor energize period and Low during the transfer period
11
SH3100
POWER MANAGEMENT
Operating Modes (continued)
Mode LDO
7 NO YES NO NO
8 NO YES NO NO
9 NO YES NO NO
Switching Regulator
Fan
Control
Reset
Duration
Notes
Normal boost regulation from VDD to VBAK with external switching FET and transfer diode. Operation is as mode six but regulator feedback is determined by the internal VBAK divider
Buck regulation from VDD to a separate supply with external switching FET and transfer diode. Regulator feedback is input on the SNSE pin. The PWM pin drives an external PMOS or PNP switching the inductor to VDD and is Low during the inductor energize period and High during the transfer period (to allow current to fl ow through the external diode)
Buck regulation from VDD to VBAK with external switching FET and transfer diode. Operation is as mode 8 but regulator feedback is determined by the internal VBAK divider
© 2006 Semtech Corp. www.semtech.com
12
POWER MANAGEMENT
Application Diagrams - Modes 1 to 3
.
Mode 1 – Standard operation
No LDO, fan control or switching regulation.
General purpose PWM/PDM output is available
Use with or without external 32.768 kHz crystal
Register settings
DeviceMode = 000
SH3100
Mode 2 – LDO enabled
As standard operation but with PWM output pin programmed as LDO output. (Linearly regulated down from VDD).
Register settings
DeviceMode = 100
ForcedDACValue = xx (to set LDO
voltage)
Mode 3 – Auto fan speed control
Fan speed is automatically controlled by measuring temperature at regular intervals and adjusting PWM duty cycle according to configurable control parameters.
SNSE pin is monitored to detect possible fan stall
Register settings
DeviceMode = 101 ComparatorSource = 11 (SNSE) CLK1HF/LF = 0 ForcedDACValue = xx (to override 70 mV
SNSE threshold if required)
© 2006 Semtech Corp. www.semtech.com
13
SH3100
POWER MANAGEMENT
Application Diagrams - Modes 4 to 6
Mode 4 – Bootstrap boost regulation using internal switching FET
VDD is stepped up from external supply source using internal switching on PWM.
Starts up with external supply as low as 1.8 V and continue to operate as external supply drops as low as 1 V.
Regulation timing for all switching regulator modes is set by internal programmable HFDCO oscillator.
Register settings
DeviceMode = 001 ComparatorSource = 00 (VDD) CLK1HF/LF = 1 ForcedDACValue = xx (to set VDD level) Set CLK1 frequency as desired
Mode 5 – Bootstrap boost regulation using external switching FET.
VDD is stepped up from external supply source using external switching FET controlled by PWM. Use for higher load requirements.
Regulated output voltage is set by internal DAC8. Feedback is fixed as VDD/3.
1Mohm pull-down resistor is required to indicate external switching configuration to SH3100.
Register settings
DeviceMode = 001 ComparatorSource = 00 (VDD) CLK1HF/LF = 1 ForcedDACValue = xx (to set VDD level) Set CLK1 frequency as desired
Mode 6 – Normal boost regulation using external FET & external feedback divider
Regulated supply is stepped up from VDD using external switching FET controlled by PWM.
Regulated output voltage is set by internal DAC8 and feedback on SNSE.
1Mohm resistor indicates external switching and also ensures NMOS is turned off during power up
Register settings
DeviceMode = 001 ComparatorSource = 11 (SNSE) CLK1HF/LF = 1 ForcedDACValue = xx (to set VDD level) Set CLK1 frequency as desired
© 2006 Semtech Corp. www.semtech.com
14
POWER MANAGEMENT
Application Diagrams - Modes 7 to 9
Mode 7 – Normal boost regulation using external FET & internal feedback divider
VBAK is stepped up from VDD using external switching FET controlled by PWM.
Regulated output voltage is set by internal DAC8. Feedback is fixed as VBAK/3
1 MOhm resistor indicates external switching and also ensures NMOS is turned off during power up
Register settings
DeviceMode = 001 ComparatorSource = 01 (VBAK) CLK1HF/LF = 1 ForcedDACValue = xx (to set VDD level) Set CLK1 frequency as desired
.
SH3100
Mode 8 – Buck regulation using external FET & external feedback divider
Regulated supply is stepped down from VDD using external switching FET controlled by PWM.
Regulated output voltage is set by internal DAC8 and feedback on SNSE.
1 MOhm resistor indicates external switching and also ensures PMOS is turned off during power up
Register settings
DeviceMode = 011 ComparatorSource = 11 (SNSE) CLK1HF/LF = 1 ForcedDACValue = xx (to set VDD level) Set CLK1 frequency as desired
Mode 9 – Buck regulation using external FET & internal feedback divider
Regulated supply is stepped down from VDD to VBAK using external switching controlled by PWM.
Regulated output voltage is set by internal DAC8. Feedback is fixed as VBAK/3.
1 MOhm resistor indicates external switching and also ensures PMOS is turned off during power up
Register settings
DeviceMode = 011 ComparatorSource = 01 (VBAK) CLK1HF/LF = 1 ForcedDACValue = xx (to set VDD level) Set CLK1 frequency as desired
© 2006 Semtech Corp. www.semtech.com
15
SH3100
POWER MANAGEMENT
Non-Volatile Fuse Memory Registers
The 96-bit non-volatile fuse memory contains the calibration and confi guration control registers. The transfer column indicates under which conditions the fuse contents are transferred to the chip control registers. Fuses are blown on test and are extremely robust. There is no mechanism to reset fuses once blown. Calibration fuses are always set to obtain the required parametric specifi cations. Application fuses are set as required.
P Power on reset. (Power fi rst applied) W Watchdog reset event B Brownout (VDD drops below VBO threshold) R Forced fuse read initiated by I
Fuse Register Type Bits Range of Values Transfer
Bandgap reference Calibration 4 Bandgap set to 1.17V ±1% P, W, R
Internal 32.768kHz ±2% oscillator Calibration 10 Set to 32.768kHz ±128Hz at 25°C P, W, B, R
Temperature sensor trim Calibration 4 Temperature sensor set to ±2°C accuracy P, W, B, R
VDD reset threshold (VBO) VBO Reset 7 1.7V to 4 P, W, R
Chip reset duration Application 5 6ms to 6 seconds P, W, R
2
C access
Crystal load capacitance Application 5 5pF to 22pF P, R
Master HFDCO clock FLL control Frequency is code x 2.048kHz Accuracy is defi ned by 32.768kHz source
Master HFDCO clock start-up frequency Direct HFDCO control if FLL disabled Frequency versus code varies with process
CLK0 postscaler Application 3 1 to 128 P, W, B, R
CLK1 postscaler Application 4 1 to 32768 P, W, R
Spread-spectrum amplitude Application 2 32kHz to 128kHz P, W, B, R
Spread-spectrum enable Application 1 On or Off P, W, B, R
CLK1 output enable Application 1 On or Off P, W, R
CLK1 switch to VBAK supply Application 1 On or Off P, W, R
CLK1 output invert Application 1 On or Off P, W, R
CLK1 force to 32.768kHz source Application 1 On or Off P, W, R
Application 14 8MHz to 33. MHz P, W, B, R
Application 16 Nominally 6MHz to 42MHz P, W, B, R
Chip mode select Application 3 Normal, boost, buck, LDO, fan control P, W, R
I2C slave address Application 3 1 of 8 addresses P, W, B, R
Regulator start-up voltage Application 4 1.9V to 4.5V P, W, R
© 2006 Semtech Corp. www.semtech.com
16
SH3100
POWER MANAGEMENT
Non-Volatile Fuse Memory Registers
Fuse Register Type Bits Range of Values Transfer
Comparator input Mux select Application 2 VDD, VBAK, temperature, SNSE P, W, R
Application fuse write-protect Protection 1 On or Off P, W, R
VBO threshold write-protect Protection 1 On or Off P, W, R
Calibration fuse write-protect Protection 1 On or Off P, W, R
Unused Spare 2 N/A N/A
© 2006 Semtech Corp. www.semtech.com
17
SH3100
POWER MANAGEMENT
SH3100 Default Settings
During production test, the calibration fuses are set as required to trim out process variations. For this device, the start-up confi guration fuses are set as follows:
ADDR Register Bits Description Value Fuse Setting
0 x 17 DAC Value [7:0]
0 x 18 Device mode [5:3] Default start-up operating mode Auto-fan 101
0 x 19 Comparator source [1:0] Selects comparator source SNSE 11
0 x 20 CLK0 postscaler [2:0] Set HFDCO to CLK0 divider ratio 8 011
CLK1 supply [7] Sets CLK1 supply to VDD or VBAK VDD 0
CLK1 HF/LF [6] Sets CLK1 to HF or LF LF 0
0 x 21
Invert CLK1 [5] Inverts CLK1 output Off 0
CLK1 enable [4] CLK1 output enable Off 0
Sets default value on the 8-bit DAC if the LDO or switching regulator modes are selected
660mV 01101010
CLK1 postscaler [3:0] Set HFDCO to CLK1 divider ratio 1 0000
SS enable [7] Enable HFDCO spectrum spreading Off 0
0 x 22
SS confi guration [6:5] Spectrum spreading bandwidth 32kHz 00
0 x 23 FLL set frequency (MSB) [5:0]
0x24 FLL set frequency (LSB) [7:0]
0x30 Reset threshold [6:0] VBO reset threshold 2.93V 0110010
0x31 Reset duration [4:0] Reset duration 222ms 01101
0x42 Xtal padding capacitance trim [4:0] Crystal load capacitance 11.5pF 00110
0x44
0x45
0x46
0x47 I
HFDCO start-up frequency [18:0]
2
C Slave address [2:0] LSB of I2C slave address. (MSB fi xed at 0100) 000 000
Application fuse protect [2] Application fuse write protect Off 0
MSB of the FLL set frequency. Locked to
32.768kHz crystal
LSB of the FLL set frequency; locked to
32.768kHz crystal
Master HFDCO start-up frequency. Use for direct HFDCO control if FLL disabled. Frequency versus code varies with process
8MHz 001111
8MHz 01000001
8 MHz
Device
Dependent
0x49
© 2006 Semtech Corp. www.semtech.com
VBO reset fuse protect [1] VBO threshold fuse write protect Off 0
Calibration fuse protect [0] Calibration fuse write protect On 1
18
POWER MANAGEMENT
Register Memory Map
SH3100
Each register and register group is described in the fol­lowing register memory map and subsequent register de­scription tables.
Register Organization
The SH3100 uses a total of 53 8-bit registers, identifi ed by a register name and corresponding hexadecimal regis­ter address. They are presented here in ascending order by register address. Some registers carry several individ­ual data fi elds of various sizes; from single-bit values (e.g. ags), upwards. Several data fi elds are spread across multiple registers, as shown in the register map. Shaded areas in the map are ‘don’t care’ and writing either 0 or 1 does not affect any function of the device. Cross-hatched areas denote registers which are initialized at startup from the on-chip fuse memory.
CAUTION! Do not write to any undefi ned register ad- dresses, as this may cause the device to operate in a test mode. If an undefi ned register has been inadvertently ad- dressed, the device should be reset to ensure the unde­ ned registers are at default values.
Multi-Word Registers
The RTC,
PeriodicTimer
(PIT),
WakeupTime
and
DCOCode
are multi-byte registers. The least signifi cant byte (LSB) must be the last of the set to be written, after which their combined value takes effect. Conversely, the LSB must be the fi rst byte of these registers to be read.
Because these registers share common resources within
2
the I
C interface, it is important that after writing the LSB of one of these registers, neither of the others is accessed for a period to give the internal registers time to update. After writing to the RTC, subsequent writes to the PIT should be delayed by at least 4 ms; writes to by a period equal to CLK0; and writes to
DCOCode
WakeUpTime
by
31s.
Crystal Trim Write Protect
As an additional measure to protect the crystal loading capacitance from invalid adjustment, each time the value of the
XtalTrim
register is changed, a ‘0’ must fi rst be writ-
ten to the XtalTrimWP register on the preceding access.
Register Initialization from Fuses
Some register bits are initialized from the fuse memory on power-up and following selective reset events. All these bits can be overwritten by software once the reset signal NRST has been negated, unless the relevant write-protect fuse has been set. The fuses defi ne only the default, pow- er-on state of the device. The registers which are fuse-ini­tialized are denoted in the register map with cross-hatch­ing.
Note: If the fuses cannot be written, but unlike other registers the register CAN still be written - as detailed above.
AppSpecifi cWP
bit is set to ‘1’, then the
XtalTrim XtalTrim
© 2006 Semtech Corp. www.semtech.com
19
SH3100
Register Name Data Bit
Address
(hex)
Default
(hex)
7 (MSB) 6 5 4 3 2 1 0 (LSB)
POWER MANAGEMENT
System Management
RO = Read Only R/W = Read/Write
WakeupTime (R/W)
PeriodicTimer(RO)
RTC. (R/W)
InterruptEnable (R/W) 14 00
InterruptStatus (R/W) 15 00 SNSE Fault ADC Done RTC Alarm Comparator
ADCResult (RO) 16 80 ADC Conversion result ForcedDACValue (R/W) 17 ADCConfig (R/W) 18 40 Initiate ADC
Config (R/W) 19 00 Maintain
CLK0Config (R/W) 20 30 CLK0 supply CLK0
CLK1Config (R/W) 21 00 CLK1 supply CLK1
FLLConfig (R/W) 22 00 SS Enable SS Config Fine Lock Coarse Lock Enable FLL
ResetThreshold (R/W) 30 00 ResetThreshold ResetDuration (R/W) 31 00 ResetDuration Status (R/W) 32 28 Xtal osc
CauseOfReset (R/W) 33 09 VBO WDT Code
WDTCode (R/W) 34 00 Watchdog refresh code WDTConfig (R/W) 35 00
WDTPeriod (R/W) 36 00 Watchdog timeout period INTConfig (R/W) 37 00 Edge or
MinStartTemp (R/W) 38 7B Minimum start temperature for fan control mode DutyCycleStepSize (R/W) 39 11
Int32kCoarseTrim (R/W) 40 Int32kFineTrim(R/W) 41 00 Internal 32.768 kHz oscillator fine trim
XtalTrim (R/W) 42 00 Xtal padding capacitor trim BGCode (R/W) 43 00 Bandgap trim – CALIBRATION ONLY DCOCode (R/W)
I2CSlaveAddr (R/W) 47 00 I2C Slave address [2:0] TempTrim (R/W) 48 00 Temperature Sensor Trim – CALIBRATION ONLY WriteProtects (R/W) 49 10 Xtal Trim
RTCAlarm/Scratchpad (R/W)
00 00 WakeupTime[31:24] 01 00 WakeupTime[23:16]
02 00 WakeupTime[15:8]
03 00 WakeupTime[7:0]
06 00 PeriodicTimer[31:24] 07 00 PeriodicTimer [23:16] 08 00 PeriodicTimer [15:8] 09 00 PeriodicTimer [7:0] 0B 03 Year (upper BCD digit ) Year (lower BCD digit) 0C 01
0D 01 Day (upper BCD digit) Day (lower BCD digit) 0E 00 Hour (upper BCD digit) Hour (lower BDC digit) 0F 00 Minutes (upper BCD digit) Minutes (lower BCD digit) 10 00 Seconds (upper BCD digit) Seconds (lower BDC digit) 11 00 Subseconds
64 DAC value forced by software
Conversion
23 0F FLLDivideRatio[13:8] FLLDivideRatio (R/W) 24
41 FLLDivideRatio[7:0]
stable
PDM or
3A 00 PWM Duty Cycle[9:8] ManualPWMDutyCycle (R/W) 3B 00 PWM duty cycle[7:0]
20 Internal 32.768 kHz oscillator trim – CALIBRATION ONLY
44 00 DCO Bank1 startup code 45 00 DCO Bank2 startup code 46
00 DCO Bank3 startup code[6:3] DCO Bank3 startup code[2:0]
80 00 Year (upper BCD digit )/SP[39:36] Year (lower BCD digit)/SP[35:32] 81 00 SP[31:29] Month
82 00 SP[23:22] Day (upper BCD
83 00 SP[15:14] Hour (upper BCD
84 00 SP[7] Minutes (upper BCD digit)/SP[6:4] Minutes (lower BCD digit)/SP[3:0]
Month
SNSE Fault ADC Done RTC Alarm Comparator
Comparator
polarity
LDO
HF/LF
HF/LF
Comparator
Level
PWM
Comparator
interrupt
CLK1 = CLK0 CLK0
Invert CLK1 CLK1
o/p
ShortCode
polarity
RC osc
stable
AutoWDT-
I2C
Enable
Duty cycle increment per degree in fan control mode
digit)/SP[21:20]
digit)/SP[13:12]
(upper BCD
digit)
Device mode DAC clock post-scaler DAC enable
Force DCO On Force
Enable
Enable
Auto-
ClkDetect
mode
Value at INT
pin
WP
(upper BCD
digi)/SP[28]
RTC Invalid SNSE
GPIO
polariy
Month (lower BCD digit)
trigger
trigger
internal
32.768 kHz on
CLK1 Post-scaler
violation
Suspend
GPIO
Direction
– CALIBRATION ONLY
Cal Fuse WP App-
Month (lower BCD digit)/SP[27:24]
Day (lower BCD digit)/SP[19:16]
Hour (lower BDC digit)/SP[11:8]
Comparator source select
CLK0 Post-scaler
activity
WDT
expired
WDT prescaler
Enable INT
Toggling
Specific
Fuse WP
PIT expired
PIT expired
FLL Locked
PORB
Interrupt or
GPIO
Reset-
Threshold
WP
© 2006 Semtech Corp. www.semtech.com
20
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions
Address(hex): 00
SH3100
WakeupTime
[7:0] WakeupTime
Most significant byte of the 4-byte WakeupTime
(RW) 8 Most significant bits of the WakeupTime .
00 (hex) The Periodic Interval Timer (PIT) generates a periodic interrupt, the
interval of which is set by the four WakeupTime registers. Period = WakeupTime/32768. Setting WakeupTime to 0 disables the PIT This register only takes effect once the least significant byte (address 03) has been written. All four bytes should be written, even if some have not changed
Default Value: 0000 0000 Reset Event: P
Address(hex): 01
WakeupTime
[7:0] WakeupTime
Bits [23:16] of the 4-byte WakeupTime
Address(hex): 02
WakeupTime
(RW) Bits [23:16] of the WakeupTime.
00 (hex) See register 00 description
(RW) Bits [15:8] of the WakeupTime.
Default Value: 0000 0000 Reset Event: P
Default Value: 0000 0000 Reset Event: P
[7:0] WakeupTime
Bits [15:8] of the 4-byte WakeupTime
© 2006 Semtech Corp. www.semtech.com
21
00 (hex) See register 00 description
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 03
WakeupTime
[7:0] WakeupTime
Bits [7:0] of the 4-byte
WakeupTime
00 (hex) The least significant byte of WakeupTime.
(RW) Least Significant Byte of WakeupTime.
Writing to this register loads all four bytes of WakeupTime into the PIT after up to two periods of the 32.768 kHz clock, i.e. 61 μs later. It is important that no writes or reads to either WakeupTime, RTC, PeriodicTimer nor DCOCode occur during this period. The PeriodicTimer is reset whenever this register is written When reading WakeupTime, this must be the first of the four bytes to be read
Address(hex): 06
PeriodicTimer
(RO) Most Significant Byte of PeriodicTimer.
Default Value: 0000 0000 Reset Event: P
Default Value: 0000 0000 Reset Event: P, W, B
[7:0] PeriodicTimer
Bits [31:23] of the 4 byte
PeriodicTimer
00 (hex) The most significant byte of PeriodicTimer, which repetitively
increments from 0 up to WakeupTime, clocked by the
32.768 kHz clock (Xtal if stable, internal 32.768 kHz oscillator otherwise). When reading PeriodicTimer, the least significant byte should read first The PeriodicTimer is disabled if WakeupTime is zero
Address(hex): 07
PeriodicTimer
[7:0] PeriodicTimer
Bits [23:16] of the 4 byte PeriodicTimer
Address(hex): 08
PeriodicTimer
(RO) Bits [23:16] of PeriodicTimer.
00 (hex) See register 06 description
(RO) Bits [15:8] of PeriodicTimer.
Default Value: 0000 0000 Reset Event: P, W, B
Default Value: 0000 0000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
[7:0] PeriodicTimer
Bits [15:8] of the 4 byte PeriodicTimer
00 (hex) See register 06 description
22
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions (continued)
Address(hex): 09
SH3100
PeriodicTimer
[7:0] PeriodicTimer
Bits [7:0] of the 4 byte PeriodicTimer
(RO) Bits [7:0] of PeriodicTimer.
00 (hex) See register 06 description
Default Value: 0000 0000 Reset Event: P, W, B
Address(hex): 0B
RTC
[7:4] Year (MSD) 00 (hex) Upper digit of the Binary Coded Decimal (BCD) year count
[3:0] Year (LSD) 03 (hex) Lower digit of the BCD year count. Years cycle 00 (BCD) to 99
Year (MSD) Year (LSD)
(R/W) Real Time Clock. Default Value: 0000 0011
Reset Event: P
(BCD) RTC runs continuously after startup, even through brownouts and watchdog resets When writing the RTC, all bytes must be written, and LSB (address 11) must be written last When reading the RTC, the LSB must be read first
Address(hex): 0C
RTC
Month (MSD) Month (LSD)
[4] Month (MSD) 00 (hex) Upper digit of the Binary Coded Decimal (BCD)month count
[3:0] Month (LSD) 03 (hex) Lower digit of the BCD month count. Month counter cycles from
(R/W) Real Time Clock. Default Value: 0000 0001
Reset Event: P
01 (BCD) to 12 (BCD) See also 0B description
© 2006 Semtech Corp. www.semtech.com
23
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 0D
RTC
Day (MSD) Day (LSD)
[5:4] Day (MSD) 00 (hex) Upper digit of the Binary Coded Decimal (BCD) day-of-the-month
[3:0] Day (LSD) 01 (hex) Lower digit of the BCD day-of-the-month count. Cycles from 01
Address(hex): 0E
RTC
(R/W) Real Time Clock. Default Value: 0000 0001
Reset Event: P
count
(BCD) to 28,29,30 or 31 (BCD) according to the month, and tracks leap years correctly up to 2099 See also 0B description
(R/W) Real Time Clock.
Default Value: 0000 0000 Reset Event: P
Hour (MSD) Hour (LSD)
[5:4] Hour (MSD) 00 (hex) Upper digit of the Binary Coded Decimal hour count
[3:0] Hour (LSD) 00 (hex) Lower digit of the BCD hour count. Cycles from 00 (BCD) to 23
(BCD) See also 0B description
Address(hex): 0F
RTC
Minutes (MSD) Minutes (LSD)
[6:4] Minute (MSD) 00 (hex) Upper digit of the Binary Coded Decimal minute count
[3:0] Minute (LSD) 00 (hex) Lower digit of the BCD minute count. Cycles from 00 (BCD) to
(R/W) Real Time Clock.
59 (BCD) See also 0B description
Default Value: 0000 0000 Reset Event: P
© 2006 Semtech Corp. www.semtech.com
24
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions (continued)
Address(hex): 10
SH3100
RTC
[6:4] Seconds (MSD) 00 (hex) Upper digit of the Binary Coded Decimal seconds count
[3:0] Seconds (LSD) 00 (hex) Lower digit of the BCD seconds count. Cycles from 00 (BCD) to
Seconds (MSD) Seconds (LSD)
(R/W) Real Time Clock.
59 (BCD) See also 0B description
Default Value: 0000 0000 Reset Event: P
Address(hex): 11
RTC
[7:0] SubSeconds 00 (hex) Least significant byte of the RTC, incrementing at 256 Hz from 00 to FF. Note that
SubSeconds
this is the only RTC byte which is NOT BCD coded Writing to this register loads all six bytes of RTC into the counter after up to two periods of the 256 Hz clock, i.e. 7.8 ms later. It is important that no writes or reads to either WakeupTime, RTC, PeriodicTimer nor DCOCode occur during this period When reading the RTC, this must be the first byte read
(R/W) Real Time Clock.
Default Value: 0000 0000 Reset Event: P
Address(hex): 14
InterruptEnable
[5] SNSE Fault interrupt enable 0 1SNSE fault interrupts disabled
[4] ADC conversion complete
indicator interrupt enable
[2] RTC alarm interrupt enable 0
[1] Comparator trigger interrupt
enable
[0] PIT interrupt enable 0
© 2006 Semtech Corp. www.semtech.com
SNSE Fault ADC Done
0 1
1
0 1
1
(R/W) Selects which interrupt sources generate interrupts
RTC Alarm Comparator
SNSE fault interrupts enabled If the DeviceMode fuse (address 18, bits [5:3]) are set for fan control mode, this bit is automatically set on startup, but it may be overridden
ADC complete interrupts disabled ADC complete interrupts enabled
RTC alarm interrupt disabled RTC alarm interrupt enabled
Comparator interrupt disabled Comparator interrupt enabled
PIT interrupt disabled PIT interrupt enabled
25
Default Value: 0000 0000 Reset Event: P, W, B
PIT expired
trigger
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 15
InterruptStatus
SNSE Fault ADC Done
[5] SNSE Fault interrupt 0
[4] ADC conversion complete
indicator interrupt
[2] RTC alarm interrupt 0
[1] Comparator trigger interrupt 0
[0] PIT interrupt 0
1
0 1
1
1
1
(R/W) Indicates status of all interrupt sources, and may be used to selectively clear any number of these.
RTC Alarm Comparator
No SNSE faults detected In fan control mode, AND the fan is currently active, i.e. the PWM duty cycle is non-zero, this indicates that no SNSE pulse were detected within the last 32768 CLK1 cycles (1 second if CLK1 is set for 32.768 kHz), irrespective of whether CLK1 output is enabled or not In other device modes, this indicates that no activity has been detected on the general-purpose comparator for the last 32768 CLK1 cycles, irrespective whether CLK1 is enabled Write ‘1’ to this bit to clear the SNSE Fault interrupt
ADC conversion is not complete ADC conversion is complete, and the result may be read in the ADCResult register Write ‘1’ to this bit to clear the ADCDone interrupt
RTC alarm has not triggered RTC alarm has triggered Write ‘1’ to this bit to clear the RTC alarm interrupt
Comparator interrupt has not triggered If the CompIntPolarity bit in the Config register is set, then this indicates that the comparator source has risen above the DAC level. If the CompIntPolarity bit is clear, then this indicates that the comparator source has fallen below the DAC level Write ‘1’ to this bit to clear the RTC alarm interrupt
PIT has not expired PIT has expired Write ‘1’ to this bit to clear the RTC alarm interrupt
Default Value: 0000 0000 Reset Event: P, W
trigger
PIT expired
Address(hex): 16
ADCResult
ADC Conversion Result
[7:0] ADC Result 00 (hex) Result of 8-bit successive approximation analog to digital conversion
© 2006 Semtech Corp. www.semtech.com
(R) ADC Conversion Result
26
Default Value: 1000 0000 Reset Event: P, W
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions (continued)
Address(hex): 17
SH3100
ForcedDACValue
[7:0] Forced DAC value
THIS REGISTER IS FUSE INITIALIZED
(R/W) Overrides the current DAC setting
Forced DAC value
00 This value overrides the existing DAC setting, which may have
been initialized by fuse, or as a result of an ADC conversion The fuses can be blown to initialize the DAC to any of the following voltages: 660 mV 690 mV 730 mV 760 mV 800 mV 830 mV 860 mV 890 mV 930 mV 970 mV 1000 mV 1040 mV 1140 mV 1240 mV 1380 mV 1550 mV
Default Value: 0000 1011 Reset Event: P, W
© 2006 Semtech Corp. www.semtech.com
27
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 18
ADCConfig
Initiate ADC
Conversion
[7] Initiate ADC Conversion 1 Setting this bit initiates an ADC conversion
[6] Comparator Polarity 0
[5:3] DeviceMode
Comparator
polarity
THIS REGISTER IS FUSE INITIALIZED
Device mode DAC Clock post-scaler DAC Enable
1
000
001
011 100 101
(R/W) Configures ADC, DAC and comparator configuration, as well as setting the overall device mode
The conversion is completed within 1500 cycles of the internal DAC clock, the rate of which is determined by the DACClkPostScaler in this register, and the rate of the HFDCO. ADC conversion completion is signaled by the ADCDone flag in the InterruptStatus register
General-purpose comparator output is used directly General-purpose comparator output is inverted
Normal mode – PWM pin can be controlled by setting the
PWMDutyCycle
Switched boost regulator mode – PWM pin controls an external inductor/capacitor network Switched buck regulator mode LDO Mode – PWM pin is driven by internal LDO Fan control mode – PWM pin is controlled as described in the PWM section
Default Value: 0000 0100 Reset Event: P, W
[2:1] DACClkPostScaler 00
01
10 11
[0] DAC Enable 0
1
DACClk is 32.768 kHz (ADC Conversion in 45 ms) DACClk is HFDCO/8 (ADC Conversion in 11264 cycles of HFDCO
period) DACClk is HFDCO/16 (ADC Conversion in 22528 cycles of HFDCO period) DACClk is HFDCO/32 (ADC conversion in 45056 cycles of HFDCO period)
General-purpose DAC & comparator are powered down General-purpose DAC & comparator are enabled
© 2006 Semtech Corp. www.semtech.com
28
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
for a short
period,
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Descriptions (continued)
Address(hex): 19
SH3100
Config
Comparator
Maintain LDO
[6] Maintain LDO 0
[5] Comparator Interrupt Polarity 0
[3] ForceDCOOn 0
[2] ForceInt32kOn 0
[1:0] ComparatorSourceSelect
THIS REGISTER IS FUSE INITIALIZED
interrupt
polarity
Force DCO On ForceInt32kHzOscOn Comparator Source Select
1
1
1
1
00 01 10 11
(R/W) Various general configuration bits
LDO regulates to DAC voltage x 3 when enabled When running in LDO mode (DeviceMode bits in the ADCConfig register set to 100), this maintains the LDO input voltage f
thereby freeing up the DAC and comparator for an ADC
conversion. The LDO voltage droops the longer that this bit is set
The general-purpose comparator interrupt is activated when the comparator source is lower than the DAC voltage The general-purpose comparator interrupt is activated when the selected comparator source is higher than the DAC voltage
High frequency DCO is controlled by the clock generation mechanisms HFDCO is forced on, irrespective of clock generator state. This can be used to enable the FLL coarse locking to occur while CLK0 has
32.768 kHz, and thereby protects the microcontroller from undesirable frequency excursions
The internal 32.768 kHz oscillator is disabled if and when the external crystal oscillator becomes stable The internal 32.768 kHz oscillator is forced on, and the external crystal oscillator ignored
Comparator input is connected to VDD/3 Comparator input is connected to VBAK/3 Comparator input is connected to the internal temperature sensor Comparator input is connected to the SNSE pin
Default Value: 0000 0000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
29
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 20
Clk0Config
CLK0Supply CLK0 HF/LF CLK1=CLK0 CLK0Enable CLK0 post-scaler
[7] CLK0 supply 0
1
[6] CLK0 HF/LF 0
1
[5] CLK1 = CLK0 0
1
[4] CLK0Enable 0
1
[2:0] CLK0 PostScaler
THIS REGISTER IS FUSE INITIALIZED
000 001 010 011 100 101 110 111
(R/W) Sets up CLK0
CLK0 pad is supplied by VDD. When VDD drops below VBO, CLK0 ceases CLK0 pad is supplied by VBAK
CLK0 is derived from the post-scaled HFDCO CLK0 is set to 32.768 kHz
CLK1 is treated completely independently from CLK0. Phase relationship can not be guaranteed CLK1 is set to run at the same frequency as CLK0, with or without inversion. CLK1 and CLK0 transition together, and operate as in-phase or complementary clock outputs
If any interrupt is enabled in the InterruptEnable register, then setting CLK0 to 0 disables CLK0. The clock resumes whenever any enabled interrupt activates CLK0 is enabled unless in AutoClkDetect mode and CLKIN has stopped
CLK0 frequency = HFDCO frequency CLK0 frequency = HFDCO/2 CLK0 frequency = HFDCO/4 CLK0 frequency = HFDCO/8 CLK0 frequency = HFDCO/16 CLK0 frequency = HFDCO/32 CLK0 frequency = HFDCO/64 CLK0 frequency = HFDCO/128 This register is ignored if the CLK0 HF/LF bit is set
Default Value: 0011 0000 Reset Event: P, W (bit 7) Reset Event: P, W, B (bits 6:0)
© 2006 Semtech Corp. www.semtech.com
30
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Descriptions (continued)
Address(hex): 21
SH3100
Clk1Config
CLK1Supply CLK1 HF/LF Invert CLK1 CLK1Enable CLK1 post-scaler
[7] CLK1 supply
THIS REGISTER IS FUSE INITIALIZED
[6] CLK1 HF/LF
[5] InvertCLK1
[4] CLK1Enable
[3:0] CLK1 PostScaler
THIS REGISTER IS FUSE INITIALIZED
THIS REGISTER IS FUSE INITIALIZED
THIS REGISTER IS FUSE INITIALIZED
THIS REGISTER IS FUSE INITIALIZED
0
1
0 1
0
1
0 1
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
(R/W) Sets up CLK1
CLK1 pad is supplied by VDD, but automatically switches over to VBAK during VBO CLK1 pad is supplied only by VBAK
CLK0 is set to 32.768 kHz CLK0 is derived from the Post-scaled HFDCO
CLK1 is in-phase with CLK0 if CLK1=CLK0 bit in the CLK0Config register is set CLK1 is in direct antiphase with CLK0 if CLK1=CLK0 bit is set If the CLK1=CLK0 bit is not set, then this bit has little relevance
CLK1 output is disabled CLK1 output is enabled
CLK1 frequency = HFDCO frequency CLK1 frequency = HFDCO/2 CLK1 frequency = HFDCO/4 CLK1 frequency = HFDCO/8 CLK1 frequency = HFDCO/16 CLK1 frequency = HFDCO/32 CLK1 frequency = HFDCO/64 CLK1 frequency = HFDCO/128 CLK1 frequency = HFDCO/256 CLK1 frequency = HFDCO/512 CLK1 frequency = HFDCO/1024 CLK1 frequency = HFDCO/2048 CLK1 frequency = HFDCO/4096 CLK1 frequency = HFDCO/8192 CLK1 frequency = HFDCO/16384 CLK1 frequency = HFDCO/32768 This register is ignored if the CLK1 HF/LF bit is clear. This register is fuse-initialized
Default Value: 0000 0000 Reset Event: P, W
© 2006 Semtech Corp. www.semtech.com
31
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 22
FLLConfig
SS Enable SS Config Fine Lock Coarse Lock Enable FLL
[7] Spread Spectrum Enable
THIS REGISTER IS FUSE INITIALIZED
[6:5] Spread Spectrum Configuration 00
[2] FineLock 0
[1] CoarseLock 0
[0] FLLEnable 0
0 1
01 10 11
1
1
1
(R/W) Sets up the Frequency Locked Loop (FLL)
Spectrum Spreading is disabled Spectrum Spreading is enabled
Spreading bandwidth = 16 kHz Spreading bandwidth = 32 kHz Spreading bandwidth = 64 kHz Spreading bandwidth = 128 kHz
If the FLL is enabled locked, then it remains locked and tracks the 32.768 kHz clock Least significant bank of the HFDCO is adjusted with a successive approximation algorithm to achieve a fast (4ms) lock with only minor frequency excursions. This is mainly used to return CLK0/1 to optimum accuracy following a long sleep (HFDCO off) during which the temperature may have changed substantially, which would lead to a slight error on the initial startup frequency before the FLL drifted back to lock
If the FLL is enabled locked, then it remains locked and tracks the 32.768 kHz clock The FLL uses a successive approximation algorithm to rapidly (30 ms) adjust the FLL to a new setting in the FLLDivideRatio register. There may be substantial frequency excursions on CLK0/CLK1 (if enabled for HF) while locking is taking place. Once locked, the FLL continues to track the 32.768 kHz source
FLL is disabled. HFDCO free-runs with an accuracy of ± 0.5% FLL is enabled – the HFDCO tracks the 32.768 kHz source based on the FLLDivideRatio register. FLLEnable is by default 0 until the crystal oscillator is stable, and then it is automatically set. If no crystal is connected, the FLL remains disabled. In either case, the FLLEnable bit can be overridden by software
Default Value: 0000 0000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
32
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the ResetThresholdWP bit in the WriteProtects register is set
Register Descriptions (continued)
Address(hex): 23
SH3100
FLLDivideRatio
[5:0] FLLDivideRatio[13:8]
THIS REGISTER IS FUSE INITIALIZED
(R/W) Defines the ratio between the HFDCO and
32.768 kHz source when FLL is enabled
FLLDivideRatio[13:8]
The upper 6 bits of the FLLDivideRatio. When the FLL is enabled and locked, the HFDCO frequency is 2048*(FLLDivideRatio+1)
Default Value: 0000 0000 Reset Event: P, W, B
Address(hex): 24
FLLDivideRatio
(R/W) Defines the ratio between the HFDCO and
32.768 kHz source when FLL is
FLLDivideRatio[7:0]
enabled
Default Value: 0000 0000 Reset Event: P, W, B
[7:0] FLLDivideRatio[7:0]
THIS REGISTER IS FUSE INITIALIZED
The least significant byte of the FLLDivideRatio. When the FLL is enabled and locked, the HFDCO frequency is 2048*(FLLDivideRatio+1)
Address(hex): 30
ResetThreshold
[6:0] ResetThreshold
THIS REGISTER IS FUSE INITIALIZED
(R/W) Sets the brownout (VBO) level
ResetThreshold
This 7-bit register sets the minimum voltage level (VBO) which would cause a brownout reset and subsequent assertion of the NRST pin. VBO = 1.7 V to 4 V with 24 mV resolution
Default Value: 0000 0000 Reset Event: P, W
© 2006 Semtech Corp. www.semtech.com
33
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 31
ResetDuration
[4:0] ResetDuration
THIS REGISTER IS FUSE INITIALIZED
(R/W) Determines the reset duration
ResetDuration
Determines the duration between the deactivation of a reset event (eg. VDD rises above the VBO level, or watchdog expires) and the NRST pin becoming deactivated This register determines the reset duration under the following conditions: If the DeviceMode register in ADCConfig register is set to 000, i.e. ‘Normal’ mode, and the SNSE pin is 1 during startup, then this register determines the reset duration. (if SNSE=0 on startup, then reset duration is 6 ms, if SNSE is unconnected, then reset duration is 270 ms) If the DeviceMode register is set to any other mode, then this register determines the reset duration irrespective of the SNSE pin. Please note that increasing the value of this register in any mode except normal (DeviceMode=000) causes a reset.
Default Value: 0000 0000 Reset Event: P, W
© 2006 Semtech Corp. www.semtech.com
34
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this bit is invalid once spectrum spreading is enabled
Register Descriptions (continued)
Address(hex): 32
SH3100
Status
Xtal Osc Stable
[7] Xtal Oscillator
[6] Comparator
[5] Internal
[4] AutoClkDetect
[3] RTCInvalid 0
[1] SNSE activity 0
[0] FLL Locked 0
Comparator
output
Stable
Output
32kHz oscillator stable
mode
Internal 32kHz
osc stable
0
1
0 1
0
1
0
1
1
1
1
(R/W) Various device status flags
AutoClkDetect
mode
Either the crystal oscillator has not yet stabilized or the ForceInternal32kHzOn bit in the Config register has been set 1024 cycles of the crystal oscillator have been counted, and the crystal is therefore considered stable
The comparator reference input is lower than the DAC voltage The comparator reference input is higher than the DAC voltage This bit can be polled to determine whether SNSE, VBAK, VDD or temperature are above or below a preset threshold, or it can be used with the ForceDACValue register to implement alternative ADC algorithms
The internal 32.768 kHz oscillator has been stable and accurate since the last write to this bit The supply voltage to the internal 32.768 kHz oscillator has at some point dropped below 1.65 V, resulting in some loss of frequency accuracy. Once the crystal has stabilized, this oscillator is redundant; this oscillator is turned off, and this flag is then set Writing 1 to this bit clears it
No edges have been observed on the CLKIN pin. CLK0 continues to run until software clears the CLK0Enable flag in the CLK0Config register Activity has been observed on CLKIN, which is assumed to be connected to the XOUT of the μC. CLK0 stops in the same state as CLKIN, 4 cycles after CLKIN stops, and resumes as soon as CLKIN toggles AutoClkDetect mode is one of the prime features of μBuddy, enabling very fast clock startup and shutdown by detecting the microcontroller’s own sleep mode
The RTC clock has been accurate since this flag was last cleared, and the RTC accuracy is therefore assured At some time since this bit was last cleared by software, both VDD and VBAK have been insufficient to sustain an accurate clock to the RTC, and the RTC value therefore can not be trusted Writing 1 to this bit clears it
No activity has been observed on the SNSE pin during the last 32768 periods of CLK1, whether or not CLK1 is enabled Activity has been observed on SNSE during the past 32768 periods of CLK1
The FLL has not stabilized at the desired frequency, and may still be hunting The FLL has locked to frequency and is stable
RTC invalid SNSE activity FLL locked
Default Value: 0010 1000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
35
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 33
CauseOfReset
[3] VBO 0
1
[2] WDTCode
Violation
[1] WDTExpired 0
[0] PORB 0
0
1
1
1
VDD has not dropped below the programmed VBO level since this bit was last cleared VDD dropped below the VBO level at some point since this bit was last cleared. Writing 1 to this bit clears it
Either the watchdog is disabled, or else only the correct code sequence has been written in good time, to the WDTCode register The watchdog was enabled, and an incorrect code was written to the WDTCode register Writing 1 to this bit clears it
Either the watchdog is disabled, or else WDTCode register has been refreshed in a timely fashion The watchdog is enabled, but the WDTCode register has not been refreshed in time to prevent the watchdog expiring Writing 1 to this bit clears it
VDD has not dropped below 1 V since this bit was last cleared VDD dropped below 1 V at some time since this bit was last cleared Writing 1 to this bit clears it
(R/W) Shows what caused the last reset
VBO
WDTCode
Violation
Default Value: 0000 1001 Reset Event: (see description)
WDT expired PORB
Address(hex): 34
WDTCode
[7:0] WDT refresh code Once the watchdog is enabled by writing to the WDTPeriod
(R/W) Watchdog refresh code
WDTCode
register, alternate writes of 5A and C3 are expected within the time set by WDTPeriod and WDTPrescaler registers to prevent NRESET activation. Once enabled, the watchdog can not be disabled by software
Default Value: 0000 0000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
36
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that once the watchdog period has been written, thereby activating the watchdog timer, this regi
ster can no longer be
changed
Note that once the watchdog period has been written, thereby activating the watchdog timer, this regi
ster can no longer be
changed
Register Descriptions (continued)
Address(hex): 35
SH3100
WDTConfig
[2] AutoWDTSupend 0
1
[1:0] WDTPrescaler 00
01
10
11
(R/W) Sets up the watchdog
AutoWDT
Suspend
The watchdog counter, once enabled, is derived from the active
32.768 kHz source (crystal or internal), irrespective of CLK0, and the watchdog period is always consistent and independent of CLK0. The watchdog continues to run even when CLK0 has been disabled The watchdog counter, once enabled, is derived from CLK0, and therefore suspends counting when CLK0 is disabled. This effectively counts microprocessor cycles (and hence instructions), and is useful to avoid the necessity for very long watchdog periods simply to prevent watchdog activation during long sleeps
If AutoWDTSuspend = 0, then Watchdog timeout period = (WDTPeriod+1)/128 seconds If AutoWDTSuspend = 1, then Watchdog timeout period = (WDTPeriod+1)*CLK0 period*256 If AutoWDTSuspend = 0, then Watchdog timeout period = (WDTPeriod+1)/64 seconds If AutoWDTSuspend = 1, then Watchdog timeout period = (WDTPeriod+1)*CLK0 period*512 If AutoWDTSuspend = 0, then Watchdog timeout period = (WDTPeriod+1)/32 seconds If AutoWDTSuspend = 1, then Watchdog timeout period = (WDTPeriod+1)*CLK0 period*1024 If AutoWDTSuspend = 0, then Watchdog timeout period = (WDTPeriod+1)/16 seconds If AutoWDTSuspend = 1, then Watchdog timeout period = (WDTPeriod+1)*CLK0 period*2048
Default Value: 0000 0000 Reset Event: P, W, B
WDTPrescaler
© 2006 Semtech Corp. www.semtech.com
37
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 36
WDTPeriod
[6:0] WDTPeriod 000000
all others
(R/W) Sets up the watchdog period
WDTPeriod
Watchdog is disabled Watchdog is enabled, and can not be disabled by software. Watchdog timeout period is as defined in register 35,
WDTConfig
Once the watchdog has been activated by writing a non-zero value to this register, then further writes to WDTPrescaler, AutoWDTSuspend and WDTPeriod are disabled
Default Value: 0000 0000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
38
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions (continued)
Address(hex): 37
SH3100
INTConfig
2
I
Edge or Level
[6] Edge or Level 0
[5] I2CShortCodeEnable 0
[4] ValueAtINTPin 0
[3] GPIOPolarity 0
[2] GPIODirection 0
[1] EnableINTToggling 0
[0] InterruptOrGPIO 0
C ShortCode
Enable
Value at INT pin GPIO polarity GPIO Direction
1
1
1
1
1
1
1
(R/W) Configures the operation of the INT pin
When the INT pin is programmed as an interrupt by setting InterruptOrGPIO to 1, the INT pin signals each interrupt as a pulse with a duration of 4 CLK0 cycles The INT pin drives to its active level (set by GPIOPolarity bit), and remains until the interrupt is cleared by writing the relevant bit in the InterruptStatus register. If toggling interrupts are required, then this bit must be set to 1
Interrupts can only be cleared with a full-length I All active interrupts are simultaneously cleared when a short­form version of the I This allows for substantially faster interrupt clearing
The INT pin is being driven externally or internally to 0 The INT pin is being driven externally or internally to 1
If InterruptOrGPIO = 0 (GPIO), then INT pin is driven to 0. If InterruptOrGPIO = 1 (Interrupt), then INT is hard-driven to 0 when the interrupt is active, but weak-pulled to 1 when inactive If InterruptOrGPIO = 0 (GPIO), then INT pin is driven to 1. If InterruptOrGPIO = 1 (Interrupt), then INT is hard-driven to 1 when the interrupt is active, but weak-pulled to 0 when inactive
When InterruptOrGPIO = 0 (GPIO mode), INT pin is programmed as a general-purpose input port When InterruptOrGPIO = 0 (GPIO mode), INT pin is programmed as a general-purpose output port
All Active interrupts are signaled either by a 4 cycle pulse, or by a fixed level, as determined by the EdgeOrLevel bit in this register The PIT toggles the INT pin at every activation. This can be used to generate a very slow clock independent of CLK0 and CLK1, with a period between 61 μs and 72 hours In this mode all other interrupts operate normally, but may be masked if the INT pin has been driven to the active state by a PIT timeout
INT pin is used as GPIO, with direction defined by GPIODirection bit, and polarity set by GPIOPolarity bit. INT pin is used to signal interrupts, and hard-drives to the active level, weak-pull to the inactive level.
2
C access is sent by the microcontroller.
Default Value: 0000 0000 Reset Event: P, W, B
Enable INT
Toggling
Interrupt or
GPIO
2
C access.
© 2006 Semtech Corp. www.semtech.com
39
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DutyCycleStepSize
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 38
MinStartTemp
[7:0] MinStartTemp This is the ADCCode corresponding to the lowest temperature at
MinStartTemp
(R/W) Defines the temperature at which auto-fan mode starts to drive the fan
which the automatic fan control mode activates the PWM pin, and switches on the fan Code = 163 minus temperature (°C). In other modes (DeviceCode in the ADCConfig register not equal to 111), this register has no effect Default start temperature is 40°C, and the default minimum duty cycle is 25%
Address(hex): 39
Default Value: 0111 1011 Reset Event: P, W
DutyCycleStepSize
[7:0] DutyCycleStepSize In Auto-fan-control mode (DeviceMode bits in the ADCConfig
(R/W) The PWM duty cycle increment for every degree of rise in the temperature when in auto-fan-control mode
register = 111), this is how much the PWM duty cycle increments for every degree of temperature rise. This effectively defines the temperature at which the PWM duty cycle would be 100%, i.e., The fan is on at full speed DutyCycleStepSize = 768/(MaxTemp – MinTemp) Default value of 17 gives a maximum temperature of 85°C
Default Value: 0001 0001 Reset Event: P, W
Address(hex): 3A
Default Value: 0000 0000 Reset Event: P, W
ManualPWMDutyCycle
(R/W) Sets the PWM duty cycle when in ‘normal’ mode.
PWMDutyCycle[9:8]
© 2006 Semtech Corp. www.semtech.com
[1:0] ManualPWMDutyCycle[9:8] The most significant 2 bits of the ManualPWMDutyCycle.
When in normal mode, i.e. DeviceMode bits in the ADCConfig register set to 000, this defines the duty cycle on the PWM pin. Duty cycle = ManualPWMDutyCycle/1024
40
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Register Name
Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Register Descriptions (continued)
Address(hex): 3B
SH3100
ManualPWMDutyCycle
PWMDutyCycle[7:0]
[7:0] ManualPWMDutyCycle[7:0] The least significant byte of the ManualPWMDutyCycle.
(R/W) Sets the PWM duty cycle when in ‘normal’ mode.
When in normal mode, i.e. DeviceMode bits in the ADCConfig register set to 000, this defines the duty cycle on the PWM pin. Duty cycle = ManualPWMDutyCycle/1024
Default Value: 0000 0000 Reset Event: P, W
Address(hex): 40
Int32kCoarseTrim
(R/W) Calibration register.
This register is for device calibration only.
Default Value: 0000 0000 Reset Event: P, W
Address(hex): 41
Int32kFineTrim
(R/W) Calibration register.
This register is for device calibration only.
Default Value: 0000 0000 Reset Event: P, W
Address(hex): 42
XtalTrim
[4:0] XtalTrim
THIS REGISTER IS FUSE INITIALIZED
(R/W) Sets the padding capacitance on XIN and XOUT
XtalTrim
Sets the padding capacitance on the XIN/XOUT pins, and can be used to trim the crystal frequency either during system test, or dynamically, based on temperature to greatly improve the intrinsic crystal accuracy in operation. This register is protected against spurious writes by the XtalTrimWP bit in the WriteProtects register. This flag must be cleared immediately prior to setting this register
Default Value: 0000 0000 Reset Event: P
Address(hex): 43
Default Value: 0000 0000 Reset Event: P, W
BGCode
(R/W) Calibration register.
This register is for device calibration only.
© 2006 Semtech Corp. www.semtech.com
41
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 44
DCOCode
[5:0] DCOCode[18:13]
THIS REGISTER IS FUSE INITIALIZED
(R/W) Sets the default HFDCO code for a free-running (non FLL Locked) HFDCO.
DCOCode[18:13]
The 19-bit DCOCode defines the code and hence frequency at which the High Frequency Digitally Controlled Oscillator (HFDCO) starts, thereby determining its initial frequency prior to the FLL locking it to the 32.768 kHz source. Due to the nature of the HFDCO, the exact frequency for any one device can not be deducted from the DCOCode, but can be read back after FLL locking with the CoarseLock feature in the FLLConfig register, and thereafter programmed into the fuses to ensure that the starting frequency is very close to the target frequency This register is set up so that CLK0 is as close as possible to the target frequency before FLL locking Most customers need not access this register, but it can be used in cases where the standard SH3100 frequency (TBD) is not suitable for the system
Default Value: 0000 0000 Reset Event: P, W, B
Address(hex): 45
DCOCode
[5:0] DCOCode[12:7]
THIS REGISTER IS FUSE INITIALIZED
(R/W) Sets the default HFDCO code for a free-running (non FLL Locked) HFDCO.
DCOCode[12:7]
See description for register 44
Default Value: 0000 0000 Reset Event: P, W, B
© 2006 Semtech Corp. www.semtech.com
42
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Note that this register may not be changed if the App-specificFuseWP bit in the WriteProtects register is set
Register Name
Description
Register Descriptions (continued)
Address(hex): 46
SH3100
DCOCode
[6:0] DCOCode[6:0]
THIS REGISTER IS FUSE INITIALIZED
(R/W) Sets the default HFDCO code for a free-running (non-FLL Locked) HFDCO
DCOCode[6:0]
See description for register 44
Default Value: 0000 0000 Reset Event: P, W, B
Address(hex): 47
I2CSlaveAddr
[2:0] I2CSlaveAddr[2:0]
THIS REGISTER IS FUSE INITIALIZED
(R/W) Least significant 3 bits of
2
the I
C slave address.
The least significant 3 bits of the I2C slave address. The I2C slave address in its entirety is 0100XYZ where XYZ = I2CSlaveAddr Careful selection of these bits allows the SH3100 to share an I2C bus with a number of other devices, including other SH3100s
Default Value: 0000 0000 Reset Event: P, W, B
I2CSlaveAddr[2:0]
Address(hex): 48
© 2006 Semtech Corp. www.semtech.com
TempTrim
This register is for device calibration only.
(R/W) Calibration register.
43
Default Value: 0000 0000 Reset Event: P, W, B
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 49
WriteProtects
Xtal Trim WP Cal Fuse WP
[4] XtalTrimWP 0
1
[2] Calibration fuse WP
THIS REGISTER IS FUSE INITIALIZED
[1] App-specific fuse WP
[0] ResetThresholdWP 0
THIS REGISTER IS FUSE INITIALIZED
0 1
0 1
1
(R/W) Write-protects.
The XtalTrim register can be written immediately after clearing this bit, whereafter this flag reverts to 1 The XtalTrim register can not be written
The calibration fuses and registers can be changed The calibration fuses and registers can not be changed Calibration registers include:
Int32kCoarseTrim Int32kFineTrim BGCode TempTrim
The application-specific fuses and registers can be changed The application-specific fuses and registers can not be changed Application-specific registers include:
CLK0PostScaler CLK1PostScaler SSEnable SSConfig FLLDivideRatio XtalTrim I2CSlaveAddr DeviceMode ResetDuration DACLevel DCOCode CLK1En CLK1Supply InvertCLK1 CLK1 HF/LF
The ResetThreshold fuses and register can be changed The ResetThreshold fuses and register can not be changed
Default Value: 0001 0000 Reset Event: P (bit 4) Reset Event: P, W (bits 2:0)
App-specific
Fuse WP
ResetThresh
WP
© 2006 Semtech Corp. www.semtech.com
44
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions (continued)
Address(hex): 80
SH3100
RTCAlarm/Scratchpad
Year (MSD)/SP[39:36] Year (LSD)/SP[35:32]
[7:4] Year(MSD)/SP[39:36] When the RTC alarm interrupt enable is active, this is the upper
[3:0] Year(LSD)/SP[35:32] When the RTC alarm interrupt enable is active, this is the lower
Address(hex): 81
RTCAlarm/Scratchpad
SP[31:29]
Month
(MSD)/SP[28]
(R/W) RTC alarm or scratchpad
BCD digit of the year at which the interrupt should be activated. When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition.
BCD digit of the year at which the interrupt should be activated. When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
(R/W) RTC alarm or scratchpad
Month(LSD)/SP[27:24]
Default Value: 0000 0000 Reset Event: P
Default Value: 0000 0000 Reset Event: P
[7:5] SP[31:29] Bits [31:29] of the scratchpad memory, irrespective of whether
the RTC alarm interrupt is active These bits remain throughout brownout
[4] Month(MSD)/SP[28] When the RTC alarm interrupt enable is active, this is the upper
BCD digit of the calendar month at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
[3:0] Month(LSD)/SP[27:24] When the RTC alarm interrupt enable is active, this is the lower
BCD digit of the month at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
© 2006 Semtech Corp. www.semtech.com
45
SH3100
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
POWER MANAGEMENT
Register Descriptions (continued)
Address(hex): 82
RTCAlarm/Scratchpad
SP[23:22] Day (MSD)/SP[21:20] Day(LSD)/SP[19:16]
[7:6] SP[23:22] Bits [23:22] of the scratchpad memory, irrespective whether or
[5:4] Day(MSD)/SP[21:20] When the RTC alarm interrupt enable is active, this is the upper
[3:0] Day(LSD)/SP[27:24] When the RTC alarm interrupt enable is active, this is the lower
(R/W) RTC alarm or scratchpad
not the RTC alarm interrupt is active These bits persist throughout brownout
BCD digit of the day of the month at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and persist throughout a brownout condition
BCD digit of the day of the month at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
Default Value: 0000 0000 Reset Event: P
Address(hex): 83
RTCAlarm/Scratchpad
SP[15:14] Hour (MSD)/SP[13:12] Hour(LSD)/SP[11:8]
[7:6] SP[15:14] Bits [15:14] of the scratchpad memory, irrespective whether or
[5:4] Day(MSD)/SP[13:12] When the RTC alarm interrupt enable is active, this is the upper
[3:0] Day(LSD)/SP[11:10] When the RTC alarm interrupt enable is active, this is the lower
(R/W) RTC alarm or scratchpad
not the RTC alarm interrupt is active These bits remain throughout brownout
BCD digit of the hour at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
BCD digit of the hour at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
Default Value: 0000 0000 Reset Event: P
© 2006 Semtech Corp. www.semtech.com
46
POWER MANAGEMENT
Register Name
Description
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit No. Description Bit Value Value Description
Register Descriptions (continued)
Address(hex): 84
SH3100
RTCAlarm/Scratchpad
SP[7] Minute (MSD)/SP[6:4] Minute(LSD)/SP[3:0]
[7] SP[7] Bit [7] of the scratchpad memory, irrespective whether or not
[6:4] Minute(MSD)/SP[6:4] When the RTC alarm interrupt enable is active, this is the upper
[3:0] Minute(LSD)/SP[3:0] When the RTC alarm interrupt enable is active, this is the lower
(R/W) RTC alarm or scratchpad
the RTC alarm interrupt is active This bit remains throughout brownout
BCD digit of the minute at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
BCD digit of the minute at which the interrupt should be activated When not used as an RTC alarm, these bits can be used as scratchpad, and remain throughout a brownout condition
Default Value: 0000 0000 Reset Event: P
© 2006 Semtech Corp. www.semtech.com
47
SH3100
POWER MANAGEMENT
Applications Information
Initial Power-Up
When VDD is fi rst applied to the chip, the following sequence of events occurs:
1. As VDD starts to rise, the internal references, regulators, and oscillator start to power up. Once VDD gets to approximately 0.9V, the internal power-on reset is asserted and the NRST output pin is guaranteed to be asserted Low. If an external 32.768kHz crystal is connected, it also starts to power up. (The internal oscillator is running long before the crystal oscillator.) The VBAK regulator starts up if VBAK is present, however if VBAK is applied before VDD, then it has no effect on chip operation.
2. After a few hundred microseconds, the internal VREG regulator supplying the core logic starts to power up. VREG settles at approximately 1.6V. If VDD is ramping slowly, then VREG tracks with VDD.
Standard Operation. VDD Settles at Greater than the Programmed VBO
1. The general-purpose DAC/comparator block and PWM outputs are disabled.
2. Since VDD is greater than the VBO threshold, a counter is started which times the following events.
3. Four ms after the new VBO Reset threshold is exceeded; CLK0 starts at the fuse-programmed frequency. CLK1 also starts if fuse enabled.
4. At the end of the VBO Reset duration period (as selected by SNSE), NRST is negated.
5. The micro controller may now communicate with
the SH3100.
6. Battery backup facility is enabled.
3. As VREG increases, the core logic starts to enter a functional state and is held in its power on reset state. Battery backup mode is inhibited to ensure the chip starts up in VDD mode.
4. Once VREG is above 0.9V, internal power-on reset is negated, and the chip waits for VDD to exceed the minimum VBO threshold of 1.7V + Vhys. (Vhys = Rising threshold hysteresis = 25mV to 100mV).
5. Once VDD passes the minimum VBO threshold, the fuses are read, the calibration and confi guration settings are applied (including the new VBO threshold), and the SH3100 is placed into the appropriate operating mode. If the mode allows the SNSE pin to determine the reset duration, then the state of the SNSE pin is read and the appropriate duration selected. If not, the reset duration defaults to the fuse setting.
6. Depending on the mode selected, the chip behavior then proceeds as one of the following:
7. If an external crystal is connected, then the logic monitors the output from the crystal oscillator clock. Once 1024 cycles have been observed to indicate that it is running in stable operation, then the logic switches over to run on the crystal clock and shuts down the internal oscillator to save power. The HFDCO is then switched from free­running mode to FLL locking mode and smoothly pulls into lock. This is done to avoid having to wait for the crystal oscillator to start up before the SH3100 starts to function. If the crystal oscillator does not start within 10
seconds of power-up, then the crystal oscillator circuitry
is disabled to save power.
© 2006 Semtech Corp. www.semtech.com
48
POWER MANAGEMENT
Applications Information (continued)
SH3100
Standard Operation - VDD Settles at less than the Programmed VBO
1. The general-purpose DAC/comparator block and PWM outputs are disabled.
2. Since VDD is less than the new VBO threshold, the chip is held in brownout until VDD exceeds VBO.
3. nRST is held asserted.
4. If an external crystal is connected, the logic monitors the output from the crystal oscillator clock. Once 1024 cycles have been observed to indicate that it is running in stable operation, the logic switches over to run on the crystal clock and shuts down the internal oscillator. When the SH3100 comes out of reset, the HFDCO starts in FLL locked mode and smoothly pulls into lock after starting at the HFDCO programmed frequency. If the crystal oscillator does not start within ten seconds of power-up, the crystal oscillator circuitry is disabled to save power.
5. Battery backup facility is disabled until the chip has come out of reset.
Automatic Fan Speed Control Enabled
1. The general-purpose 8-bit DAC and comparator are enabled. SNSE transition threshold defaults to 70mV. PWM output is enabled. The VBO Reset duration defaults to the fuse register setting.
2. Internal temperature is measured at one second intervals. Fan speed control based on the default automatic settings is enabled. If no pulses are detected on SNSE, then the chip enters fan control fault condition mode.
3. Once VDD passes the VBO threshold, the normal Reset timer sequence is started. If VDD stays below VBO, then automatic fan control continues to run, but the HFDCO remains disabled, resulting in low power consumption
(< 10A).
4. Once VDD exceeds VBO, CLK0 starts at its programmed rate, and the micro controller may communicate with the SH3100. CLK0 and the HFDCO may then be turned off if required to save power.
5. The micro controller may also modify any of the default fan speed control settings if required, or change from automatic mode to manual mode.
6. If VDD then drops below VBO, NRST is asserted but fan control continues to run until VDD collapses below approximately 1V. If a watchdog reset occurs, then fan control continues during the reset condition.
© 2006 Semtech Corp. www.semtech.com
49
SH3100
POWER MANAGEMENT
Applications Information (continued)
Switching Regulator Modes Enabled
1. The general-purpose 8-bit DAC and comparator and PWM outputs are enabled. The SNSE input is made available for regulator feedback if required. The VBO Reset duration defaults to the fuse register setting.
2. The appropriate selection of internal circuitry is chosen for the desired regulator confi guration.
3. Since the switching regulator requires a high frequency clock for operation, the HFDCO is enabled at its programmed rate even if VDD is still below the VBO threshold. CLK0 and CLK1 outputs are not enabled until VDD exceeds VBO.
4. During power up, the PWM pin is set high impedance and its state is monitored during power-on-reset. If it is detected as being pulled High externally and the mode select is bootstrap boost, then this indicates that there is an inductor from PWM to an external supply and that internal FET switching is required. Once this is detected, the PMOS between PWM and VDD is turned on which clamps VDD to the external supply via the inductor so allowing boost regulation to start for external supply inputs of 1.8 V or above. Until the PMOS is turned on, VDD is approximately one diode voltage below the external supply as it is powered through the diode from PWM to VDD. This detection process also allows the control circuitry to know to set PWM active low during the inductor energize period. If PWM is detected as Low during power up, this indicates that an external switching FET is being used and PWM is set High during the inductor energize period.
5. HFDCO is enabled periodically as required by the control logic to maintain regulation.
6. If switching regulator mode is turned off by the micro controller, then VDD drops. If it drops below the VBO, then NRST is asserted, and HFDCO is turned off. If VBAK is high enough, then the chip goes into battery backup mode. If VBAK is not present, then the chip enters power­on-reset when VDD drops to approximately 0.9V, and if VDD rises again, the chip reloads the mode settings from the fuses and tries to repeat the switching regulator startup sequence. If VBAK is present and VBAK drops below 0.9V, the chip switches back on to VDD. If VDD is above 1.8V at this point, the regulator start-up sequence begins again.
7. If the external supply drops so low that VDD can not be maintained above 1.7V, then the HFDCO clock is disabled and regulation stops. VDD may then collapse down to below the power-on-reset level.
© 2006 Semtech Corp. www.semtech.com
50
SH3100
POWER MANAGEMENT
Pad Specifi cations
Digital Input: CLKIN
General-purpose input pad powered from VDD with a Schmitt input stage. Includes diode protection to VDD and GND. Input switching threshold is approximately VDD/2; however, in order to ensure that no power supply current fl ows during steady state conditions, the input should settle to within 0.4V of either VDD or GND.
Parameter Symbol Min Max Units
Input Hysteresis V
VIN High V
VIN Low V
Input Leakage Current L
Input Pin Capacitance C
HYS
IH
IL
IN
IN
100 800 mV
VDD - 0.4 V
0.4 V
10 nA
10 pF
Tri-State/Analog Input: SNSE
Dual mode pad set by fuse mode selection. Includes diode protection to VDD and GND. In Mode 1, the pad is used to set the duration of the system reset. It is tri-state so it can detect Low, Floating and High inputs. The state of the pad is sampled during start-up and is then disabled to save power.
In Mode 2, the analog voltage on SNSE is input directly to the general-purpose comparator stage and compared with the output of the 8-bit DAC. Input voltage should be maintained within 0V and 1.6V.
Parameter Symbol Min Typ Max Units
Input Voltage Range V
Input Current in Mode 1 I
Input Current in Mode 2 I
Mid Level Bias (mode 1) V
Logic Low Input (mode 1) V
Logic High Input (mode 1) V
Input Pin Capacitance C
IN
IN
DD
MID
IL
IH
IN
0V
REG
V
-30 +30 A
10 nA
0.52 x V
REG
0.47 x V
REG
V
0.42 x V
REG
V
V
10 pF
© 2006 Semtech Corp. www.semtech.com
51
SH3100
POWER MANAGEMENT
Pad Specifi cations (continued)
Dual Supply Digital Output: CLK0 & CLK1
Digital output pad able to drive clock outputs at up to 33.5MHz powered from either the VDD or VBAK supplies. Includes diode protection to GND.
Parameter Symbol Min Max Units
V
High (Vdd > 3.3V, Ioh = 4mA) V
OUT
V
Low (Vdd > 3.3V, Iol = 4mA) V
OUT
V
High (Vdd > 1.7V, Ioh = 1mA) V
OUT
V
Low (Vdd > 1.7V, Iol = 1mA) V
OUT
Pad Rise time (10 pF load, 10 – 90%) T
Pad Rall time (10 pF load, 10 – 90%) T
Note: VDD may be either VDD or VBAK depending on supply selected. VDD is always VBAK when driving out 32.768 kHz in battery backup mode.
OH1
OL1
OH2
OL2
r
f
Vdd – 0.4 Vdd V
0 0.4 V
Vdd – 0.25 Vdd V
0 0.25 V
15 ns
15 ns
Asymmetric Drive Digital Output: NRST
Asymmetric digital output pad with hard pull-down and weak pull-up. This is used to provide the active low reset output to the microcontroller. The weak pull-up is implemented as a resistance to VDD and allows the NRST pin to be pulled low if required by an external device. Includes diode protection to VDD and GND.
Parameter Symbol Min Typ Max Units
Rout High (Weak pull-up to VDD) R
Vout Low (VDD > 3.3 V, Iol = 4 mA) V
Vout Low (VDD < 1.7 V, Iol = 1 mA) V
Pad rise time (20 pF load) T
Pad fall time (20 pF load) T
OH
OL1
OL2
r
f
17 20 23 kΩ
0 0.4 V
0 0.2 V
300 ns
15 ns
© 2006 Semtech Corp. www.semtech.com
52
SH3100
POWER MANAGEMENT
Pad Specifi cations (continued)
Dual Drive Digital Bidirectional: INT
This is a bi-directional digital pad with optional High or Low output drive strengths. It includes a Schmitt input stage. The pin may be used either as the Interrupt output or as a general-purpose I/O (GPIO).
Low drive strength is implemented as a pull-up or pull-down impedance to allow the pin to be overdriven by an external source if required. Supply is VDD and the pad includes diode protection to VDD and GND.
Parameter Symbol Min Max Units
Vout High (VDD > 3.3 V, Ioh = 4 mA) V
High Drive
Vout Low (VDD > 3.3 V, Iol = 4 mA) V
Vout High (VDD > 1.7 V, Ioh = 1 mA) V
Vout Low (VDD > 1.7 V, Iol = 1 mA) V
Low Drive
Rout High (Weak pull-up to VDD) R
Rout Low (Weak pull-down to GND) R
Vin High V
Input mode
Vin Low V
Input pin capacitance C
Input hysteresis V
Pad rise time (10 pF load) Tr 10 ns
Timing
Pad fall time (10 pF load) Tf 10 ns
Note: If the INT pin is programmed as a GPIO input (default state), it must be tied high (VDD) or low (GND) to ensure that a oating input does not cause excessive current consumption in the digital input stage.
OH1
OL1
OH2
OL2
OH
OL
IH
IL
IN
HY
VDD – 0.4 VDD V
0 0.4 V
VDD – 0.25 VDD
0 0.25
17 23 k
17 23 k
VDD - 0.4 V
0.4 V
20 pF
50 500 mV
© 2006 Semtech Corp. www.semtech.com
53
SH3100
POWER MANAGEMENT
Pad Specifi cations (continued)
I2C Communication: SCL & SDA
The I2C pads are designed to comply with the 400kHz (Fast) I2C specifi cation. The pads are open drain outputs with diode protection only to GND. This allows VDD to collapse without affecting the common bus. Input stages include input hysteresis and glitch fi ltering to allow handling of noisy inputs. High levels and rise times are set by external pull-up resistors on SCL and SDA.
Parameter Symbol Min Max Units
Maximum operating frequency F
OP
Vout Low (Iol = 3 mA, VDD > 2V) VOL1 0.4 V
Vout Low (Iol = 3 mA, VDD < 2V) VOL2 0.2VDD V
Vin High V
Vin Low V
Input hysteresis (VDD > 2 V) V
Input hysteresis (VDD < 2 V) V
Input glitch rejection T
Input leakage I
Input capacitance C
Output fall time (Load Cb = 10 pF to 400 pF) T
IH
IL
1 0.05VDD V
HYS
2 0.1VDD V
HYS
SP
IN
IN
F
1 MHz
0.7VDD V
0.3VDD V
50 100 ns
-10 10 A
10 pF
20 + 0.1Cb 300 ns
Multi-Function Output: PWM
Multi mode pad with function determine by operating mode selection. Includes diode protection to VDD and GND. Mode 1 is a standard digital output powered from VDD. Used for general-purpose PWM drive, fan speed control, or switching regulation using external switching transistors.
Mode 2 is for bootstrap boost regulation with internal switching. PWM is pulled Low to energize the inductor and then set High Impedance to allow energy transfer to VDD through the protection diode. Mode 3 is the power output from the LDO.
Parameter Min Typ Max Units
Vout High (Mode 1, VDD > 3.3 V, Ioh = 4 mA) Voh1 VDD – 0.4 VDD V
Vout Low (Mode 1 or 2, VDD > 3.3 V, Iol = 4 mA) Vol1 0 0.4 V
Vout High (Mode 1, VDD > 1.7 V, Ioh = 1 mA) Voh2 VDD – 0.25 VDD V
Vout Low (Mode 1 or 2, VDD > 1.7 V, Iol = 1 mA) Vol2 0 0.25 V
Pad rise time (Mode 1, 10 pF load) Tr 10 ns
Pad fall time (Mode 1 or 2, 10 pF load) Tf 10 ns
LDO output voltage range (Mode 3) Vldo 3 4.5 V
© 2006 Semtech Corp. www.semtech.com
54
POWER MANAGEMENT
Functional Descriptions
32.768 kHz Crystal Oscillator
SH3100
The crystal oscillator uses a current-starved design to minimize current consumption. It includes a 5-bit adjust­able padding capacitance to GND on both XIN and XOUT
Note: If no crystal is present, XIN should be tied to ground to avoid noise pickup on XIN being misinterpreted as crystal os­cillations.
to allow optimization of the crystal load capacitance un­der varying conditions.
The 5-bit control selects one of 32 padding capacitances from 10pF to 44pF in a geometric progression. This non­linear capacitance curve compensates for the non linear-
Note: There is no failsafe function on the crystal oscillator, so if the crystal fails during normal operation, the SH3100 hangs up and needs to be power-cycled to allow a fresh start-up. If the crystal does not start up within ten seconds of the next power-up, then it is ignored, and the internal 32kHz oscillator is used as the system clock.
ity of the crystal and results in a net linear progression of frequency with adjustment code.
This allows the crystal frequency to be maintained within ±2ppm of 32.768 kHz over temperature, by measuring temperature using the on chip temperature sensor, and then adjusting the padding capacitance accordingly, us­ing a look-up table for that particular device/crystal/PCB combination.
Parameter Symbol Min Typ Max Units
Crystal operating frequency Fx 32.768 kHz
Duty cycle DC 25 50 75 %
Start-up time Tst 3 seconds
Min padding capacitance Cmin 9 10 11 pF
Max padding capacitance Cmax 32 36 40 pF
ppm adjustment resolution Rppm 5 ppm
XIN input switching threshold Vth 0.3 0.5 0.7 V
XOUT pull-up current Ixout 450 750 nA
© 2006 Semtech Corp. www.semtech.com
55
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Plot of Crystal Padding Capacitance versus Adjustment Code
uBuddy V3. Crystal Padding Capacitance vs Code
50
45
40
35
30
25
20
15
Padding Capacitance (pF)
10
5
0
1 2 3 4 5 6 7 8 9 10111213141516171819202122232425262728293031
Code
Note: The MSB of the 5-bit control word is inverted to ensure that mid range capacitance is used as default for an unpro­grammed device with all zeros in the control register.
Internal 32.768 kHz Oscillator
The SH3100 is capable of functioning with or without an external 32.768kHz crystal. The chip includes an internal oscillator which is fuse calibrated on test to provide a
32.768 kHz clock source as an integrated alternative to the crystal oscillator. accuracy is better than ±3% over temperature and supply voltage, and initial accuracy at 25°C is better than ±1%. The internal oscillator starts within 100s of power being supplied to the chip and acts as the low frequency system clock for quick chip initiation.
This means that if a short reset duration has been programmed, the high frequency output clock can be ready very soon after a completely cold start. If a crystal is present, the crystal oscillator starts up within approximately two seconds and then takes over from the internal oscillator as the system clock. The internal oscillator is then shut down to save power. If no crystal is present, then the internal 32.768kHz oscillator continues
to run as the system clock, and the crystal oscillator circuitry is shut down to save power, if it has not started up within 10 seconds of power-up. Once in normal operation, it is possible for the microcontroller to override the clock selection by I
2
C access, although this would normally only
be required for test purposes.
The main reasons for requiring a 32.768kHz crystal are to obtain a very accurate RTC or high frequency clock. If neither of these requirements is critical then it is acceptable to save costs by removing the crystal and just using the internal oscillator.
Note: If no crystal is present, XIN should be tied to ground to avoid noise pickup on XIN being misinterpreted as crystal oscillations.
© 2006 Semtech Corp. www.semtech.com
56
POWER MANAGEMENT
Functional Descriptions (continued)
System Reset – Programmable VDD Threshold (VBO)
SH3100
The SH3100 has two dedicated supervisory functions that manage the reset of the microcontroller, a low VDD monitor (Brownout Detector) with programmable thresh­old (VBO) and a Watchdog Timer with programmable time­out. Both functions are integrated with the Clock Manage­ment System to provide a more complete solution than with standalone components. The SH3100 NRST output pin is active Low with strong drive to the active state and weak drive to the inactive state. This eliminates the need for an external pull-up and allows the NRST pin to be con­nected in common with other reset sources in a wired-OR confi guration.
During power-up, the NRST pin is guaranteed to be cor­rectly asserted by the time VDD reaches 1V. It then stays asserted until VDD exceeds the programmed VDD thresh­old (VBO) + hysteresis, at which point the SH3100 enters the power up routine with the appropriate sequencing of clock start and NRST negation as determined by the pro- grammable reset duration setting. Flags in the register map indicate the cause of reset to the microcontroller. Once powered up, the SH3100 continuously monitors VDD and generates a system reset on the NRST pin if VDD drops below VBO. VBO is set by a 7-bit control code to be between 1.7V and 4V with 24mV resolution. When VDD drops below VBO, this is defi ned as a brownout event, and if VBAK is present, the chip switches to battery backup mode to maintain register contents and RTC operation at very low current consumption. If VBAK is not present, backup mode operation continues to run from VDD until VDD drops below 1V.
Note: If VDD is likely to collapse very quickly to GND (Less than 100s) then it is advisable to add an external 100 nF decoupling capacitor on VREG to maintain register contents while the chip changes over to battery backup mode.
The default VBO setting is loaded from nonvolatile memo­ry on power up, but once the chip has come out of reset, it may be changed to any other value using an I
2
C access, or it can be permanently protected from any changes by setting the VBO lock fl ag or the write protect fl ag. To avoid the system jumping in and out of reset for noisy VDD levels near VBO, there is hysteresis on the reset function. When VDD is falling, NRST asserts at VBO. When VDD is rising, NRST negates at VBO plus the hysteresis (Vhys). There is also internal fi ltering on the VDD comparator which is set to allow rapid detection of a collapsing VDD while reject­ing VDD noise spikes of less than a certain duration and amplitude as shown by the diagram to follow:
Parameter
VBO for Min code (000 0000)
VBO for Max code (101 1110)
VDD Hysteresis
VDD falling to NRST asserted delay Td 5 s
VBO resolution
New VBO settling time
© 2006 Semtech Corp. www.semtech.com
Symbol
VBOmin
VBOmax
Vhys
Vres
Tvbo
Min Typ Max Units
1.65 1.7 1.75 V
3.95 4 4.05 V
25 100 mV
20 24 28 mV
4ms
57
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Programmable Reset Duration
The programmable reset duration is set by a combination ofv a single pin and a 5-bit nonvolatile memory (fuse) register. In normal operating mode the state of the SNSE pin determines the reset duration as follows:
• If SNSE is connected to GND, then the minimum reset duration of 6ms is selected.
• If SNSE is fl oating, then an intermediate reset duration of 270ms is selected.
• If SNSE is connected to VREG, then the reset dura- tion as set by the register is selected.
If the SH3100 is operating in one of the non standard modes then the reset duration defaults to the register setting.
The reset duration is defi ned as the time from the end of a reset condition until NRST is negated.
NRST is always asserted immediately at the start of a reset event. Regardless of its programmed frequency, CLK0 continues to run at approximately 700kHz for 2ms after NRST is asserted. This is in case the microcontroller needs a few clock cycles to tidy up internal registers after reset starts. In the case of reset caused by rapidly falling VDD, CLK0 stops if VDD drops below 1.7V during the 2ms of the post-NRST-assert period.
Note 1: CLK0 always starts at the programmed rate 4 ms after the end of a reset condition. This is to ensure that the micro­controller has a clock source running before NRST is negated. Some microcontrollers, which use PLL clock multiplication to generate internal clocks from CLK0, may need a long time to lock onto CLK0, therefore they need a reset duration greater
than the lock time of their internal PLL multiplier.
Note 2: When a brownout reset condition occurs, the start-up sequence timer can not start until after a time equal to the programmed reset duration has elapsed. This means that for very short brownout events, the observed reset duration on NRST is double the programmed reset duration.
Note 3: Reset events caused by watchdog timeout or watch­dog violation also result in NRST being asserted for double the programmed reset duration.
Note 4: On initial power-up, once VDD exceeds VBO, NRST stays asserted for the programmed reset duration.
Note 5: If a new reset duration is loaded which is larger than the current reset duration, this immediately triggers a pro­grammed reset at the new duration. When the reset ends, the new duration is effective for further resets.
Note 6: These reset durations are dependent on the accuracy of the internal 32.268kHz system clock, which may vary by up to ±3% from the stated fi gures.
The mapping between the register setting and Reset duration is as follows:
Code Duration Code Duration Code Duration Code Duration
0 6 8 78 16 366 24 1518
1 12 9 102 17 462 25 1902
2 18 10 126 18 558 26 2286
3 24 11 150 19 654 27 2670
4 30 12 174 20 750 28 3054
5 42 13 222 21 942 29 3822
6 54 14 270 22 1134 30 4590
7 66 15 318 23 1326 31 5358
© 2006 Semtech Corp. www.semtech.com
58
POWER MANAGEMENT
Functional Descriptions (continued)
System Reset - Watchdog Timer (WDT) System Reset - Manual Override
SH3100
The watchdog is the other dedicated supervisory function that manages the micro controller reset. Once enabled, it requires the micro controller to alternately write two unique codes (0x5A, 0xC3) to the
WDTCode
register. Failure to write the correct code before the timer expires causes a reset, as does writing an invalid code. This function is disabled on power-up, and is only enabled once it has been initialized.
Note: Once enabled, the WDT cannot be disabled.
By default (non runs at a rate determined by the
AutoWDTSuspend
mode), the watchdog
WDTPrescaler
register, either 128Hz, 64, 32 or 16Hz, and counts up to a maxi­mum of 128 counts, which relates to a maximum timeout period of 1, 2, 4 or 8 seconds respectively.
In order to prevent the WDT from timing out while the pro­cessor is legitimately asleep for a long period, the WDT can be optionally set (by setting the bit of the
Confi g
register) to be divided down from CLK0,
AutoWDTSuspend
instead of from the default selected 32.768kHz source. In this mode the WDT counter counts processor cycles, rather than real time, and can be set for a timeout pe­riod of between 256 and 262144 processor cycles deter­mined by
WDTPeriod
and
WDTPreScaler
. This means that the watchdog function sleeps while the HFDCO clock is in standby.
A system reset can be manually triggered by momen­tarily pulling down the NRST pin. This is detected by the SH3100, which then holds NRST low for the programmed reset duration. After the reset period ends, NRST is re­leased and pulled high by the internal 20K pullup.
To correctly detect a manual reset, the NRST pin should be pulled low for a period of at least 50ns. This can be achieved by adding a 47pF capacitor to ground on the NRST pin. This gives an effective RC rise time on NRST of 1s, which is suffi cient to ensure that NRST stays low for long enough to be detected, even if initially held low for only 1ns.
Note 1: If manual reset is triggered by a momentary pulldown on NRST, the start-up sequence timer can not start until after a time equal to the programmed reset duration has elapsed. This means that for very short manual reset events, the ob­served reset duration on NRST appears to be double the pro­grammed reset duration
Note 2: If manual reset is held low for longer than twice the programmed reset duration, then when it is released, NRST rises back to VDD with no further delay.
Note 3: A reset of this type sets the ag.
Brownout Event
status
The
AutoWDTSuspend
register bit can only be written to prior to WDT initialization. When the WDT times out, the cause can be identifi ed by reading the
CauseOfReset
reg-
ister.
© 2006 Semtech Corp. www.semtech.com
59
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Real Time Clock (RTC)
The RTC is a 47-bit Binary+BCD counter clocked by a 256 Hz clock derived from the internal 32.768 kHz clock. The RTC
is always enabled and continues to run during battery backup and WDT resets. The RTC runs for 99 years before over­ owing, and incorporates leap-year adjustment up to the year 2100. For synchronization purposes, the RTC should be read LSB fi rst – this causes all seven bytes to be latched into the serial interface simultaneously in order to avoid problems of byte-overfl ow between individual byte reads. The RTC should also be written MSB fi rst. Only when the LSB is written are the entire six bytes loaded into the RTC counter. The RTC incorporates an alarm register which causes an interrupt at a specifi ed time with 1 minute resolution. When the alarm is not being used, the register may be used as a scratchpad, as it remains throughout brownout and WDT events.
Note: The RTC read value may not be updated until one 256Hz cycle after an RTC write. Also, the shadow register used to synchronize both reads and writes between the two clock domains is shared with the PIT and the of this is that after writing to any one of these registers, the microcontroller software must wait for a period of the relevant counter before writing any one of the others. (e.g., having written to the RTC, the software can not write to the PIT or
Code
within one 256Hz cycle (4ms).
Note: RTC accuracy is dependent on the accuracy of the crystal oscillator or internal 32.268kHz clock, whichever is being used as the internal system clock.
DCOCode
, so the implication
DCO
Register
RTC0 RTC1 RTC2 RTC3 RTC4 RTC5 RTC6
Format
Binary BCD BCD BCD BCD BCD BCD
No. of Bits
8 7 7 6 6 5 8
Description
256ths seconds Seconds Minutes Hours Day of the month Month Year
Range
0x00 – 0xFF 0x00 – 0x59 0x00 – 0x59 0x00 – 0x23 0x00 – 0x31 0x01 – 0x12 0x00-0x99
© 2006 Semtech Corp. www.semtech.com
60
POWER MANAGEMENT
Functional Descriptions (continued)
Periodic Interval Timer (PIT)
The PIT is clocked at 32.768kHz. The interval timer uses the 32-bit ue. Although the timer continues to run, the interrupt re­mains active until reset by software. The timer is disabled at power up until the period is initialized.
WakeUpTime
register as its ultimate count val-
SH3100
Period = up to 36.4 hours with 30.5s resolution, subject to the tolerance of the crystal or internal oscillator.
For synchronization purposes the PIT should be read LSB rst – this causes all four bytes to be latched into a shad­ow register in the problems of byte-overfl ow between individual byte-reads. The PIT counter can not be written directly, but is reset whenever the LSB of the to start a fresh period. The be written MSB fi rst, and only when the LSB is written are the entire four bytes loaded into the in the PIT block.
Note: The out and WDT events, and may be used as a general pur­pose scratchpad, if not used for its primary purpose.
Because the PIT shares a shadow register with the RTC and reads and writes, it is important that none of these regis­ters are accessed within one period of the last timer writ­ten to (therefore 31s after the wakeup time has been updated, or 4ms after the RTC has been written, or imme­diately after the HFDCO has been written).
WakeUpTime
WakeupTime
DCOCode
/32768 to give a range of 30.5s
SerialIF
, and the same register is used for both
simultaneously in order to avoid
WakeUpTime
WakeupTime
register remains throughout brown-
register is written
register should
WakeupTime
register
© 2006 Semtech Corp. www.semtech.com
61
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Interrupt Operation
There are fi ve sources of interrupt:
PIT interrupt – generates an interrupt every time the PIT expires
RTC alarm interrupt
General-purpose comparator interrupt
A/D conversion complete
Fan speed control fault (absence of pulses on the SNSE pin, or duty cycle is 100%) – this is combined with the general-purpose comparator interrupt
All these interrupts may be individually enabled by seting the relevant fi eld in the by setting the relevant bit in the INT pin is highly confi gurable via the register:
IntEnable
register, and cleared
IntStatus
register. The
AlternateINTFunction
The interrupt can be programmed to toggle (PIT nly), and can be used in this way to generate a very slow square wave output with a period between 61.035s up to 72.8 hours with 61.035s resolution. In this mode, the INT output drives hard both states, rather than being pulled to one.
The INT pin can also be programmed as a general­purpose I/O port.
Additionally, the general-purpose comparator interrupt can be programmed to activate on either the rising or fall­ing edge, so that the interrupt triggers either when the comparator level rises above its DAC-set threshold, or when it drops below it, by programming the relevant bit in the
Confi g
register.
The INT output is always hard-driven back to its inactive state before returning to weak pullup/down, in order to provide a sharp trailing edge.
The mode can be specifi ed as level sensitive (the
active level remains until the interrupt has been cleared), or edge sensitive (a pulse with period equal to 4 cycles of CLK0, which repeats every time a new interrupt source is activated, thereby removing the need to clear periodic interrupts).
The polarity can be programmed – the INT pin is pulled
(weak) inactive, in order that it may be wire-ORed with any other source, and harddriven to the active state.
Any individual interrupt can either be cleared by set-
ting the relevant bit(s) in the a special short-form version of the I scribed in the next section.
IntStatus
2
C protocol as de-
register, or with
Note: The SNSE interrupt can be used as a periodic interrupt
independent from the PIT, because if SNSE is inactive, then an interrupt is generated every 32768 CLK1 cycles. Therefore if CLK1 is set for 32.768kHz output (which can of course be done irrespective of HFDCO setting), then this gives an exact 1Hz interrupt, while still leaving the PIT free.
© 2006 Semtech Corp. www.semtech.com
62
POWER MANAGEMENT
Functional Descriptions (continued)
2
I
C Short-Form Interrupt Clear
All active interrupts can be simultaneously cleared using a short-form version of the I er interrupt clearing than normal individual I
An access is started to slave address (0b0100111), but terminated with a STOP instruction immediately after the ACK position (which is not sent by the SH3100 for that ad­dress), as shown in the following diagram:
2
C access. This gives much fast-
2
C access.
I2C Short-form Interrupt Clear
SH3100
SCL
SDA
Slave address for shortform interrupt clear = 0100111
Start by Master
R/W
Slave NACK driven
by SH3100
Stop by Master
© 2006 Semtech Corp. www.semtech.com
63
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
General Purpose 8-Bit DAC & Comparator
The negative input of the comparator is driven by the out­put of the DAC, and the positive input by one of 4 possible input signals determined by a 4:1 analog multiplexer. Op­eration is enabled by the
The DAC is an integrating switched capacitor type and is normally clocked at 32.768kHz, so it can run when the HFDCO clock is disabled. The DAC can be set to a higher frequency by setting the 2-bit
The 4 inputs are VDD, VBAK, temperature, and SNSE and are selected by the 2-bit
SNSE is a general-purpose analog input from the SNSE pin, and can be used only if the SNSE pin is not being used for other purposes. The voltage on SNSE must al­ways be less than VREG.
Temperature has internal calibration correction stored in nonvolatile memory. This compensates for process inac­curacies in the temperature sensor to allow absolute tem­perature accuracy of ±2°C.
Note 1: To convert the DAC reading into temperature in de­grees Celsius, subtract the decimal DAC value from 163.
Note 2: Even though the DAC allows for a theoretical tempera­ture range of -92°C to 163°C, operation should be assumed to be linear only in the -40°C to 85°C range. Temperature resolution is nominally 1 code step per °C.
DACEn
DACClkDiv
DACSel
bit.
register.
register.
The block can operate in one of two modes.
In Mode 1, the DAC is programmed with a fi xed value us- ing the signal is selected. The comparator output is then moni­tored and when the signal either rises or falls through the DAC threshold (as set by register bit
Polarity
be useful, for example, as an independent monitor to give a low voltage warning on VDD or VBAK without triggering full sy stem reset or for warning if the ambient tempera­ture rises above or falls below set thresholds. The com­parator output state can also be read directly from the status register.
In Mode 2, the DAC and comparator are programmed within a successive approximation ADC controlled by the logic. This allows ADC conversion to be performed on any of the four inputs. The conversion is started by setting the
InitiateA2D
completes in approximately 1000 cycles of the frequency, and is indicated by the and interrupt status. In automatic fan speed control mode (the default mode of the SH3100), the block is automati­cally set up in ADC mode to measure temperature. The following tables show the four possible input signals and signal values for different DAC codes, plus the functional specifi cations.
ForceDACValue
register and the appropriate input
Comparator Interrupt
) an interrupt is generated on the INT pin. This can
register bit in the
Confi g
register. Conversion
DACClk
ADCComplete
interrupt
Note 3: If VBAK is being monitored, then there is additional current drain of a few A from VBAK due to an internal resis-
tive divider.
© 2006 Semtech Corp. www.semtech.com
64
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
DACSel(1,0)Input DAC = 0 DAC = 78 DAC = 138 DAC = 203 DAC =255 Units
00 VDD 0.03 1.47 2.58 3.78 4.74 V
01 VBAK 0.03 1.47 2.58 3.78 4.74 V
10 Temperature 163 85 25 -40 -92 °C
11 SNSE 0.01 0.49 0.86 1.26 1.58 V
Parameter Symbol Min Typ Max Units
DAC switching frequency DACclk 32 2000 kHz
DAC DNL DNL ± 0.5 LSB
DAC INL. INL ± 2 LSB
Comparator switching delay Td 3
DAC settling time Tst 128 DACclk
Minimum DAC setting 0.01 V
Maximum DAC setting 1.58 V
DAC resolution 6.1 mV
μs
Temperature Measurement
During Mode 3 (Auto Fan Speed control), temperature measurements are made continuously, and it is only neces­sary to read register 0x16 (
ADCResult
) to make a temperature reading at any time.
In other modes, temperature measurement needs to be manually set up by selecting the temperature input to the ADC and initiating an ADC conversion as described in the previous section.
The contents of the
Temperature = (TK -
TK = 163 when system clock is running from 32.768kHz crystal oscillator
TK = 166 when system clock is running from the internal 32.768kHz oscillator (crystal not present)
ADCresult
register are converted to temperature as follows:
ADCResult
) + K * (T - 25ºC)
K is the slope error of the temperature conversion curve and can vary between -0.1 and +0.1. This effectively means that the temperature conversion slope can vary between 0.9ºC and 1.1ºC per code step. Factory calibration is carried out at 25ºC to give a typical error of ± 1ºC and a maximum error of ± 2ºC at room temperature.
© 2006 Semtech Corp. www.semtech.com
65
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
PWM Operation & Fan Speed Control
The PWM function is implemented as a 10-bit PWM coun­ter clocked at the CLK1 rate. Therefore, if CLK1 is set to
32.768 kHz, the PWM repeat rate is 32 Hz.
The PWM duty cycle can either be set directly by writing to
ForcePWMDutyCycle
the to track the temperature in
The PWM function normally operates in standard PWM output format, but it can be programmed to operate in PDM (Pulse Density Modulation) mode, which outputs the same energy density, but distributed more evenly over the PWM cycle. This is useful when the PDM output is going to be fi ltered to generate a DC level.
Auto-PWM Mode (Fan Control Mode)
This is an application of the PWM function which oper­ates in conjunction with the general purpose 8-bit DAC and comparator to provide automatic fan speed control. It can be enabled by setting the SMPS mode bits in the registers such that operation commences immediately on power-up. The external application circuitry is shown in operating mode 3.
register or may be programmed
AutoPWMMode
.
Auto-PWM Engine Features:
7-bit minimum temperature setting register, which de­ nes, with 2°C resolution, the temperature at which the PWM comes on. The state machine incorporates 4°C of hysteresis to prevent the fan from continually switching on & off when the temperature is approxi­mately the minimum.
10-bit minimum duty cycle register (shared with the
ForcePWMDuty
defi nes the starting duty cycle.
5-bit
DutyCycleStepSize
the duty cycle increments per °C. This register along with the temperature.
The PWM starts at 100% duty cycle for between 1 and 2 seconds to kick-start the motor, before settling to MinDutyCycle. Thereafter it tracks with temperature.
If the SNSE input pulses cease, the PWM generates 100% duty cycle for 1 or 2 seconds, and if there are still no pulses, enters the FAULT state and generates an interrupt.
when not in
MinTemp
register determines the maximum
AutoPWMMode
register, which determines
), which
AutoPWMMode
trol engine for brushless DC motors, providing a PWM duty cycle proportional to the temperature. When in
Mode
, temperature is measured once per 32 PWM cycles which means once per second at the power-up default rate of 32 Hz.
Fan speed control uses the SNSE input to detect when the fan has stalled. While the fan is running, voltage tran­sients on the SNSE pin crossing the set threshold indicate to the controller that the fan is running correctly. If the SNSE transitions cease for more than 1 second, then this indicates that the fan has stalled, and the PWM duty cycle should be set to 100% to try to restart the fan. Both posi­tive and negative going transitions are detected, so if the SNSE signal stops in any state, then fan stall is detected.
© 2006 Semtech Corp. www.semtech.com
has been designed as a fl exible fan con-
AutoPWM-
If the duty cycle reaches 100% due to the maximum temperature being reached, an interrupt is generat­ed.
Software can read the
• determine the current duty cycle is for diagnostic pur­poses.
The PWM counter is clocked from the same source as CLK1. The CLK1 output does not need to be enabled. In theory, this allows the PWM rate to be varied up to a maximum PWM repeat rate of 32.7 kHz (33.5 MHz/1024) , but since the temperature measure­ment interval scales with PWM rate, the ADC conver­sion rate or the SNSE pulse repeat rate limits the ef­fective maximum CLK1 frequency.
66
AutoPWMDutyCycle
register to
POWER MANAGEMENT
Functional Descriptions (continued)
SH3100
Auto-PWM Engine Features (Cont.)
The main control registers are loaded on powerup
• with values corresponding to a minimum temperature of 40°C, minimum duty cycle of 25%, and a duty cycle step size of 17, which gives a maximum temperature of 85°C. The
ForceDACValue
register is set to 11 to give a comparator reference level of 76mV, which is the switching threshold for the SNSE input. All of these registers can be overridden at any time by I
2
C
access.
Erratum
The Automatic Fan speed control requires correction as follows:
With the power-up default settings, once the tempera-
ture rises above 40ºC, the SH3100 kick-starts the fan at 100% for 1 second, and then starts incrementing the PWM duty cycle (at 1.66%/ºC) from its starting po­sition of 25% until it reaches its target duty cycle for that temperature. This is correct.
Manual PWM Control
When the
SMPSMode
bits are set for NORMAL operation (i.e. “00”), the PWM output can be manually set up to give any duty cycle from 0 to 100% in approximately 0.1% steps (1024 steps). The repeat rate is 1024 cycles of the CLK1 frequency. CLK1 output does not need to be enabled. Thus for CLK1 at 32MHz, PWM repeat rate is 32s, with a minimum pulse width of 31.25ns, and if CLK1 is set to 244Hz, then the PWM repeat rate is over 4 seconds, with a minimum pulse width of approximately 4 ms.
In Manual mode, absence of SNSE pulses can still be de­tected as interrupts, and SNSE activity can also be detect­ed by setting the general-purpose comparator to SNSE, and enabling the general-purpose comparator interrupt, or by polling the Status register.
In Manual mode, temperature can be measured by ini­tiating an ADC conversion of temperature as normal, al­though while the conversion is taking place, the SNSE pin can not be monitored.
As the temperature drops, the PWM duty cycle should
track down with temperature. What happens, how­ever, is that the duty cycle drops immediately to 25%, and stays at this rate until the temperature rises above the maximum that it reached before it started drop­ping. The duty cycle then starts to increment the duty cycle as before until it reaches its target duty cycle for the new temperature. This means that automatic temperature regulation controlled by the fan would not function correctly.
This drastically reduces the utility of the automatic fan control mode. However, since this mode implements au­tomatic temperature measurement and SNSE pin moni­toring, it may be useful to enable this mode and then have the microcontroller read the temperature register regular­ly and manually adjust the starting PWM setting accord­ing to the temperature. Setting the increment register to zero means the PWM rate stays set at the value loaded into the starting PWM register. This reduces the time the microcontroller needs for reading temperature and moni­toring the SNSE pin in full manual mode.
Note: For correct SNSE pin monitoring, it is necessary to in­clude a simple high pass fi lter between the sense resistor of the fan drive transistor and the SNSE input on the SH3100. This is required to allow only the high speed commutation pulses to pass through to the SNSE pin. If the fi lter is not pres- ent, the switching pulses caused by the drive transistor could be mistaken for commutation pulses, so the SH3100 would not be able to detect a fan stall condition when the commuta­tion pulses stop. The Mode 3 circuit diagram in the application diagrams section shows this fi lter. Recommended fi lter com- ponent values assuming the default SNSE threshold of 76mV are:
R1 39 K R2 15 K C1 1 0 nF Rsense 2 to 5
This does bias the SNSE pin at a DC level of 440 mV, and negative transients on the small commutation sense resistor (Rsense) are coupled through the fi lter and are detected as commutation pulses on the SNSE input when they cross the 76mV threshold.
© 2006 Semtech Corp. www.semtech.com
67
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
PDM Mode
An alternative to Pulse Width Modulation (PWM) is Pulse Density Modulation, or PDM. This produces the maximum number of pulses while maintaining the average duty cycle, thereby requiring less smoothing capacitance on the PWM output to yield the same ripple. Both automatic fan control mode and Manual PWM control mode have the option of running PDM instead of PWM by setting the PDM/PWM bit in the
DutyCycleStepSize
register.
© 2006 Semtech Corp. www.semtech.com
68
POWER MANAGEMENT
ppg
VDD/
V
/
V
Functional Descriptions (continued)
Switching Regulator Operation
SH3100
The general-purpose DAC8 and comparator can be used in conjunction with the PWM output pin as a general-pur­pose switching regulator control. The various regulation modes are listed in the Operating Modes section and cov­er a variety of boost and buck confi gurations. In all cases the switching frequency is set by the CLK1 rate and the regulated voltage by the DAC8 setting.
Note 1: If the HFDCO oscillator has been put into standby by the microcontroller, then it is turned on automatically as re­quired for regulation, and then turned off again until the next inductor energize cycle.
Note 2: Since fan control, LDO, and the switching regulators all use the PWM pin, operation is mutually exclusive. It is not possible to use the other features while one is active.
The regulator feedback may be from VDD, VBAK or the SNSE pin as selected by the value of the 2-bit DACsel register. In the case of VDD and VBAK, they are divided by three before being compared with the DAC level. This means that the regulated level on VDD or VBAK is three times the DAC setting. In the case of SNSE feedback, the regulated level depends on the ratio of the external di­vider.
In all cases, the inductor energize period is eight cycles of the CLK1 frequency followed by at least one cycle of transfer period. If the output voltage has stabilized, then
the energize period only needs to activate occasionally as triggered by the feedback voltage passing through the DAC threshold. This means that for standby level loads, the regulator only needs to activate very infrequently in order to maintain regulation, and since the HFDCO clock is turned off between energize cycles, the average current consumption taken by the SH3100 is very close to the standby current consumption of < 10A.
The various modes may be set in the register so that they are enabled immediately on power up, or they may be ac­tivated later in normal operation. In addition, the start-up regulation level may be stored in the 4-bit DACLevel regis­ter to give the following DAC settings on power up. In boost mode, the DAC level starts off at 0.73V and then ramps to the programmed value over a few ms. This is to avoid excessive start-up overshoot in boost mode regulation.
Note 3: The switching regulator function is intended only as a low-cost support function and does not incorporate full syn­chronous conversion due to lack of pins. Therefore, conversion effi ciency is approximately 5% to 10% lower than equivalent synchronous systems.
Note 4: Bootstrap boost using internal switching (Mode 4) has very low effi ciency due to the higher relative impedance of the switching FETs, so this mode should be used only if energy ef­ ciency is not important.
DACLevel DAC8 DAC voltage
0 106 0.66 1.99 8 150 0.93 2.80
© 2006 Semtech Corp. www.semtech.com
1 111 0.69 2.08 9 156 0.97 2.91
2 117 0.73 2.19 10 161 1.00 3.00
3 122 0.76 2.28 11 167 1.04 3.11
4 128 0.80 2.39 12 183 1.14 3.41
5 133 0.83 2.49 13 200 1.24 3.72
6 139 0.86 2.56 14 222 1.38 4.13
7 144 0.89 2.69 15 250 1.55 4.65
DAC Voltage = [1.57 * (DAC8 code / 255) + 0.01] ± 1%
BAK DACLevel DAC8 DAC voltageVDD
69
BAK
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Low Dropout Linear Regulator (LDO)
The LDO function provides low-dropout linear regulation from VDD to the PWM pin. All other PWM pin related func­tions are disabled in this mode.
The LDO is intended as a low-power support feature for simple low-cost applications. It has good VDD high fre­quency noise rejection so can be used to clean up a VDD supply.
The output voltage on PWM is determined by the
el
setting as per the previous table. The voltage on PWM is divided by three and regulated to the same voltage as the DAC8.
Note: Only DAC levels of 1V and above are valid in this mode.
DACLev-
There is also a feature to allow the DAC8 to be used for an ADC conversion while the LDO is active. To do this, the
MaintainRegulatorOp
set prior to initiating a conversion. This disconnects the LDO regulator input from the DAC8 and holds the refer­ence level on a capacitor while the DAC8 is used for the conversion. When the conversion is complete, the DAC8 is reset to the correct level and reconnected to the LDO. Due to internal leakage, it is recommended that the maximum disconnect period is kept to 1ms or less.
bit in the
Confi g
register should be
These LDO specifi cations assume a 1F ceramic load ca- pacitor on PWM:
Parameter Symbol Min Max Units
VDD input voltage VDD 3.1 5.5 V
PWM output voltage VLDO 3 4.5 V
No load standby current Idd 250 μA
Line regulation REGlin 10 mV/V
Load regulation REGload 2 mV/mA
VDD noise rejection (100 kHz square wave on VDD, >250 mV headroom)
Max load current (VLDO = 3 V) Iload1 10 mA
Max load current (VLDO = 4.5 V) Iload2 15 mA
Dropout at 10 mA load (50 mV headroom) Vdo 200 mV
PWM Drift (DAC8 disconnected) Vdrift 300 mV/ms
10 Hz to 100 kHz RMS output noise Ntot 100 μV
PSRR 30 dB
© 2006 Semtech Corp. www.semtech.com
70
POWER MANAGEMENT
Functional Descriptions (continued)
I2C Interface
SH3100
2
The I
C interface conforms to the 400kHz fast-mode of
the 2000 Philips I
2
C specifi cation, acting as a slave only. Both SCL and SDA pins are dedicated. The maximum fre­quency of the I
2
C interface is determined by the strength of the external pull-up on SCL and SDA, and there is no minimum frequency.
The seven-bit I
2
C Slave Address is 0100xxx, and the three LSBs are programmed into the register. Both read and ite protocols can use the I
2
C combined format, and addi­tionally, the write protocol can support the non-combined (‘normal’) format.
Combined Write Format
• Start condition (falling edge on SDA while SCL is high) to commence the access to write the register address to the SH3100
7-bit slave address on SDA, clocked in by SCL 1-bit read/write indicator, set low because the follow­ing 8 bits are the register address, written into the SH3100
SH3100 generates an ACK pulse, and may stretch SCL by holding it low for up to two periods of CLK0, if CLK0 is relatively slow compared to SCL
Stop condition (rising edge on SDA while SCL is high)
Normal Write Format
Start condition (falling edge on SDA while SCL is high)
• to commence the access to write the register address to the SH3100
7-bit slave address on SDA, clocked in by SCL
1-bit read/write indicator, set low because the follow-
• ing 8 bits are the register address, written into the SH3100
SH3100 generates ACK pulse to acknowledge slave
• address
8-bit register address
SH3100 generates ACK pulse to acknowledge slave address
8-bit register address
SH3100 generates ACK pulse to confi rm register ad- dress transfer
Restart condition to commence the access to write payload data to the register address set up by the last access
7-bit slave address
1 bit read/write indicator, set low because the follow­ing 8 bits are the write data (payload)
SH3100 generates ACK pulse to acknowledge slave address
The microcontroller generates 8-bit write data
SH3100 generates ACK pulse to confi rm register ad-
• dress transfer
The microcontroller generates 8-bit write data
SH3100 generates an ACK pulse, and may stretch
• SCL by holding it low for up to two periods of CLK0, if CLK0 is relatively slow compared to SCL
Stop condition (rising edge on SDA while SCL is high)
© 2006 Semtech Corp. www.semtech.com
71
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Combined Read Format
Start condition (falling edge on SDA while SCL is high)
• to commence the access to the register address to the SH3100
7-bit slave address on SDA, clocked in by SCL
1-bit read/write indicator, set low because the follow-
• ing 8 bits are the register address, written into the SH3100
SH3100 generates ACK pulse to acknowledge slave
• address
8-bit register address
SH3100 generates ACK pulse to confi rm register ad-
• dress transfer
Restart condition to commence the access to read
• from the register address set up by the last access
7-bit slave address
1-bit read/write indicator, set high because the follow-
• ing 8 bits are the read data (payload)
SH3100 generates ACK pulse to acknowledge slave
• address, and may stretch SCL by holding it low for up to 62 s if reading the LSB of the RTC or PIT registers
SH3100 generates 8-bit read data
The microcontroller can generate either an ACK or
• NACK pulse – this is ignored by SH3100
Stop condition (rising edge on SDA while SCL is high)
Note: If the I2C master (microcontroller) does not support SCL
stretching, and can not be modifi ed to do so, then the RTC subseconds register (address 0x11) and the PIT LSB (address 0x09) may be read incorrectly. All other reads and writes suc­ceed, provided CLK0 is running reasonably fast compared to SCL, i.e. CLK0 frequency is >= 4xSCL frequency.
© 2006 Semtech Corp. www.semtech.com
72
POWER MANAGEMENT
(
)
Functional Descriptions (continued)
Write to single register (combined format)
SCL
SCL may be briefly held low (stretched) by SH3100 here
SH3100
SDA
Slave address (3 LSBs determined by I2CSlaveAddr register)
Start by Master
SA2SA0SA
1
R/ W
Write to single register ('normal' format)
SCL
SDA
Slave address (3 LSBs determined by I2CSlaveAddr register)
Start by Master
SA2 SA0SA1
Read from single register (combined format)
SCL
RA7RA6RA5RA4RA3RA2RA1RA
Register Address
Slave ACK driven by SH3100
RA7 RA6 RA5 RA4 RA3 RA2 RA1 RA0
R/W
Slave ACK driven by SH3100
0
Slave address (3 LSBs determined by I2CSlaveAddr register)
Restart by Master
Slave ACK dri ven by SH3100
Register Address
SCL may be briefly held low (stretched) by SH3100 here
SA2SA0SA
1
SCL may be briefly held low (stretched) by SH3100 here
WD7 WD6 WD5 WD4 WD3 WD2 WD1 WD0
Slave ACK driven by SH3100
WD7WD6WD5WD4WD3WD2WD1WD
0
R/ W
Slave ACK dri ven by SH3100
Write Data
Write Data
0
Stop by Maste r
Slave ACK dri ven by SH3100
Stop by Master
Slave ACK driven by SH3100
SDA
Slave address (3 LSBs determined by I2CSlaveAddr register)
Start by Master
SA2SA0SA
1
RA7RA6RA5RA4RA3RA2RA1RA
R/ W
Slave ACK dri ven by
Register Address
SH3100
0
Restart by Master
Slave ACK driven by SH3100
SDA and SCL are driven by the Master unless otherwise specified.
SAn = Slave Address (bit n) RAn = Register Address (bit n) WDn = Write Data (bit n) RDn = Read Data
bit n
I2C Timing Diagrams
SA2SA0SA
Slave address (3 LSBs determined by I2CSlaveAddr register)
1
RD7RD6RD5RD4RD3RD2RD1RD
R/ W
Read data driven by SH3100
Slave ACK dri ven by
SH3100
0
Stop by Master
NACK driven by master
© 2006 Semtech Corp. www.semtech.com
73
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
High-Frequency Digitally-Controlled Oscillator (HFDCO)
The master HF oscillator is a 19-bit high-frequency digi­tally-controlled oscillator (HFDCO) which can either free­run or be controlled within a Frequency Locked Loop (FLL) locked to the 32.768kHz crystal clock.
The HFDCO is guaranteed to operate over the range 8MHz to 33.5MHz with approximately 2 kHz resolution.
When free-running, the frequency stays stable to within ±0.5% over 0ºC to 70ºC and within ±1% over -40ºC to +85ºC. When FLL locks to the crystal, the frequency has the same stability as the crystal.
On a programmed device, the start-up code for the HFDCO is programmed into the register at 25°C.
This means that if the chip initially powers up at 25°C, the oscillator frequency is within ±0.1% of the desired fre­quency. If the temperature is not at 25°C on power up, then the frequency is within ±1% of the desired frequen­cy. Once the FLL starts (assuming the crystal is present) the oscillator is pulled exactly into lock. If the chip is then placed into standby mode at any particular temperature, the oscillator stops, but the control code determined by the FLL is maintained, such that if the oscillator is then started up at the same temperature, the accuracy is with­in ±0.1% of the desired frequency.
In order to achieve a frequency resolution of 2kHz over the required range, a linear DCO would require approxi­mately 14 bits of adjustment resolution. To achieve this with a single linear monotonic system is impractical due to component mismatch, therefore an intentionally non­monotonic system is used. This is made up from a num­ber of overlapping frequency banks such that it is guaran­teed that every frequency between 8MHz and 33.5MHz can be achieved. This results in a net 19-bit control code, of which the 16 bits stored in the register are suffi cient for start-up programming.
There is suffi cient bank overlap built into the system to ensure that while the FLL is running, drift in the control code due to temperature variations does not result in the code rolling over a bank boundary and thus requiring a large delay while the FLL loop recovers from the bank rollover. There is also additional protection built in such that if a range rollover point is reached, then the control­ling logic detects this and jumps the LSB bank code to the appropriate point to give the theoretically correct fre­quency for the next bank. In practice, due to component mismatch, the new frequency may not be exactly correct, and the FLL would need a few more cycles to settle to the correct point.
Note 1: If there is no crystal present, the FLL is not automati­cally enabled, as there is no point in locking to the internal
32.768kHz oscillator, since the HFDCO free-running accuracy is higher than that of the internal oscillator.
Note 2: Due to process variations, there is no fi xed correlation between control code and frequency therefore the start-up code is determined on test and uniquely programmed in to the
registers for each device.
© 2006 Semtech Corp. www.semtech.com
74
POWER MANAGEMENT
Functional Descriptions (continued)
Spectrum Spreading
One other function of the HFDCO is that it has the ability to implement frequency spreading of the HF clock in order to reduce EMI radiation. This is achieved by modulating the LSB bank of the HFDCO using a pseudo random coun­ter clocked at 32.768kHz. Spread spectrum is enabled by setting the plitude of 16kHz, 32kHz , 64kHz, or 128kHz depending on the setting of the 2-bit SS Confi g register.
Parameter Min Typ Max Units
Minimum programmable frequency 5 8 MHz
SSEnable
bit and choosing a modulation am-
SH3100
Maximum programmable frequency 33.5 45 MHz
Frequency resolution 1.5 2 2.5 kHz
Free-running accuracy over 0°C to +70°C -0.5 +0.5 %
Free-running accuracy over -40°C to +85°C -1 +1 %
Free-running accuracy over VDD -0.1 +0.1 %
Short term frequency stability (jitter) 0.1 0.2 %
Startup time from standby 2 μs
Settling time to 0.1% after HFDCO code 10 μs
Clock duty cycle 40 50 60 %
Spread spectrum modulation (min. code) ± 12 ± 16 ± 20 kHz
Spread spectrum modulation (max. code) ± 96 ± 128 ± 160 kHz
© 2006 Semtech Corp. www.semtech.com
75
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
Clock Management & Frequency Locked Loop (FLL)
FLL Operation
The HFDCO is used as the master high frequency clock source on the SH3100. Since this is a free running os­cillator with a process dependent correlation between control code and frequency, it is necessary to employ a frequency locked loop (FLL) to generate an output clock which is a set multiple of the crystal reference. In opera­tion, the 32.768kHz crystal clock is divided by 16 to yield an accurate 2048Hz reference. The HFDCO clock cycles are counted over the duration of one reference cycle and compared against the 14-bit FLLDivRatio register to as­sess whether the HFDCO is running faster or slower than required. The 19-bit HFDCO code is then incremented or decremented accordingly. The exact relationship is:
HFDCO Frequency = 2048Hz x (FLLDivRatio + 1)
Fast FLL Lock
On an unprogrammed device, or if a new FLL frequency setting has been programmed into the ister, the FLL can perform a fast locking algorithm using a successive approximation technique. This is initiated by setting the Initiate
Confi g
register. Once locked, the HFDCO control code may
FLLCoarseFreqLock
then be stored for future reference by the system or in the case of an unprogrammed device, it can be stored in the register as the default startup code for the HFDCO.
Note: FLL fast lock causes temporary coarse frequency excur­sions for approximately 25ms until the frequency is locked. To avoid exposing the microcontroller to these frequency excur­sions, the locking procedure can be performed while CLK0 is programmed for 32.768kHz by setting the ForceDCOOn bit of the Confi g register.
FLLDivRatio
bit of the
reg-
FLL-
The frequency select register (FLLDivRatio) is loaded from its register on power up but can be overwritten by I
2
C ac-
cess.
On power-up, the FLL automatically starts once the crys­tal oscillator is stable. If no crystal is present, then the FLL does not automatically start, but may be initialized by setting the
FLLEnable
bit of the
FLLConfi g
register. In this case, since the crystal is not present, the FLL locks to the internal 32.768kHz oscillator, but since this has an intrin­sic free-running accuracy of ±3%, this would result in less accuracy than the intrinsic ±0.5% free-running accuracy of the HFDCO. The only reason for doing this would be to nd the approximate HFDCO code for a new frequency in the absence of an accurate crystal reference.
On a programmed device, the HFDCO starts up within ±0.5% of the desired frequency and the FLL then pulls the frequency smoothly into lock.
Fine frequency acquisition can also be initiated with the
InitiateFineFreqLock
bit of the
FLLConfi g
register. This performs successive approximation on only the LSB bank of the HFDCO, so it can be used to give a smoother rap­id lock for smaller frequency deviations, such as those caused by a large temperature change during a shutdown period when the HFDCO and FLL are disabled.
If the spread spectrum function is enabled, it is temporar­ily disabled while Coarse or Fine lock are in process, and is re-enabled once FLL lock is achieved.
The HFDCO code is directly accessible for read and write by the I
2
C interface. With the FLL disabled, a microcon-
troller could perform its own locking algorithm if desired.
The state of the FLL can be determined by reading the status register. The
FLLLocked
bit is set when the FLL is locked. This is once the FLL has been stable for three con­secutive measurement cycles (i.e., no more than three frequency adjustments in the same direction over three consecutive reference cycles).
Note: The trum function is enabled.
© 2006 Semtech Corp. www.semtech.com
76
FLLLocked
indicator is invalid if the spread spec-
POWER MANAGEMENT
Functional Descriptions (continued)
CLK0 & CLK1 Outputs
Once the HFDCO frequency has been set to between 8 MHz and 33.5MHz, it can be driven out on CLK0 and CLK1 via independent postscalers.
The CLK0 postscaler is 3 bits and allows division ratios between 1 and 128 in binary geometric progression. This allows output frequencies between 62.5kHz and 33.5MHz with between 250ppm and 60ppm resolution.
The CLK1 postscaler is 4 bits and allows division ratios be­tween 1 and 32768 in binary geometric progression. This allows output frequencies between 244Hz and 33.5MHz with between 250ppm and 60ppm resolution.
SH3100
CLK0 is treated as the master clock and would usually be used as the main clock source to the microcontroller. CLK1 is the secondary clock and may be used for any pur­pose.
Both CLK0 and CLK1 may also be set to use the internal
32.768kHz clock source. This allows a clock output to be maintained while the HFDCO is shutdown or during bat­tery backup.
Both CLK0 and CLK1 output pads may be powered from either VDD or VBAK in normal operation. If CLK1 is set to use the internal 32.768kHz clock source, then the supply automatically switches over to VBAK during battery back­up. If it is set to a HFDCO derived frequency, then it stops. CLK0 is always stopped during battery backup.
If spread spectrum is enabled, then the percentage of fre­quency spreading remains constant, as the native HFDCO frequency is divided down by the postcaler.
© 2006 Semtech Corp. www.semtech.com
77
SH3100
POWER MANAGEMENT
Functional Descriptions (continued)
HFDCO Clock On/Off Control
The HFDCO automatically starts up at the programmed rate after power-up. It may then be turned off and on by
2
I
C access or by CLKIN control. To use CLKIN for On/Off control, activity needs to be detected on CLKIN after the clock output starts on CLK0. This places the SH3100 into
AutoClkDetect
tects that four consecutive cycles of CLKIN are missing. In this mode, the clock is restarted within 2s once a single transition is detected on CLKIN.
The advantage of CLKIN clock control is that it is much faster than I facility of many microcontrollers which use internal gat­ing to disable their own crystal oscillators. In this case CLK0 should be connected to the microcontroller XIN and CLKIN to the XOUT.
In
AutoClkDetect
larity as CLKIN. This allows for microcontroller implemen­tations where the microcontroller XOUT is disabled using either a NAND or a NOR gate. To maintain CLK0 active, CLKIN must be synchronous with CLK0, but phase is not important. In non-AutoClkDetect mode, CLK0 is stopped in the High state.
mode which turns off the clock once it de-
2
C access and it fi ts well with the clock STOP
mode, CLK0 is stopped at the same po-
The SH3100 defaults to non­activity has been sensed on CLKIN. When not in
Detect
bit of the
mode, CLK0 can be disabled by clearing the
Confi g
register, but only once at least one inter­rupt source has been programmed. This is a protection mechanism to prevent the microcontroller from killing its own clock without setting up the Interrupt with which it can be restarted. CLK0 restarts when the Interrupt event occurs.
AutoClkDetect
mode is disabled on reset, and remains so
until activity is fi rst seen on CLKIN. When not in
Detect
mode, the write access to the (which disables the clock) must adhere to the following timing constraint:
The time TDO-STOP from the falling edge of SCL clocking in the last data bit D0 to the rising edge of SDA marking
2
the I
C STOP condition must not exceed (1024*CLK0
periods) or (4*SCL periods), whichever is less.
CLK0 is stopped TD0-CLKOFF following the falling edge of SCL clocking in the last data bit D0. This time equates to 4*SCL periods or 1024*CLK0, whichever is less.
AutoClkDetect
CLK0Confi g
mode until
AutoClk-
ClkEn
AutoClk-
register
CLK0
T
T
D0-STOP
...
SCL
...
SDA
© 2006 Semtech Corp. www.semtech.com
WD3 WD2 WD1 WD0
Write data
78
DO-CLKOFF
Stop
Slave ACK
POWER MANAGEMENT
Outline Drawing - MLP 3 x 3 mm 16 pins
SH3100
A
E1
E
e
SEE DETAIL
PIN 1
EXPOSED PAD
D1
B
D
BOTTOM VIEW
SEE DETAIL
A
aaa
C
SIDE VIEW
A2
DETAIL
A1
B
NOTES:
CONTROLLING DIMENSIONS ARE IN MILLIMETERS
1. (ANGLES IN DEGREES).
2.
DIMENSION "L1" REPRESENTS TERMINAL PULL BACK
FROM PACKAGE EDGE. WHERE TERMINAL PULL BACK EXITS, ONLY UPPER HALF OF LEAD IS VISIBLE ON PACKAGE EDGE
DUE TO HALF ETCHING OF LEADFRAME.
COPLANARITY APPLIES TO THE EXPOSED PAD AS WELL AS
3. THE TERMINALS.
C
A
DIM
B
aaa bbb
bbb C A B
kxN
0.4
T
DIMENSIONS
INCHES
NOM
MIN
-
.031 A1 A2
D1
E1
L1
A
D
E
L
b N e k R T
bxN
-
.000
-
(.008)
.118 3.00
.114
.055
.061 .118
.114
.014 0.35 0.40
--
-
.007
.009
16
-
.008
-
.006 .003 .004 0.10
L
.040 .002-0.00
­.122 .065 .122 .065.061.055 .016 .004 .012
-
0.4
DETAIL
MILLIMETERS
0.80
2.90 3.10
1.40
2.90
1.40
0.30.012
0.18
0.50 BSC.020 BSC
0.20
--
A
MAXMINMAX NOM
-
1.00
-
0.05
(0.20)
1.65
1.55
3.00 3.10
1.55 1.65
-
0.10
0.23
0.30
16
--
0.09.004
0.15
0.08
8X 0.27
8X 0.15
R TYP
L1
-
-
Land Pattern - MLP 3 x 3 mm 16 pins
R
(C)
K
X
NOTES:
1.
THIS LAND PATTERN IS FOR REFERENCE PURPOSES ONLY. CONSULT YOUR MANUFACTURING GROUP TO ENSURE YOUR COMPANY'S MANUFACTURING GUIDELINES ARE MET.
DO NOT PLACE VIAS BETWEEN THE CORNER LEADS INSIDE THE
2. 3X3MM PACKAGE FOOTPRINT.
3.
THERMAL VIAS IN THE LAND PATTERN OF THE EXPOSED PAD SHALL BE CONNECTED TO A SYSTEM GROUND PLANE. FAILURE TO DO SO MAY COMPROMISE THE THERMAL AND/OR FUNCTIONAL PERFORMANCE OF THE DEVICE.
© 2006 Semtech Corp. www.semtech.com
H
DIMENSIONS
DIM
Z
G
Y
P
INCHES
C G H K R
P
X
Y
Z
(.108)
.083 .065 .065 1.65 .005 .020 .010 .026 .134
MILLIMETERS
(2.75)
2.10
1.65
0.12
0.50
0.25
0.65
3.40
79
SH3100
POWER MANAGEMENT
Contact Information
Semtech Corporation
Power Management Products Division
200 Flynn Road, Camarillo, CA 93012
Phone: (805) 498-2111 Fax: (805) 498-3804
www.semtech.com
Copyright ©2002-2006 Semtech Corporation. All rights reserved. Semtech, the Semtech logo, MicroBuddy, Buddy, and B are marks of Semtech Corporation. All
other marks belong to their respective owners. Purchase of I2C components of Semtech nternational AG, or one of its sublicensed Associated Companies conveys
a license under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specifi cation as
defi ned by Philips. Changes may be made to this product without notice. Customers are advised to obtain the latest version of the relevant information before
placing orders. LIMITED LICENSE GRANTED: NO WARRANTIES MADE This specifi cation is provided “as is” with no warranties whatsoever including any warranty of
merchantability, fi tness for any particular purpose, or any warranty otherwise arising out of any proposal, specifi cation or sample. Any suggestions or comments
by the authors of this specifi cation concerning use of this product are opinion only, and no warranty is made as to results to be obtained in any specifi c applica-
tion. A license is hereby granted to reproduce and distribute this specifi cation for internal use only. No other license, expressed or implied to any other intellectual
property rights is granted or intended hereby. Authors of this specifi cation disclaim any liability, including liability for infringement of proprietary rights, relating to
the implementation of information in this specifi cation. Authors of this specifi cation also do not warrant or represent that such implementation(s) will not infringe
such rights.
© 2006 Semtech Corp. www.semtech.com
80
Loading...