Usage Model - Samsung S5PC110 Manual

Risc microprocessor
Table of Contents

Advertisement

S5PC110_UM

1.3.2 USAGE MODEL

PL330 needs its own binary.
The usage model is described as follows:
1. Load DMA binary into memory.
2. Use DMA debug SFRs to start DMA controller, PL330.
A. Using debug SFRs
DBGCMD, DBGINST0, and DBGINST1 (all write-only)
o
Before writing the above three SFRs, check whether DBGSTATUS is busy or not.
o
For more information, refer to pages 3-37~3-40 in "PL330 TRM".
o
B. DBGINST0 and DBGINST1 will contain debug instructions.
These SFRs can receive only three instructions, namely, DMAGO, DMASEV, and DMAKILL.
o
DMAGO starts a channel (For more information, refer to page number 3-38~3.40 and page number
o
4-6~4.8 in "PL330 TRM").
C. DBGCMD executes the instruction stored in the DBGINST0 and SFRs.
Example:
; Load channel control register
; Single transfer, 32 bit/ non-secure
DMAMOV
CCR, SB1 SS32 SP2 DB1 DS32 DP2
; SB1, DB1
; SS32, DS32
; SP0, DP0
; SP2, DP2
; in case of Peripheral transfer , should be Initialise peripheral
DMAFLUSHP 0
; Source: IntRAM0,
DMAMOV
SAR, 0xd0020000
DMAMOV
DAR, 0xd0028000
DMALP lc0, 32
DMALD
DMAST
DMALPEND lc0
DMASEV E0
DMAEND
: Burst length: 1
: 32-bit Data I/F
: Secure access
: Non-secure access
Destination: IntRAM1
1 DMA CONTROLLER
1-28

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents