R01UH0823EJ0100 Rev.1.00
Page 1450 of 1823
Jul 31, 2019
RX23W Group
40. SD Host Interface (SDHIa)
40.3.4
SD Card Write Protection
The SDHI can disable writing to an SD card via the SDHI_WP pin or a command.
40.3.4.1 Using the SDHI_WP Pin to Enable Write Protection
The SDHI_WP pin is connected to the WP detection switch of the SD card connector, and the SDHI_WP pin is pulled-
down or pulled-up when an SD card is inserted. The resistance value and whether the SDHI_WP pin is pulled-up or
pulled-down are determined by the specifications of the host device. The status of the SDHI_WP pin is reflected in the
SDSTS1.SDWPMON flag. After an SD card is inserted, read the SDSTS1.SDWPMON flag to check if write protection
is enabled or disabled.
40.3.4.2 Using a Command to Enable Write Protection
The SDHI uses the write protect command or the SD card lock command to disable writing to the SD card.