Cypress CY14B101P manual Serial Peripheral Interface

Page 4

 

 

PRELIMINARY

CY14B101P

 

 

 

 

 

 

cycle is in progress. The RECALL operation in no way alters the

Figure 2. AutoStore Mode

 

Vcc

 

data in the nonvolatile elements.

 

 

 

 

 

 

10kOhm

0.1uF

Vcc

CSVCAP

VSS

Hardware Recall (Power Up)

During power up, when VCC crosses VSWITCH, an automatic RECALL sequence is initiated which transfers the content of nonvolatile memory on to the SRAM.

A Power Up Recall cycle takes tFA time to complete and the memory access is disabled during this time. HSB pin is used to detect the Ready status of the device.

Software Recall

Software Recall allows the user to initiate a RECALL operation

Vto restore the content of nonvolatile memory on to the SRAM. In

CAPCY14B101P, this can be done by issuing a RECALL instruction

in SPI.

A Software Recall takes tRECALL to complete during which all memory accesses to nvSRAM are inhibited. The controller must provide sufficient delay for the RECALL operation to complete before issuing any memory access instructions.

Software Store Operation

Software Store allows the user to trigger a STORE operation through a special SPI instruction. This operation is initiated irrespective of whether a write has been performed since last nv operation.

A STORE cycle takes tSTORE time to complete, during which all the memory accesses to nvSRAM are inhibited. The RDY bit of the Status register or the HSB pin may be polled to find the Ready/Busy status of the nvSRAM. After the tSTORE cycle time is completed, the SRAM is activated again for read and write operations.

Hardware Store and HSB pin Operation

The HSB pin in CY14B101P is used to control and acknowledge STORE operations. If no STORE/RECALL is in progress, this pin can be used to request a Hardware Store cycle. When the HSB pin is driven LOW, the CY14B101P conditionally initiates a STORE operation after tDELAY duration. An actual STORE cycle starts only if a write to the SRAM has been performed since the last STORE or RECALL cycle. Reads and Writes to the memory are inhibited for tSTORE duration or as long as HSB pin is LOW.

The HSB pin also acts as an open drain driver that is internally driven LOW to indicate a busy condition, when a STORE cycle (initiated by any means) or Power up Recall is in progress. Upon completion of the STORE operation, CY14B101P remains disabled until the HSB pin returns HIGH. HSB pin must be left unconnected if not used.

RECALL Operation

A RECALL operation transfers the data stored in the nonvolatile Quantum Trap elements to the SRAM. In CY14B101P, a RECALL may be initiated in two ways: Hardware Recall, initiated on power up; and Software Recall, initiated by a SPI RECALL instruction.

Internally, RECALL is a two step procedure. First, the SRAM data is cleared. Next, the nonvolatile information is transferred into the SRAM cells. All memory accesses are inhibited while a RECALL

Disabling and Enabling AutoStore

If the application does not require the AutoStore feature, it can be disabled in CY14B101P by using the ASDISB instruction. If this is done, the nvSRAM does not perform a STORE operation at power down.

AutoStore can be re-enabled by using the ASENB instruction. However, these operations are not nonvolatile and if the user needs this setting to survive power cycle, a STORE operation must be performed following Autostore Disable or Enable operation.

Note CY14B101P comes from the factory with AutoStore Enabled.

Note If AutoStore is disabled and VCAP is not required, it is recommended that the VCAP pin is left open. VCAP pin must never be connected to GND. Power Up Recall operation cannot be disabled in any case.

Serial Peripheral Interface

SPI Overview

The SPI is a four-pin interface with Chip Select (CS), Serial Input (SI), Serial Output (SO), and Serial Clock (SCK) pins. CY14B101P provides serial access to nvSRAM through SPI interface. The SPI bus on CY14B101P can run at speeds up to 40 MHz for all instructions except RDRTC which runs at 25 MHz.

The SPI is a synchronous serial interface which uses clock and data pins for memory access and supports multiple devices on the data bus. A device on SPI bus is activated using the Chip Select pin.

The relationship between chip select, clock, and data is dictated by the SPI mode. CY14B101P supports SPI modes 0 and 3. In both these modes, data is clocked into the nvSRAM on the rising edge of SCK starting from the first rising edge after CS goes active.

The SPI protocol is controlled by opcodes. These opcodes specify the commands from the bus master to the slave device. After CS is activated the first byte transferred from the bus

Document #: 001-44109 Rev. *B

Page 4 of 32

[+] Feedback

Image 4
Contents Features Logic Block DiagramOverview Sram ArrayPin Definitions Pin Name Type Description PinoutsHold Device Operation Sram WriteSram Read Store OperationSerial Peripheral Interface Commonly used terms used in SPI protocol are given below SPI MasterSystem Configuration Using SPI nvSRAM SPI ModesSPI Operating Features SPI Functional DescriptionRead Status Register Rdsr Instruction Status RegisterWrite Status Register Wrsr Instruction Write Enable Wren Instruction Write Disable Wrdi InstructionWrite Protection and Block Protection Block ProtectionMemory Access Read Sequence ReadWrite Sequence Write Wpen WENBurst Mode Read Instruction Timing Read RTC Rdrtc InstructionAutoStore Disable NvSRAM Special InstructionsWrite RTC Wrtc Instruction Software Store StoreAutoStore Disable Asdisb AutoStore Enable AsenbSoftware Recall Recall Hold Pin OperationReal Time Clock Operation Watchdog Timer AlarmCalibrating the Clock Power Monitor Interrupt RegisterInterrupts Flags RegisterAccessing the Real Time Clock through SPI RTC Recommended Component ConfigurationRTC Register Map1 BCD Format Data Function/Range WDF OscfOscen Alarm Day Alarm HoursAlarm Minutes Register Map DetailRegister Map Detail Alarm Seconds Time Keeping CenturiesFlags 0x00 WDF Oscf CALDC Electrical Characteristics Maximum RatingsOperating Range Parameter Description Test Conditions Min Max UnitData Retention and Endurance CapacitanceThermal Resistance AC Test ConditionsAC Switching Characteristics ~ ~ ~ ~ Switching Waveforms AutoStore or Power Up RecallParameters Description CY14B101P Unit Min Max CY14B101P To Output Active Time when write latch not set Hardware Store CycleParameter Description Hardware Store Pulse WidthOrdering Code Package Diagram Package Type Operating Range Ordering InformationPart Numbering Nomenclature CY 14 B 101 P SF X C TPackage Diagrams Pin 300 mil Soic PackageREV ECN no Document HistorySubmission Orig. Description of Change Date Worldwide Sales and Design Support Products PSoC Solutions Sales, Solutions, and Legal InformationUSB