Cypress CY14B104M, CY14B104K manual Time-base, Watchdog, Write only. Reading it always returns a

Page 12

 

 

 

 

 

PRELIMINARY

CY14B104K, CY14B104M

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 5. Register Map Detail (continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register

 

 

 

 

 

Description

 

 

 

 

 

 

CY14B104K

CY14B104M

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x7FFF8

0x3FFF8

 

 

 

 

 

Calibration/Control

 

 

 

 

 

 

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

 

Sign

 

 

the time-base.

 

 

 

 

 

 

 

 

 

 

Calibration

 

 

These five bits control the calibration of the clock.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x7FFF7

0x3FFF7

 

 

 

 

 

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. 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 more detail in Watchdog Timer on page 7.

 

 

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.25ms (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.

0x7FFF6

 

0x3FFF6

 

 

 

 

Interrupt Status/Control

 

 

 

 

 

D7

D6

 

D5

 

D4

 

D3

 

D2

D1

 

D0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WIE

AIE

 

PFE

 

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.

 

 

 

 

 

 

PFE

 

Power Fail Enable. When set to 1, the power fail monitor 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.

 

 

 

 

 

 

 

 

 

0x7FFF5

 

0x3FFF5

 

 

 

 

 

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. 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 #: 001-07103 Rev. *K

 

 

 

 

 

 

 

 

 

 

 

Page 12 of 31

[+] Feedback

Image 12
Contents Features Functional DescriptionCypress Semiconductor Corporation 198 Champion Court Pinouts Device Operation Sram ReadSram Write AutoStore OperationHardware Recall Power Up Hardware Store HSB OperationSoftware Recall Software StoreMode Selection A15 A06 Mode PowerPreventing AutoStore StoreData Protection Noise ConsiderationsReal Time Clock Operation Alarm Watchdog TimerCalibrating the Clock Power Monitor Interrupt RegisterInterrupts Flags RegisterWDF Watchdog Timer Flag PF Power Fail FlagPFE Power Fail Enable AF Alarm FlagOscen WDSWDF Oscf 0x7FFF9 0x3FFF9 Time Keeping Seconds For the register is0x7FFF5 0x3FFF5 Alarm Day Time-baseWatchdog Write only. Reading it always returns a0x7FFF2 0x3FFF2 Alarm Seconds Centuries 0x7FFF0 0x3FFF0 FlagsThis condition and write 0 to clear this flag Document # 001-07103 Rev. *KDC Electrical Characteristics Range Ambient TemperatureMaximum Ratings Operating RangeData Retention and Endurance CapacitanceThermal Resistance AC Test ConditionsRTC Backup Current Hot Temperature 85 oCRTC Battery Pin Voltage RTC Capacitor Pin Voltage TOCS RTC Oscillator Time to StartAC Switching Characteristics Switching WaveformsParameters Sram Read Cycle Sram Write CycleData Output High Impedance Output Data Valid Standby ActiveAddress Valid Data Input Input Data ValidData Input Data Output Input Data Valid High ImpedanceNot applicable for RTC register writes Address Address ValidAutoStore/Power Up Recall Parameters Description 20 ns 25 ns 45 ns Unit Min MaxSoftware Controlled Store and Recall Cycle To Output Active Time when write latch not set Hardware Store CycleDescription 20 ns 25 ns 45 ns Unit Min Hardware Store Pulse WidthFor x8 Configuration For x16 ConfigurationInputs and Outputs Mode Power Truth Table For Sram OperationsPart Numbering Nomenclature CY14 B 104 K ZS P 20 X C T ZS TsopNvsram Ordering Information Package Diagrams Pin Tsop II51-85160 Document History TUPPCI UHAGVCH/PYRS Added 20 ns access speed in Features Footnote 1 and 8 referenced for Mode selection Table6 updated Data protection description 6 Updated Starting and stopping the oscillator descriptionSales, Solutions, and Legal Information Worldwide Sales and Design Support Products PSoC SolutionsUSB