Specifications

120 Issue Date: 2004/11/05 CONFIDENTIAL
CL765 Camera Application Processor
Datasheet
Doc. #: CLQP-DS-743
4.20.4.3. SD Core Write to Card, No FAT Table Pre-read
Polling Mode
1) Set TrNum_L(20h). (C)
2) Set DmEn(?) and DmBkNum(?) of DmaCtl(80h). (C)
3) Set SdArg_L and SdArg_H(08h, 0Ah). (C)
4) Set SdCmHit(15), SdCmd(5:0) and RspR(14:12) of SdCtl_L(04h). (C)
5) When SD I/F checks SdCmHit, SdCmSm block transmits a command.(S)
6) SD I/F waits for a relative response after transmitting the command. (S)
7) When a relative response is received, SD I/F decodes this and stores in
SdRsp[0-4]_L and SdRsp[0-4]_H(0x0C-0x1E). (S)
8) Read SdRsp. (C)
9) Set SdDwHit(3) of SdCtl_H(06h). (C)
10) When SD I/F checks SdDwHit, SD I/F waits for Write Ready signal from
DMA buffer. (S)
11) CPU writes data to be transmitted in WrDtReg(88h).(C)
12) When 256*16bit buffer is full, DMA sends Write Ready signal to SD I/F. (D)
13) SD I/F transmits the contents of the relative block. (S)
14) When data of TrNum have transmitted, SD I/F generates an interrupt.(S)
15) CPU starts DmIdle to reset DMA buffer. (C)
Figure 4-52. SD Polling Mode Write without FAT