background image

STK17T88

Document Number: 001-52040  Rev. *A

Page 15 of 22

minute, have one second either shortened by 128 or lengthened
by 256 oscillator cycles.

If a binary “1” is loaded into the register, only the first 2 minutes
of the 64 minute cycle is modified; if a binary 6 is loaded, the first
12 are affected, and so on. Therefore each calibration step has
the effect of adding 512 or subtracting 256 oscillator cycles for
every 125,829,120 actual oscillator cycles. That is +4.068 or
-2.034 ppm of adjustment per calibration step in the Calibration
register.

The calibration register value is determined during system test
by setting the CAL bit in the Flags register (at 0x7FF0) to 1. This
causes the INT pin to toggle at a nominal 512 Hz. This frequency
can be measured with a frequency counter. Any deviation
measured from the 512 Hz indicates the degree and direction of
the required correction. For example, a reading of 512.01024 Hz
would indicate a +20 ppm error, requiring a -10 (001010) to be
loaded into the Calibration register. Note that setting or changing
the calibration register does not affect the frequency test output
frequency.

To set or clear CAL, set the write bit “W” (in the Flags register at
0x7FF0) to a “1” to enable writes to the Flags register. Write a
value to CAL and then reset the write bit to “0” to disable writes.

The default Calibration register value from the factory is 00h. The
user calibration value loaded is retained during a power loss.

Alarm

The alarm function compares a user-programmed alarm
time/date (stored in registers 0x7FF1-5) with the real time clock
time-of-day/date values. When a match occurs, the alarm flag
(AF) is set and an interrupt is generated if the alarm interrupt is
enabled. The alarm flag is automatically reset when the Flags
register is read.

Each of the alarm registers has a match bit as its MSB. Setting
the match bit to a 1 disables this alarm register from the alarm
comparison. When the match bit is 0, the alarm register is
compared with the equivalent real time clock register. Using the
match bits, an alarm can occur as specifically as one particular
second on one day of the month or as frequently as once per
minute.

Note 

The product requires the match bit for seconds (0x7FF2,

bit D7) be set to 0 for proper operation of the Alarm Flag and
Interrupt.

The alarm value should be initialized on power up by software
since the alarm registers are not nonvolatile.
To set or clear the Alarm registers, set the write bit “W” (in the
Flags register at 0x7FF0) to a “1” to enable writes to the Alarm
registers. Write an alarmvalue to the alarm registers and then
reset the write bit to “0” to disable writes.

Watchdog Timer

The watchdog timer is designed to interrupt or reset the
processor should its program get hung in a loop and not respond
in a timely manner. The software must reload the watchdog timer
before it counts down to zero to prevent this interrupt or reset.

The watchdog timer is a free-running-down counter that uses the
32Hz clock (31.25 ms) derived from the crystal oscillator. The
watchdog timer function does not operate unless the oscillator is
running.

The watchdog counter is loaded with a starting value from the
load register and then counts down to zero, setting the watchdog
flag (WDF) and generating an interrupt if the watchdog interrupt
is enabled. The watchdog flag bit is reset when the Flags register
is read. The operating software would normally reload the
counter by setting the watchdog strobe bit (WDS) to 1 within the
timing interval programmed into the load register.

To use the watchdog timer to reset the processor on timeout, the
INT is tied to processor master reset and Interrupt register is
programmed to 24h to enable interrupts to pulse the reset pin on
timeout.

To load the watchdog timer, set a new value into the load register
by writing a “0” to the watchdog write bit (WDW) of the watchdog
register (at 0x7FF7). Then load a new value into the load register.
Once the new value is loaded, the watchdog write bit is then set
to 1 to disable watchdog writes. The watchdog strobe bit (WDS)
is set to 1 to load this value into the watchdog timer. Note: Setting
the load register to zero disables the watchdog timer function.

The system software should initialize the watchdog load register
on power up to the desired value since the register is not nonvol-
atile.

Power Monitor

The STK17T88 provides a power monitor function. The power
monitor is based on an internal band-gap reference circuit that
compares the V

CC

 voltage to V

SWITCH

.

When the power supply drops below V

SWITCH

, the real time clock

circuit is switched to the backup supply (battery or capacitor).

When operating from the backup source, no data may be read
or written and the clock functions are not available to the user.
The clock continues to operate in the background. Updated clock
data is available to the user t

HRECALL

 delay after V

CC

 has been

restored to the device.

When the power is lost, the PF flag in the Flags register is set to
indicate the power failure and an interrupt is generated if the
power fail interrupt is enabled (interrupt register=20h). The INT
line would normally be tied to the processor master reset input
to perform power-off reset. 

Interrupts

The STK17T88 has a Flags register, Interrupt register, and
interrupt logic that can interrupt the microcontroller or general a
power up master reset signal. There are three potential interrupt
sources: the watchdog timer, the power monitor, and the clock
alarm. Each can be individually enabled to drive the INT pin by
setting the appropriate bit in the Interrupt register. In addition,
each has an associated flag bit in the Flags register that the host
processor can read to determine the interrupt source. Two bits in
the interrupt register determine the operation of the INT pin
driver.

[+] Feedback 

Summary of Contents for AutoStore STK17T88

Page 1: ...nvSRAM is a fast static RAM with a nonvolatile Quantum Trap storage element included with each memory cell The SRAM provides the fast access and cycle times ease of use and unlimited read and write endurance of a normal SRAM Data transfers automatically to the nonvolatile storage cells when power loss is detected the STORE operation On power up data is automatically restored to the SRAM the RECALL...

Page 2: ...t Enable The active low G input enables the data output buffers during read cycles De asserting G high caused the DQ pins to tri state X1 Output Crystal Connection drives crystal on startup X2 Input Crystal Connection for 32 768 kHz crystal VRTCcap Power Supply Capacitor supplied backup RTC supply voltage Left unconnected if VRTCbat is used VRTCbat Power Supply Battery supplied backup RTC supply v...

Page 3: ...s not source or sink high current when interrupt Register bit D3 is below DC Characteristics VCC 2 7V 3 6V Symbol Parameter Commercial Industrial Units Notes Min Max Min Max ICC1 Average VCC Current 65 50 70 55 mA mA tAVAV 25 ns tAVAV 45 ns Dependent on output loading and cycle rate Values obtained without output loads ICC2 Average VCC Current during STORE 3 3 mA All Inputs Don t Care VCC max Aver...

Page 4: ...OL Output Logic 0 Voltage 0 4 0 4 V IOUT 4 mA TA Operating Temper ature 0 70 40 85 C VCC Operating Voltage 2 7 3 6 2 7 3 6 V 3 0V 20 10 VCAP Storage Capacitance 17 57 17 57 µF Between VCAP pin and VSS 5V rated NVC Nonvolatile STORE operations 200 200 K DATAR Data Retention 20 20 Years At 55 C DC Characteristics continued VCC 2 7V 3 6V Symbol Parameter Commercial Industrial Units Notes Min Max Min ...

Page 5: ...ttery Pin Voltage 1 8 3 3 1 8 3 3 V Typical 3 0 Volts during normal operation VRTCcap RTC Capacitor Pin Voltage 1 2 2 7 1 2 2 7 V Typical 2 4 Volts during normal operation tOSCS RTC Oscillator time to start 10 10 sec At Minimum Temperature from Power up or Enable 5 5 sec At 25 C from Power up or Enable C 1 C 2 RF Y 1 X1 X2 Recommended Values Y1 32 768 KHz 10M Ohm 0 install cap footprint but leave ...

Page 6: ... Enable Access Time 25 45 ns 2 tAVAV 3 tELEH 5 tRC Read Cycle Time 25 45 ns 3 tAVQV 4 tAVQV 6 tAA Address Access Time 25 45 ns 4 tGLQV tOE Output Enable to Data Valid 12 20 ns 5 tAXQX 4 tAXQX tOH Output Hold after Address Change 3 3 ns 6 tELQX tLZ Address Change or Chip Enable to Output Active 3 3 ns 7 tEHQZ tHZ Address Change or Chip Disable to Output Inactive 10 15 ns 8 tGLQX tOLZ Output Enable ...

Page 7: ...Write 20 30 ns 15 tDVWH tDVEH tDW Data Set up to End of Write 10 15 ns 16 tWHDX tEHDX tDH Data Hold after End of Write 0 0 ns 17 tAVWH tAVEH tAW Address Set up to End of Write 20 30 ns 18 tAVWL tAVEL tAS Address Set up to Start of Write 0 0 ns 19 tWHAX tEHAX tWR Address Hold after End of Write 0 0 ns 20 tWLQZ tWZ Write Enable to Output Disable 10 15 ns 21 tWHQX tOW Output Active after End of Write...

Page 8: ...tile cycle no STORE will take place 11 Industrial Grade Devices require 15 ms Max NO Symbols Parameter STK17T88 Units Notes Standard Alternate Min Max 22 tHRECALL Power up RECALL Duration 40 ms 9 23 tSTORE tHLHZ STORE Cycle Duration 12 5 ms 10 11 24 VSWITCH Low Voltage Trigger Level 2 65 V 25 VCCRISE VCC Rise Time 150 µS NOTE Read and Write cycles will be ignored during STORE RECALL and while VCC ...

Page 9: ...ernate Min Max Min Max 26 tAVAV tRC STORE RECALL Initiation Cycle Time 25 45 ns 13 27 tAVEL tAS Address Set up Time 0 0 ns 28 tELEH tCW Clock Pulse Width 20 30 ns 29 tEHAX Address Hold Time 1 1 ns 30 tRECALL RECALL Duration 100 100 ms 26 26 27 28 29 23 30 Notes 12 The software sequence is clocked on the falling edge of E controlled READs 13 The six consecutive addresses must be read in the order l...

Page 10: ...23 31 NO Symbols Parameter STK17T88 Units Notes Standard Min Max 33 tSS Soft Sequence Processing Time 70 µs 15 16 33 33 Notes 14 On a hardware STORE initiation SRAM operation continues to be enabled for time tDELAY to allow read write cycles to complete 15 This is the amount of time that it takes to take action on a soft sequence command Vcc power must remain high to effectively register command 1...

Page 11: ...8 19 0x0FC0 Nonvolatile Store Output High Z ICC2 L H L 0x0E38 0x31C7 0x03E0 0x3C1F 0x303F 0x0C63 Read SRAM Read SRAM Read SRAM Read SRAM Read SRAM Nonvolatile Recall Output Data Output Data Output Data Output Data Output Data Output High Z Active 17 18 19 Notes 17 The six consecutive addresses must be in the order listed W must be high during all six consecutive cycles to enable a nonvolatile cycl...

Page 12: ...connected to the VCAP pin This stored charge is used by the chip to perform a single STORE operation If the voltage on the VCC pin drops below VSWITCH the part automatically disconnects the VCAP pin from VCC A STORE operation is initiated with power provided by the VCAP capacitor Figure 5 shows the proper connection of the storage capacitor VCAP for automatic store operation Refer to the DC Charac...

Page 13: ...s detected This protects against inadvertent writes during power up or brown out conditions Noise Considerations The STK17T88 is a high speed memory and so must have a high frequency bypass capacitor of 0 1 µF connected between both VCC pins and VSS ground plane with no plane break to chip VSS Use leads and traces that are as short as possible As with all high speed CMOS ICs careful routing of pow...

Page 14: ...ct the battery to the VRTCbat pin and leave the VRTCcap pin unconnected A 3V lithium is recommended for this application The battery capacity should be chosen for the total anticipated cumulative down time required over the life of the system The real time clock is designed with a diode internally connected to the VRTCbat pin This prevents the battery from ever being charged by the circuit Stoppin...

Page 15: ...e software must reload the watchdog timer before it counts down to zero to prevent this interrupt or reset The watchdog timer is a free running down counter that uses the 32Hz clock 31 25 ms derived from the crystal oscillator The watchdog timer function does not operate unless the oscillator is running The watchdog counter is loaded with a starting value from the load register and then counts dow...

Page 16: ...utput is maintained even when power is lost Pulse Level P L When set to a 1 the INT pin is driven for approximately 200 ms when the interrupt occurs The pulse is reset when the Flags register is read When P L is set to a 0 the INT pin is driven high or low determined by H L until the Flags register is read The Interrupt register is loaded with the default value 00h at the factory The user should c...

Page 17: ...Years Years Years 00 99 0x7FFE 0 0 0 10s Months Months Months 01 12 0x7FFD 0 0 10s Day of Month Day of Month Day of Month 01 31 0x7FFC 0 0 0 0 0 Day of Week Day of week 01 07 0x7FFB 0 0 10s Hours Hours Hours 00 23 0x7FFA 0 10s Minutes Minutes Minutes 00 59 0x7FF9 0 10s Seconds Seconds Seconds 00 59 0x7FF8 OSCEN 0 0 Cal Sign Calibration 00000 Calibration values 0x7FF7 WDS WDW WDT Watchdog 0x7FF6 WI...

Page 18: ... D1 D0 0 0 10s Hours Hours Contains the BCD value of hours in 24 hour format Lower nibble contains the lower digit and operates from 0 to 9 upper nibble two bits contains the upper digit and operates from 0 to 2 The range for the register is 0 23 0x7FFA Real Time Clock Minutes D7 D6 D5 D4 D3 D2 D1 D0 0 10s Minutes Minutes Contains the BCD value of minutes Lower nibble contains the lower digit and ...

Page 19: ...e INT pin is driven to an active level as set by H L until the Flags register is read 0x7FF5 Alarm Day D7 D6 D5 D4 D3 D2 D1 D0 M 0 10s Alarm Date Alarm Date Contains the alarm value for the date of the month and the mask bit to select or deselect the date value M Match Setting this bit to 0 causes the date value to be used in the alarm match Setting this bit to 1 causes the match circuit to ignore...

Page 20: ...register Interrupt register and Flags register Setting the W bit to 0 disables writes to the registers and causes the contents of the real time clock registers to be transferred to the timekeeping counters if the time has changed a new base time is loaded The bit defaults to 0 on power up R Read Time Setting the R bit to 1 captures the current time in holding registers so that clock updates are no...

Page 21: ...STK17T88 Document Number 001 52040 Rev A Page 21 of 22 Package Diagram Figure 16 48 Pin SSOP 51 85061 51 85061 C Feedback ...

Page 22: ...modification translation compilation or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS MATERIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE Cypress reserves the right to ...

Reviews: