Samsung S5PC110 Manual page 983

Risc microprocessor
Table of Contents

Advertisement

S5PC110_UM
7.4 OPERATION SEQUENCE
This section defines basic operation flow chart divided into several sub sequences. "Wait for interrupts" is used in
the flow chart. This means the Host Driver waits until specified interrupts are asserted. If already asserted, then
follow the next step in the flow chart. Timeout checking is only available when interrupt is not generated. and it is
not described in the flow chart.
7.4.1 SD CARD DETECTION SEQUENCE
The flow chart to detect a SD card is shown in
1. To enable interrupt for card detection, write 1 to the following bits:
Card Insertion Status Enable (ENSTACARDNS) in the Normal Interrupt Status Enable register
Card Insertion Signal Enable (ENSIGCARDNS) in the Normal Interrupt Signal Enable register
Card Removal Status Enable (ENSTACARDREM) in the Normal Interrupt Status Enable register
Card Removal Signal Enable (ENSIGCARDREM) in the Normal Interrupt Signal Enable register
2. If Host Driver detects the card insertion or removal, it clears the interrupt statuses. If Card Insertion
interrupt (STACARDINS) is generated, write 1 to Card Insertion in the Normal Interrupt Status register. If Card
Removal interrupt (STACARDREM) is generated, write 1 to Card Removal in the Normal Interrupt Status
register.
3. Check Card Inserted in the Present State register. If Card Inserted (INSCARD) is 1, the Host Driver
supplies power and clock to the SD card. If Card Inserted is 0, it stops the executing process of the Host
Driver.
Figure 7-2
SD Card Detect Sequence
The steps to detect SD card:
Figure 7-2.
7 SD/MMC CONTROLLER
7-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents