background image

 STK17TA8

Document #: 001-52039  Rev. **

Page 15 of 23

Calibrating The Clock

The RTC is driven by a quartz controlled oscillator with a nominal

frequency of 32.768 KHz. Clock accuracy will depend on the

quality of the crystal, specified (usually 35 ppm at 25 C). This

error could equate to 1.53 minutes gain or loss per month. The

STK17TA8 employs a calibration circuit that can improve the

accuracy to +1/-2 ppm at 25 C. The calibration circuit adds or

subtracts counts from the oscillator divider circuit.
The number of time pulses are added or substracted depends

upon the value loaded into the five calibration bits found in

Calibration register (at 0x1FFF8). Adding counts speeds the

clock up; subtracting counts slows the clock down. The

Calibration bits occupy the five lower order bits of the register.

These bits can be set to represent any value between 0 and 31

in binary form. Bit D5 is a Sign bit, where a “1” indicates positive

calibration and a “0” indicates negative calibration. Calibration

occurs during a 64 minute period. The first 62 minutes in the

cycle may, once per 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 will be 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 0x1FFF0) 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 will indicate 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

0x1FFF0) to a "1" to enable writes to the Flag 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-programmable alarm

time/date (stored in registers 0x1FFF1-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, the 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(1x1FFF2 -

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 Alarm registers, set the write bit “W” (in the Flags

register at 0x1FFF0) to a "1" to enable writes to the Alarm

registers. Write an alarm value 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 the 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

32 Hz clock (31.25 ms) derived from the crystal oscillator. The

watchdog timer function does no 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 flag 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 watch dog timer, set a new value into the load register

by writing a “0” to the watchdog write bit (WDW) of the watchdog

register (at 01x1FFF7). 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 then 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 STK17TA8 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 to the nvSRAM 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 VCC has been restored to the device.
When 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). This line

would normally be tied to the processor master reset input for

perform power-off reset.

[+] Feedback 

Содержание AutoStore STK17TA8

Страница 1: ...s 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 operati...

Страница 2: ... 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 voltage Left unconnected if VRTCcap is used VCC Power Supply Power 3 0V 20 10 HSB I O ...

Страница 3: ...t 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 Average current for duration of STORE cycle tSTORE ICC3 Average VCC Current at tAVAV 200ns 3V 25 C Typical 10 10 mA W V CC 0 2V All Other Inputs Cycling at CMOS Levels Dependent on output loading and cycle rate Values obtained without output loads ICC4 Average VC...

Страница 4: ... 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 Electrical Characteristics continued VCC 2 7V 3 6V Symbol Parameter Commercial Industrial Units Notes Min Max Min Max Notes 2 These parameters are guaranteed but not tested Symbol Parameter Max Units Conditions CIN ...

Страница 5: ... Battery 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 MIN 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 u...

Страница 6: ...e Access Time 25 45 ns 2 tAVAV 3 tELEH 3 tRC Read Cycle Time 25 45 ns 3 tAVQV 4 tAVQV 4 tAA Address Access Time 25 45 ns 4 tGLQV tOE Output Enable to Data Valid 12 20 ns 5 tAXQX 4 tAXQX 4 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 5 tHZ Address Change or Chip Disable to Output Inactive 10 15 ns 8 tGLQX tOLZ Output Enable to...

Страница 7: ...0 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 5 7 tWZ Write Enable to Output Disable 10 15 ns 21 tWHQX tOW Output Active after End of Write 3 ...

Страница 8: ... cycle no STORE will take place 11 Industrial Grade Devices require 15 ms MAX NO Symbols Parameter STK17TA8 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 is b...

Страница 9: ...Max Min Max 26 tAVAV tAVAV tRC STORE RECALL Initiation Cycle Time 25 45 ns 13 27 tAVEL tAVGL tAS Address Set up Time 0 0 ns 28 tELEH tGLGH tCW Clock Pulse Width 20 30 ns 29 tEHAX tGHAX Address Hold Time 1 1 ns 30 tRECALL tRECALL RECALL Duration 100 100 μs 26 26 27 28 29 23 30 26 26 27 28 29 23 30 Notes 12 The software sequence is clocked on the falling edge of E controlled READs or G controlled RE...

Страница 10: ...1 Notes 14 On a hardware STORE initiation SRAM operation continues to be enabled for time tDELAY to allow READ WRITE cycles to compete 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 16 Commands like Store and Recall lock out I O until operation is complete which further increases this time See specifi...

Страница 11: ...0x08FC0 Nonvolatile Store Output High Z ICC2 L H L 0x04E38 0x0B1C7 0x083E0 0x07C1F 0x0703F 0x04C63 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 cy...

Страница 12: ...p 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 14 shows the proper connection of the storage capacitor VCAP for automatic store operation Refer to the DC Electrical Characteristics on page 3 for the size of the capacitor T...

Страница 13: ...he AutoStore function cannot be disabled on the STK17TA8 Best Practices nvSRAM products have been used effectively for over 15 years While ease of use is one of the product s main system values experience gained working with hundreds of applications has resulted in the following suggestions as best practices The nonvolatile cells in an nvSRAM are programmed on the test floor during final test and ...

Страница 14: ... capacitor power source connect the capacitor to the VRTCcap pin and leave the VRTCbat pin unconnected Capacitor backup time values based on maximum current specs are shown below Nominal times are approximately three times longer A capacitor has the obvious advantage of being more reliable and not containing hazardous materials The capacitor is recharged every time the power is turned on so that r...

Страница 15: ...ent real time clock register Using the match bits the 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 1x1FFF2 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 nonvo...

Страница 16: ...wer monitor circuit When set to 0 only the PF flag is set High Low H L When set to a 1 the INT pin is active high and the driver mode is push pull The INT pin can drive high only when VCC VSWITCH When set to a 0 the INT pin is active low and the drive mode is open drain The active low open drain output is maintained even when power is lost Pulse Level P L When set to a 1 the INT pin is driven for ...

Страница 17: ...s 00 99 0x1FFFE 0 0 0 10s Months Months Months 01 12 0x1FFFD 0 0 10s Day of Month Day of Month Day of Month 01 31 0x1FFFC 0 0 0 0 0 Day of Week Day of week 01 07 0x1FFFB 0 0 10s Hours Hours Hours 00 23 0x1FFFA 0 10s Minutes Minutes Minutes 00 59 0x1FFF9 0 10s Seconds Seconds Seconds 00 59 0x1FFF8 OSCEN 0 0 Cal Sign Calibration 00000 Calibration values 0x1FFF7 WDS WDW WDT Watchdog 0x1FFF6 WIE 0 AIE...

Страница 18: ...r must assign meaning to the day value as the day is not integrated with the date 0x1FFFB Real Time Clock Hours D7 D6 D5 D4 D3 D2 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 0x1FFFA Real Time Clock ...

Страница 19: ...fects the AF flag PFIE Power Fail Enable When set to 1 a power failure drives the INT pin as well as setting the PF flag When set to 0 the power failure only sets the PF flag 0 Reserved For Future Used H L High Low When set to a 1 the INT pin is driven active high When set to 0 the INT pin is open drain active low P L Pulse Level When set to a 1 the INT pin is driven active determined by H L by an...

Страница 20: ...register is read or on power up PF Power fail Flag This read only bit is set to 1 when power falls below the power fail threshold VSWITCH It is cleared to 0 when the Flags register is read or on power up OSCF Oscillator Fail Flag Set to 1 on power up only if the oscillator is enabled and not running in the first 5ms of operation This indicates that RTC backup power failed and clock value is no lon...

Страница 21: ...erature STK17TA8 RF25 3V 128Kx8 AutoStore nvSRAM RTC SSOP48 300 25 Commercial STK17TA8 RF45 3V 128Kx8 AutoStore nvSRAM RTC SSOP48 300 45 Commercial STK17TA8 RF25TR 3V 128Kx8 AutoStore nvSRAM RTC SSOP48 300 25 Commercial STK17TA8 RF45TR 3V 128Kx8 AutoStore nvSRAM RTC SSOP48 300 45 Commercial STK17TA8 RF25I 3V 128Kx8 AutoStore nvSRAM RTC SSOP48 300 25 Industrial STK17TA8 RF45I 3V 128Kx8 AutoStore nv...

Страница 22: ...STK17TA8 Document 001 52039 Rev Page 22 of 23 Package Diagrams Figure 17 48 Pin SSOP 51 85061 51 85061 C Feedback ...

Страница 23: ...the applicable agreement Any reproduction 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 PARTICU...

Отзывы: