System ACE CompactFlash Solution
DS080 (v3.0) April 7, 2014
29
Product Specification
R
— OBSOLETE — OBSOLETE — OBSOLETE — OBSOLETE —
SECCNTCMDREG Register (BYTE address 014h-15h, WORD address 0Ah)
The SECCNTCMDREG register provides the means for an
MPU interface to set the sector count and execute Com-
pactFlash Controller commands.
Table 15 provides a
description of the SECCNTCMDREG register bits.
The SECCNT bits of the SECCNTCMDREG register spec-
ify the number of sectors to transfer during each ReadMem-
CardData or WriteMemCardData command:
A SECCNT value of 1 to 255 indicates to the
CompactFlash device that 1 to 255 sectors should be
transferred.
A SECCNT value of 0 indicates that 256 sectors should
be transferred.
The CMD bits of the SECCNTCMDREG register identify a
specific command to be executed:
If the MPU has NOT successfully locked access to the
CompactFlash Controller, then writes to the CMD bits
of the SECCNTCMDREG register do not change the
value of the register.
If the MPU has successfully locked access to the
CompactFlash Controller and a non-zero value is
written to the CMD bits of the SECCNTCMDREG
register, then the specified command is executed by
the CompactFlash Controller.
If the MPU has successfully locked access to the
CompactFlash Controller and a zero value is written to
the CMD bits of the SECCNTCMDREG register, there is
no effect on the value of the CMD bits. The only way to
clear the CMD bits is to issue the cfAbort command,
which aborts the currently executing command and
waits until the CompactFlash Controller clears the CMD
bits.
Table 15: SECCNTCMDREG Register Bit Descriptions
Bit
Name
Description
0
SECCNT0
Sector Count used during CompactFlash read or write sector commands: each sector is
made up of 512 bytes
1
SECCNT1
2
SECCNT2
3
SECCNT3
4
SECCNT4
5
SECCNT5
6
SECCNT6
7
SECCNT7
8
CMD0
Command value:
0x0 : Reserved
0x1 : ResetMemCard command
0x2 : IdentifyMemCard command
0x3 : ReadMemCardData command
0x4 : WriteMemCardData command
0x5: Reserved
0x6 : Abort command
0x7 : Reserved
9CMD1
10
CMD2
11
--
Reserved
12
--
Reserved
13
--
Reserved
14
--
Reserved
15
--
Reserved