Hardware description
You can only use logical addressing on cards of 16 megabytes or more.
To use logical addressing, you need to format the card using the command-line version of the Celoxic
FTU2 program.
a
al format
tion creates a logical address map on the third valid block in the card. This is
near the start of the card; the CIS/IDI fields are on the first valid block. For
if physic
rrupt, the SmartMedia card would have the following
k 3:
Corrupt
ap. To set a logical address, use
RC200SmartMediaSetLogicalAddress()
.
You can for
address, us
sical layer control works, or to target SmartMedia without
The logic
to allow for corrupt blo
ting opera
cks
instance,
al blocks 0 and 3 were co
structure:
Block 0:
Corrupt
Block 1:
CIS/IDI (1st valid block)
Block 2:
Valid block (blank)
Bloc
Block 4:
Logical map (3rd valid block)
Block 5:
Logical address 0 (1st valid block after the logical map)
You can use the PSL macro
RC200SmartMediaCheckLogicalFormat()
to check whether a card
has been formatted with a Celoxica logical address m
mat a card for physical addressing, using
RC200SmartMediaFormat()
. To set a physical
e
RC200SmartMediaSetAddress()
.
Ï
For information on how the phy
using the PSL, refer to the RC200 Hardware and Installation Guide, the documentation for
your SmartMedia card, or
http://www.ssfdc.or.jp/english/
.
g for a lo
o pr
Parameters:
type
unsigned 1
. Returns 0 if the card is
ss map, or 1 if it is not.
Timing:
Description:
dress map. If it is, it returns 0 and stores the number of the block
RC200SmartMediaSetLogicalAddress(),
this will target the first valid block
after the logical address map (refer to the RC200 Hardware and Installation Guide
RC200SmartMediaSetLogicalAddress()
.
SmartMedia Physical Specification
extern macro proc RC200SmartMediaFormat (
ResultPtr
);
Checkin
gical address map
extern macr
oc RC200SmartMediaCheckLogicalFormat (
ResultPtr
);
ResultPtr
: Pointer to register of
correctly formatted with the Celoxica logical addre
350 clock cycles or more.
This macro checks to see if the SmartMedia card is formatted according to the
Celoxica logical ad
where the logical map is stored.
If you then set a logical address to block 0, using
for more detail).
You must call this macro before using
www.celoxica.com
Page 61