User manual

RC200/203 Manual
www.celoxica.com Page 70
The logical formatting operation creates a logical address map on the third valid block in
the card. This is to allow for corrupt blocks near the start of the card; the CIS/IDI fields
are on the first valid block. For instance, if physical blocks 0 and 3 were corrupt, the
SmartMedia card would have the following structure:
Block 0: Corrupt
Block 1: CIS/IDI (1st valid block)
Block 2: Valid block (blank)
Block 3: Corrupt
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 map. To set a logical address,
use
RC200SmartMediaSetLogicalAddress().
You can format a card for physical addressing, using
RC200SmartMediaFormat(). To set
a physical address, use
RC200SmartMediaSetAddress().
For information on how the physical layer control works, or to target
SmartMedia without using the PSL, refer to the RC200 Hardware and Installation
Guide, the documentation for your SmartMedia card, or
http://www.ssfdc.or.jp/english/.
Checking for a logical address map
extern macro proc RC200SmartMediaCheckLogicalFormat (ResultPtr);