Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 MPC 555: Queued Serial Module. 2 MPC 555 QSM QSPI: Queued Serial Peripheral Interface: full duplex serial, synchronous interface. 160B of queue RAM.

Similar presentations


Presentation on theme: "1 MPC 555: Queued Serial Module. 2 MPC 555 QSM QSPI: Queued Serial Peripheral Interface: full duplex serial, synchronous interface. 160B of queue RAM."— Presentation transcript:

1 1 MPC 555: Queued Serial Module

2 2 MPC 555 QSM QSPI: Queued Serial Peripheral Interface: full duplex serial, synchronous interface. 160B of queue RAM. SCI1 & 2: serial communication interfaces

3 3 QSM Block Diagram

4 4 QSM Configuration Register

5 5 QSM Interrupts

6 6 QSM Configuration Register

7 7 QSM Interrupt Registers

8 8 Queued Serial Peripheral Interface

9 9 QSPI 2 wire half duplex or 3-wire full duplex. Many baud rates, clocking, and interrupt options. Transfer chunks (serial) 8-16 bits. 160B RAM stores data (in and out), and commands/control words. CPU can queue up to 32 serial transfers in one interaction. A pointer points to the data to be transferred. Normally incremented after each transfer.

10 10 QSPI contd. QSPI has its own 4 chip-select pins. The queued transfer commands can be run in a loop in wrap-around mode. A standard delay of 17 IMB cycles (0.8µs) between two transfer commands (chunks of serial transfer).

11 11 QSPI Programming 0000: 16 bits; 1000: 8 bits; 1001: 9 bits; ….; 1111: 15 bits

12 12 QSPI Programming 0SPIFIESPI finished interrupt enable 1WRENWrap enable 3-7ENDQPEnding queue pointer 11-15 NEWQPNew/first queue pointer

13 13 QSPI Programming SPSR: QSPI Status register, a 8-bit subfield of SPCR3. Many other sources of interrupt --- each with its own status and interrupt enable bit. HALTA: Halt ack. MODF: mode fault flag.

14 14 QSPI RAM Right justified Only CPU can write

15 15 RAM Commands Multiple peripheral CS can be asserted CONT: continue asserting CS after transfer completed.

16 16 QSPI Overall operation CPU writes the command queue of QSPI QSPI RAM each entry: 1 word of transmit data, 1 word of receive data, 1B of command CPU writes transmit data and enables QSPI. QSPI completes the transfer, sets the completion flag SPIF SPE bit in SPCR1 to enable the QSPI. When done QSPI disables itself. If HALT in SPCR3 on, then QSPI halts after each serial transfer and sets HALTA.

17 17 QSPI Interrupt sources Three sources of interrupt (all on the same vector). SPIF (finished). MODF: Mode fault (inconsistent configuration). HALTA: acknowledge HALT.

18 18 QSM Initialization

19 19 QSM Op


Download ppt "1 MPC 555: Queued Serial Module. 2 MPC 555 QSM QSPI: Queued Serial Peripheral Interface: full duplex serial, synchronous interface. 160B of queue RAM."

Similar presentations


Ads by Google