Cypress CY14B101Q3, CY14B101Q1, CY14B101Q2 manual SPI Modes, System Configuration Using SPI nvSRAM

Page 6

CY14B101Q1

CY14B101Q2

PRELIMINARYCY14B101Q3

Figure 4. System Configuration Using SPI nvSRAM

S C K

 

 

 

 

 

M O S I

 

 

 

 

 

M IS O

 

 

 

 

 

S C K

S I

S O

S C K

S I

S O

u C o n tro lle r

 

 

 

 

 

C Y 1 4 B 1 0 1 Q x

C Y 1 4 B 1 0 1 Q x

C S

 

H O L D

C S

 

H O L D

C S 1

 

 

 

 

 

H O L D 1

 

 

 

 

 

C S 2

 

 

 

 

 

H O L D 2

 

 

 

 

 

SPI Modes

CY14B101Q1/CY14B101Q2/CY14B101Q3 may be driven by a microcontroller with its SPI peripheral running in either of the following two modes:

SPI Mode 0 (CPOL=0, CPHA=0)

SPI Mode 3 (CPOL=1, CPHA=1)

For both these modes, input data is latched-in on the rising edge of Serial Clock (SCK) starting from the first rising edge after CS goes active. If the clock starts from a HIGH state (in mode 3), the first rising edge, after the clock toggles, is considered. The output data is available on the falling edge of Serial Clock (SCK).

Figure 5. SPI Mode 0

CS

 

 

 

 

 

 

 

 

 

0

1

2

3

4

5

6

7

SCK

 

 

 

 

 

 

 

 

SI

7

6

5

4

3

2

1

0

 

MSB

 

 

 

 

 

 

LSB

The two SPI modes are shown in Figure 5 and Figure 6. The status of clock when the bus master is in Standby mode and not transferring data is:

SCK remains at 0 for Mode 0

SCK remains at 1 for Mode 3

CPOL and CPHA bits must be set in the SPI controller for either Mode 0 or Mode 3. The device detects the SPI mode from the status of SCK pin when the device is selected by bringing the CS pin LOW. If SCK pin is LOW when device is selected, SPI Mode 0 is assumed and if SCK pin is HIGH, it works in SPI Mode 3.

Figure 6. SPI Mode 3

CS

0 1 2 3 4 5 6 7

SCK

SI

7

6

5

4

3

2

1

0

MSBLSB

Document #: 001-50091 Rev. *A

Page 6 of 22

[+] Feedback

Image 6
Contents Functional Overview FeaturesLogic Block Diagram Mbit NonVolatile Sram Internally organized as 128K xPinouts Pin Definitions Pin Name Type DescriptionHold Sram Read Device OperationSram Write Store OperationHardware Store and HSB pin Operation Hardware Recall Power UpSoftware Store Operation Recall OperationSerial Peripheral Interface SPI OverviewSystem Configuration Using SPI nvSRAM SPI ModesSPI Operating Features SPI Functional DescriptionStatus Register Read Status Register Rdsr InstructionWrite Status Register Wrsr Instruction Write Protection and Block Protection Write Enable Wren InstructionWrite Disable Wrdi Instruction Block ProtectionRead Sequence Read Memory AccessWrite Protect WP Pin Write Sequence WriteNvSRAM Special Instructions Software StoreNvSRAM Special Instructions Function Name Opcode Operation AutoStore Disable Asdisb AutoStore Enable AsenbHold Pin Operation Operating Range DC Electrical CharacteristicsMaximum Ratings Parameter Description Test Conditions Min Max UnitThermal Resistance Data Retention and EnduranceCapacitance AC Test ConditionsAC Switching Characteristics Cypress Alt Description 40MHz Unit Parameter Min MaxAutoStore or Power Up Recall Switching WaveformsParameters Description CY‘4B101QxA Unit Min Max Recall Duration 200 Software Controlled Store and Recall CyclesParameter Description CY14B101Q1 Unit Min Max Soft Sequence Processing Time 100Parameter Description CY14B101Q1 Unit Min To Output Active Time when write latch not setHardware Store Cycle Hardware Store Pulse WidthPart Numbering Nomenclature Ordering Code Package Package Type Operating Diagram RangeOrdering Information CY 14 B 101 Q 1-SF X C TPackage Diagrams Pin 300 mil DFN PackagePin 300 mil Soic Document History Sales, Solutions, and Legal InformationWorldwide Sales and Design Support Products PSoC Solutions REV ECN no