5] reading system memory, 6] writing system memory, 5] reading system memory -6 – Sharp JW-21MN User Manual

Page 45: 6] writing system memory -6

Advertising
background image

10-6

[5] Reading system memory

Read the specified number of bytes of data from the specified address in system memory.
[Write mode assignment]: None
[Communication format]

Command

Response

[Ex.] To read data from system memory addresses #201 and #202

(201

(8)

= 81

(H)

, Data in cells: Hexadecimal notation)

Command

Response

[6] Writing system memory

Write the specified number of bytes of data from the specified address in system memory.
[Write mode assignment]: 2 (When the PC has been stopped with a "halt PC operation F8

(H)

"

command)

[Communication format]

Command

Response

[Ex.] To write data 01

(H)

, 01

(H)

to data from system memory addresses #201 and #202

(201

(8)

= 81

(H),

Data in cells: Hexadecimal notation)

Command

Response

2B

00

43

4C

41

43

54

00

08

81

00

02

00

ACK

CMD SUB

ATTR SEG

SADR

N

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

SEG

SADR

N

2B

00

43

4C

41

43

44

00

08

81

00

02

00

01

01

ACK

CMD

SUB

ATTR

SEG

SADR

N

#201

#202

Read data

"+"

ACK

"C"

"L"

"A"

CMD

SUB

ATTR

SEG

SADR

N

D1

DN

2B

43

4C

41

43

44

00

08

81

00

02

00

"+"

"C"

"L"

"A"

CMD SUB ATTR

SEG

SADR

N

"+"

"C"

"L"

"A"

CMD SUB

ATTR SEG

SA DR

N

D1

DN

"+"

ACK

"C"

"L"

"A"

CMD

SUB ATTR SEG

SA

DR

N

2B

43

4C

41

43

54

00

08

81

00

02

00

01

01

"+"

"C"

"L"

"A"

CMD SUB ATTR

SEG

SADR

N

#201 #202

Write data

Symbol

Data

Details

CMD

43

(H)

Function code

SUB

44

(H)

Sub code

SEG

08

(H)

Read out segment

SADR

0000 to 00FF

(H)

Read out address #000 to #377

(8)

(2 byte data, in order of L and

H)

N

0001 to 0100

(H)

Number of read out bytes (2 byte data, in order of L and H)

D1 to DN See the example

Reading data of system memory (1 byte data x number of

reading data bytes)

Symbol

Data

Details

CMD

43

(H)

Function code

SUB

54

(H)

Sub code

SEG

08

(H)

Write segment

SADR

0000 to 00FF

(H)

Write address #000 to #377

(8)

(2 byte data, in order of L and H)

N

0001 to 0100F

(H)

Number of writing bytes (2 byte data, in order of L and H)

D1 to DN See the example

Write data of system memory (1 byte data x number of write
data bytes)

Advertising