Cypress STK17T88 manual Register Map Detail

Page 18

STK17T88

Register Map Detail

 

0x7FFF

 

 

 

 

Real Time Clock – Years

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

 

 

10s

Years

 

 

 

 

 

Years

 

 

 

 

Contains the lower two BCD digits of the year. Lower nibble contains the value for years; upper nibble

 

 

contains the value for 10s of years. Each nibble operates from 0 to 9. The range for the register is 0-99.

 

0x7FFE

 

 

 

 

Real Time Clock – Months

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

0

 

0

0

10s

 

 

 

Months

 

 

 

 

 

 

 

Month

 

 

 

 

 

 

 

 

 

Contains the BCD digits of the month. Lower nibble contains the lower digit and operates from 0 to 9; upper

 

 

nibble (one bit) contains the upper digit and operates from 0 to 1. The range for the register is 1-12.

 

0x7FFD

 

 

 

 

Real Time Clock – Date

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

0

 

0

10s Day

of month

 

 

Day

of month

 

 

 

Contains the BCD digits for the date of the month. Lower nibble contains the lower digit and operates from

 

 

0 to 9; upper nibble contains the upper digit and operates from 0 to 3. The range for the register is 1-31.

 

 

Leap years are automatically adjusted for.

 

 

 

 

 

 

 

 

0x7FFC

 

 

 

 

Real Time Clock – Day

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

0

 

0

0

0

0

 

 

 

Day of week

 

 

 

 

Lower nibble

contains a

value that

correlates to day of the week. Day of the week is a ring counter that

 

 

counts from 1 to 7 then returns to 1. The user must assign meaning to the day value, as the day is not

 

 

integrated with the date.

 

 

 

 

 

 

 

 

 

 

0x7FFB

 

 

 

 

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.

 

 

 

 

 

 

 

 

 

 

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 operates from 0 to 9; upper

 

 

nibble contains the upper minutes digit and operates from 0 to 5. The range for the register is 0-59.

 

0x7FF9

 

 

 

 

Real Time Clock – Seconds

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

0

 

 

10s Seconds

 

 

 

 

Seconds

 

 

 

Contains the BCD value of seconds. Lower nibble contains the lower digit and operates from 0 to 9; upper

 

 

nibble contains the upper digit and operates from 0 to 5. The range for the register is 0-59.

 

 

0x7FF8

 

 

 

 

Calibration

 

 

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

OSCEN

 

0

Calibratio

 

 

 

Calibration

 

 

 

 

 

 

 

 

n Sign

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OSCEN

Oscillator

Enable. When

set to 1, the oscillator is disabled. When set to 0, the oscillator is enabled.

 

 

Disabling the oscillator saves battery/capacitor power during storage.

 

 

 

 

 

Calibration Sign

Determines if the calibration adjustment is applied as an addition to or as a subtraction from the time-base.

 

Calibration

These five bits control the calibration of the clock.

 

 

 

 

 

 

 

 

0x7FF7

 

 

 

 

Watchdog Timer

 

 

 

 

 

 

 

D7

 

D6

D5

D4

D3

 

D2

 

D1

 

D0

 

 

 

 

 

 

 

 

WDS

 

WDW

 

 

 

 

WDT

 

 

 

 

 

WDS

Watchdog

Strobe. Setting

this bit to 1 reloads and restarts the watchdog timer. The bit is cleared automat-

 

 

ically once the watchdog timer is reset. The WDS bit is write only. Reading it always will return a 0.

Document Number: 001-52040 Rev. *A

 

 

 

 

 

 

 

Page 18 of 22

[+] Feedback

Image 18
Contents Description FeaturesLogic Block Diagram Cypress Semiconductor CorporationPin Configurations Pin DescriptionsSymbol Parameter Commercial Industrial Units Min DC CharacteristicsRF SSOP-48 Package Thermal Characteristics Absolute Maximum RatingsAC Test Conditions CapacitanceRTC DC Characteristics IbakSymbols Parameter STK17T88-25 STK17T88-45 Units Alt Min Max Sram Read Cycles #1 and #2Symbols Parameter STK17T88-25 STK17T88-45 Units Alt Min Sram Write Cycles #1 and #2Min Max AutoStore/Power Up Recall Symbols Parameter STK17T88 Units Standard Alternate Min MaxSoftware-Controlled STORE/RECALL Cycle CONTROLLED13Symbols Parameter STK17T88 Units Standard Min Max Soft Sequence CommandsHardware Store to Sram Disabled Hardware Store CycleMode Selection A14-A0 ModeAutoStore Operation Hardware Recall Power UPNvSRAM Operation Hardware Store HSB OperationPreventing AutoStore Software StoreNoise Considerations Best PracticesReal Time Clock Alarm Watchdog TimerPower Monitor Interrupt Register Flags RegisterOscen RTC Register MapRegister BCD Format Data Function / Range WDS WDW WDTRegister Map Detail 0x7FF3 Alarm Minutes 0x7FF5 Alarm Day0x7FF4 Alarm Hours 10s Alarm Hours 0x7FF2 Alarm SecondsOrdering Codes User must reset this bit to 0 to clear this conditionOrdering Code Description Access Times ns Temperature 0x7FF0 FlagsPackage Diagram Sales, Solutions, and Legal Information Worldwide Sales and Design Support Products PSoC SolutionsDocument History