Write program (com = 14 – Sharp Z-336J User Manual

Page 112

Advertising
background image

9-35

Chapter 9: Message transfers

9

Write program (COM = 14

(H)

)

[Format]

COM

= 14

(H)

PSEG

= Program segment (08

(H)

, 09

(H)

)

See page 9-20.

PADR

L, H

= Program address (0000

(H)

to 7DFF

(H)

)

See page 9-20.

L

L, H

= Data length (number of words)

DATA

1 to N

= Write data (2 bytes = one step)

[Function]
- Write a program with a length (number of words) shown by L, from address PSEG, PADR.
- Up to 512 words can be write at a time.

[Execution condition]
- Write enable mode

: Mode 2

- PC operation status

: Stopping

[Example]
- Write the contents below in program address 000000 to 000002 (file number 8).

Note: Inquiries concerning the bit configuration of programs cannot be accepted.

Ë

Command

Ë

Response

COM

PSEG PADR

L

PADR

H

L

L

L

H

DATA

1

DATA

N

L

H

COM

RSLT PSEG PADR

L

PADR

H

L

L

Top program

address

Top program

address

Address

000000 contents

Address

000001 contents

Address

000002 contents

Ë

Command

Ë

Response

Data length

Data length

14

08

00

00

03

00

00

B8

08

91

00

80

14

00

08

00

00

03

00

Advertising
This manual is related to the following products: