Contents

13 Serial Peripheral Interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-1

13.1

Description

13-2

13.2

Functional Description

13-2

13.3

Clock Phase and Polarity Controls

13-4

13.4

SPI Signals

13-5

 

13.4.1 Master In Slave Out

13-5

 

13.4.2 Master Out Slave In

13-5

 

13.4.3

Serial Clock

13-5

 

13.4.4

Slave Select

13-5

13.5

SPI System Errors

13-6

13.6

Data Transfers

13-7

13.7

FIFO Operation

13-9

13.8

Code Examples

13-10

 

13.8.1 SPI Master Transfer in Double-Buffer Mode using Interrupt Polling

13-10

 

13.8.2 SPI Master Transfer in FIFO Mode using Interrupts

13-11

14 Additional MSC1210 Hardware

14-1

14.1

Description

14-2

14.2

Low-Voltage Detect

14-2

 

14.2.1

Power Supply

14-3

14.3

Watchdog Timer

14-4

 

14.3.1 Watchdog Timer Hardware Configuration

14-4

 

14.3.2

Enabling Watchdog Timer

14-5

 

14.3.3 Resetting the Watchdog Timer

14-7

 

14.3.4

Disabling Watchdog Timer

14-8

 

14.3.5

Watchdog Timeout/Activation

14-8

15 Advanced Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-1

15.1

Hardware Configuration

15-2

 

15.1.1

Hardware Configuration Registers

15-2

 

15.1.2

Hardware Configuration Memory

15-5

 

15.1.3 Accessing Configuration Memory in a User Program

15-5

15.2

Advanced Flash Memory

15-6

 

15.2.1 Write Protecting Flash Program Memory

15-6

 

15.2.2 Updating Interrupts with Reset Sector Lock

15-6

15.3

Breakpoint Generator

15-7

 

15.3.1

Configuring Breakpoints

15-7

 

15.3.2

Breakpoint Auxiliary Interrupt

15-8

 

15.3.3

Disabling a Breakpoint

15-8

15.4

Power Optimization

15-9

15.5

Flash Memory as Data Memory

15-10

15.6

Advanced Topics and Other Information

15-12

 

15.6.1 Serial and Parallel Programming of the MSC1210

15-12

 

15.6.2 Debugging Using the MSC1210 Boot ROM Routines

15-12

 

15.6.3 Using MSC1210 with Raisonance Development Tools

15-12

 

15.6.4 Using the MSC1210 Evaluation Module (EVM)

15-12

iv

Page 6
Image 6
Texas Instruments manual Serial Peripheral Interface SPI, Additional MSC1210 Hardware