Sfc 222 Mmc_Wr_F - Adam 821x Manual

Table of Contents

Advertisement

CPU ADAM 821x

SFC 222 MMC_WR_F

Description
Parameters
PTR
OFFSET
BUSY
RET_VAL
ADAM 8000 Manual CPU 821x – Rev 1.1
Via the SFC 222, you may write to the MMC. For read and write accesses
to the MMC, you firstly have to open the file with SFC 220 and it has to be
unfragmentated.
For more detailed information to this and to the restrictions see the
description of the SFC 220.
This variable of the type pointer points to a data area from where on the
data starts that will be written to the MMC.
This defines the beginning of the data inside the file on the MMC where the
data is written to.
During data transfer this Bit remains set. The Bit is reset as soon as the
data transfer is complete.
Return Value
Word, where a diagnostic/error message is returned to. 0 means OK. The
following messages may be set:
Value
Description
0000h no errors
8001h No or wrong MMC
8002h No FAT found on MMC
9001h Pointer value is wrong
9002h Bit reading has been tried (variable of Boolean type). Bit reading
is not possible.
9003h File length exceeded
9004h Sector limit of 512 has been tried to overrun. Sector overrun
reading is not possible.
B000h An internal error occurred.
Chapter 7 Integrated OBs, SFBs and SFCs
11
21
51
x
x
x
7-11

Advertisement

Table of Contents
loading

Table of Contents