Cypress CY14B256K manual Register Map Detail Calibration/Control 0X7FF8, 0x7FF7, Alarm Day 0x7FF5

Page 13

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CY14B256K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 4. Register Map Detail (continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Calibration/Control

 

 

 

 

 

 

0X7FF8

D7

 

 

D6

 

D5

D4

 

D3

 

D2

 

D1

 

D0

 

OSCEN

 

0

 

Calibration

 

 

 

 

Calibration

 

 

 

 

 

 

 

 

Sign

 

 

 

 

 

 

 

 

 

OSCEN

Oscillator Enable. When set to 1, the oscillator is stopped. When set to 0, the oscillator runs. Disabling the oscillator

 

saves battery or capacitor power during storage.

 

 

 

 

 

 

 

Calibration

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

Sign

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Calibration

These five bits control the calibration of the clock.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WatchDog Timer

 

 

 

 

 

 

0x7FF7

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. Setting the bit to 0 has no effect. The bit

 

is cleared automatically after the watchdog timer is reset. The WDS bit is write only. Reading it always returns a 0.

WDW

Watchdog Write Enable. Setting this bit to 1 disables any WRITE to the watchdog timeout value (D5–D0). This allows

 

the user to set the watchdog strobe bit without disturbing the timeout value. Setting this bit to 0 allows bits D5–D0 to be

 

written to the watchdog register when the next write cycle is complete. This function is explained in detail in the “Watchdog

 

Timer” on page 8.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WDT

Watchdog timeout selection. The watchdog timer interval is selected by the 6-bit value in this register. It represents a

 

multiplier of the 32 Hz count (31.25 ms). The range of timeout value is 31.25 ms (a setting of 1) to 2 seconds (setting of

 

3 Fh). Setting the watchdog timer register to 0 disables the timer. These bits can be written only if the WDW bit was set

 

to 0 on a previous cycle.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt Status/Control

 

 

 

 

0x7FF6

D7

 

 

D6

 

D5

D4

 

D3

 

D2

 

D1

 

D0

 

WIE

 

AIE

 

PFIE

0

 

H/L

 

P/L

 

0

 

0

 

 

 

 

 

 

 

 

 

WIE

Watchdog Interrupt Enable. When set to 1 and a watchdog timeout occurs, the watchdog timer drives the INT pin and

 

the WDF flag. When set to 0, the watchdog timeout affects only the WDF flag.

 

 

 

 

AIE

Alarm Interrupt Enable. When set to 1, the alarm match drives the INT pin and the AF flag. When set to 0, the alarm

 

match only affects the AF flag.

 

 

 

 

 

 

 

 

 

 

PFIE

Power Fail Enable. When set to 1, the alarm match drives the INT pin and the PF flag. When set to 0, the power fail

 

monitor affects only the PF flag.

 

 

 

 

 

 

 

 

 

0

Reserved for future use

 

 

 

 

 

 

 

 

 

 

 

 

H/L

High/Low. When set to 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 1, the INT pin is driven active (determined by H/L) by an interrupt source for approximately

 

200 ms. When set to 0, the INT pin is driven to an active level (as set by H/L) until the flags register is read.

 

 

 

 

 

 

 

 

 

Alarm - Day

 

 

 

 

 

 

 

0x7FF5

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. When this bit is set to 0, the date value is used in the alarm match. Setting this bit to 1 causes the match circuit

 

to ignore the date value.

 

 

 

 

 

 

 

 

 

 

Document Number: 001-06431 Rev. *H

Page 13 of 28

[+] Feedback

Image 13
Contents Logic Block Diagram FeaturesFunctional Description Cypress Semiconductor Corporation 198 Champion CourtPin Definitions Pin ConfigurationsAutoStore Operation Device OperationHardware Store HSB Operation Software Store Hardware Recall Power UpSoftware Recall Data ProtectionCurrent versus Cycle Time Low Average Active Power Best PracticesMode Selection A13-A0 Power Real Time Clock Operation Watchdog Timer AlarmCalibrating the Clock Interrupts Power MonitorInterrupt Register Flags RegisterInterrupt Block Diagram WDF Oscf RTC Register Map5 BCD Format Data Function/RangeTime Keeping Months 0x7FFE 10s Month Register Map Detail Time Keeping Years 0x7FFF 10s YearsDate Time Keeping Hours 0x7FFB Time Keeping Minutes 0x7FFARegister Map Detail Calibration/Control 0X7FF8 Alarm Day 0x7FF50x7FF7 Interrupt Status/Control 0x7FF6To ignore the hours value Alarm Minutes 0x7FF3 Register Map Detail Alarm Hours 0x7FF4 10s Alarm HoursAlarm Seconds 0x7FF2 When the Flags register is read or on power-upMaximum Ratings DC Electrical CharacteristicsOperating Range RangeCapacitance Data Retention and EnduranceThermal Resistance AC Test ConditionsParameter Sram Read Cycle AC Switching CharacteristicsDescription 25 ns 35 ns 45 ns Min Max Unit Sram Write Cycle Parameter Cypress AltParameter Description CY14B256K Unit Min Max AutoStore or Power Up RecallParameter Alt Description 25 ns 35 ns 45 ns Unit Min Max Software Controlled STORE/RECALL Cycles 20Hardware Store Cycle Soft Sequence CommandsInputs and Outputs Mode Power RTC CharacteristicsTruth Table For Sram Operations Part Numbering Nomenclature CY 14 B 256 K SP 25 X C T Ordering Information Pin Shrunk Small Outline Package Package DiagramsOrig. of Change Submission Description of Change Date Document HistoryUpdated Reading the clock, Backup Power, Stopping Updated Features sectionStarting the Oscillator and Alarm descriptions under RTC Added default values to RTC Register Map tableWorldwide Sales and Design Support Products PSoC Solutions Sales, Solutions, and Legal InformationUSB