SATA-Disk Module 5A
APSDMxxxGL2XD-CTX
6
© 2016 Apacer Technology Inc. Rev. 1.1
4. Flash Management
4.1 Error Correction/Detection
SDM5A implements a hardware ECC scheme, based on the BCH algorithm. It can detect and correct up
to 40-bit error in 1K bytes.
4.2 Bad Block Management
Current production technology is unable to guarantee total reliability of NAND flash memory array. When
a flash memory device leaves factory, it comes with a minimal number of initial bad blocks during
production or out-of-factory as there is no currently known technology that produce flash chips free of bad
blocks. In addition, bad blocks may develop during program/erase cycles. When host performs
program/erase command on a block, bad block may appear in Status Register. Since bad blocks are
inevitable, the solution is to keep them in control. Apacer flash devices are programmed with ECC, block
mapping technique and S.M.A.R.T to reduce invalidity or error. Once bad blocks are detected, data in
those blocks will be transferred to free blocks and error will be corrected by designated algorithms.
4.3 Wear Leveling
Flash memory devices differ from Hard Disk Drives (HDDs) in terms of how blocks are utilized. For HDDs,
when a change is made to stored data, like erase or update, the controller mechanism on HDDs will
perform overwrites on blocks. Unlike HDDs, flash blocks cannot be overwritten and each P/E cycle wears
down the lifespan of blocks gradually. Repeatedly program/erase cycles performed on the same memory
cells will eventually cause some blocks to age faster than others. This would bring flash storages to their
end of service term sooner. Wear leveling is an important mechanism that level out the wearing of blocks
so that the wearing-down of blocks can be almost evenly distributed. This will increase the lifespan of
SSDs. Commonly used wear leveling types are Static and Dynamic.
4.4 Power Failure Management
Power Failure Management plays a crucial role when experiencing unstable power supply. Power
disruption may occur when users are storing data into the SSD. In this urgent situation, the controller
would run multiple write-to-flash cycles to store the metadata for later block rebuilding. This urgent
operation requires about several milliseconds to get it done. At the next power up, the firmware will
perform a status tracking to retrieve the mapping table and resume previously programmed NAND blocks
to check if there is any incompleteness of transmission.
4.5 ATA Secure Erase
ATA Secure Erase is an ATA disk purging command currently embedded in most of the storage drives.
Defined in ATA specifications, (ATA) Secure Erase is part of Security Feature Set that allows storage
drives to erase all user data areas. The erase process usually runs on the firmware level as most of the
ATA-based storage media currently in the market are built-in with this command. ATA Secure Erase can
securely wipe out the user data in the drive and protects it from malicious attack.
SATA-Disk Module 5A
APSDMxxxGL2XD-CTX
7
© 2016 Apacer Technology Inc. Rev. 1.1
5. Software Interface
5.1 Command Set
This section defines the software requirements and the format of the commands the host sends to
SDM5A. Commands are issued to SDM5A by loading the required registers in the command block with
the supplied parameters, and then writing the command code to the Command register.
Table 5-1 Command Set
Code
Command
Code
Command
E5h
Check Power Mode
F3h
Security Erase Prepare
06h
Data Set Management
F4h
Security Erase Unit
90h
Execute Device Diagnostic
F5h
Security Freeze Lock
E7h
Flush Cache
F1h
Security Set Password
EAh
Flush Cache EXT
F2h
Security Unlock
ECh
Identify Device
70h
Seek
E3h
Idle
EFh
Set Features
E1h
Idle Immediate
C6h
Set Multiple Mode
91h
Initialize Device Parameters
E6h
Sleep
C8h
Read DMA
B0h
SMART
25h
Read DMA EXT
E2h
Standby
C4h
Read Multiple
E0h
Standby Immediate
29h
Read Multiple EXT
CAh
Write DMA
20h
Read Sector
35h
Write DMA EXT
24h
Read Sector EXT
C5h
Write Multiple
40h
Read Verify Sectors
39h
Write Multiple EXT
42h
Read Verify Sectors EXT
30h
Write Sector
10h
Recalibrate
34h
Write Sector EXT
F6h
Security Disable Password
5.2 S.M.A.R.T.
S.M.A.R.T. is an abbreviation for Self-Monitoring, Analysis and Reporting Technology, a self-monitoring
system that provides indicators of drive health as well as potential disk problems. It serves as a warning
for users from unscheduled downtime by monitoring and displaying critical drive information. Ideally, this
should allow taking proactive actions to prevent drive failure and make use of S.M.A.R.T. information for
future product development reference.
Apacer devices use the standard SMART command B0h to read data out from the drive to activate our
S.M.A.R.T. feature that complies with the ATA/ATAPI specifications. S.M.A.R.T. Attribute IDs shall
include initial bad block count, total later bad block count, maximum erase count, average erase count,
power on hours and power cycle. When the S.M.A.R.T. Utility running on the host, it analyzes and reports
the disk status to the host before the device reaches in critical condition.
SATA-Disk Module 5A
APSDMxxxGL2XD-CTX
8
© 2016 Apacer Technology Inc. Rev. 1.1
Note: Attribute IDs may vary from product models due to various solution design and supporting
capabilities.
Apacer memory products come with S.M.A.R.T. commands and subcommands for users to obtain
information of drive status and to predict potential drive failures. Users can take advantage of the
following commands/subcommands to monitor the health of the drive.
Code
SMART Subcommand
D0h
READ DATA
D1h
READ ATTRIBUTE THRESHOLDS
D2h
Enable/Disable Attribute Autosave
D4h
Execute Off-line Immediate
D5h
Read Log (optional)
D6h
Write Log (optional)
D8h
Enable Operations
D9h
Disable operations
DAh
Return Status
General SMART attribute structure
Byte
Description
0
ID (Hex)
1 2
Status flag
3
Value
4
Worst
5*-11
Raw Data
*Byte 5: LSB
SMART attribute ID list
ID (Hex)
Attribute Name
9 (0x09)
Power-on hours
12 (0x0C)
Power cycle count
163 (0xA3)
Max. erase count
164 (0xA4)
Avg. erase count
166 (0xA6)
Total later bad block count
167 (0xA7)
SSD Protect Mode (vendor specific)
168 (0xA8)
SATA PHY Error Count
175 (0xAF)
Bad Cluster Table Count
192 (0xC0)
Unexpected Power Loss Count
194 (0xC2)
Temperature
241 (0xF1)
Total sectors of write

APSDM008GL2WD-CTW

Mfr. #:
Manufacturer:
Apacer
Description:
Solid State Drives - SSD SATA3 Disk Module 7-Pin/180 Degree SLC LP2 8G Extended Temp with Write Protect
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union