beautypg.com

Write in register (com = 34 – Sharp Z-336J User Manual

Page 107

background image

9-30

Chapter 9: Message transfers

9

Write in register (COM = 34

(H)

)

[Format]

COM

= 34

(H)

DSEG

= Segment (00 to 07, 10 to 2C

(H)

)

See page 9-20.

DADR

L, H

= Byte address (0000

(H)

to FFFF

(H)

)

See page 9-20.

L

L, H

= Data length (number of bytes)

DATA

1 to N

= Write data

[Function]
- Write the register data with the length shown by L, starting from DSEG, DADR.
- Up to 1024 bytes can be write at a time.

[Execution condition]
- Write enable mode

: Mode 1 and mode 2

- PC operation status

: Stopping, operating

[Example]
- Write 00

(H)

, 4F

(H)

, 32

(H)

, and 01

(H)

to registers 09000 to 09003.

Ë

Command

Ë

Response

COM DSEG

COM

RSLT DSEG DADR

L

DADR

H

L

L

DADR

L

DADR

H

L

L

L

H

L

H

DATA

1

......

DATA

N

Ë

Command

Ë

Response

Data length

Data length

34

00

00

08

04

00

00

4F

32

01

34

00

00

00

08

04

00

File number 0

Top register

number 09000

File address

0800

(H)

= 004000

(8)

File number 0

Top register

number 09000

File address

0800

(H)

= 004000

(8)

Value at

09000

Value at

09001

Value at

09002

Value at

09003

This manual is related to the following products: