Reading System Memory; Writing System Memory - Sharp JW-21MN User Manual

Me-net module
Table of Contents

Advertisement

[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
Symbol
CMD
SUB
SEG
SADR
N
D1 to DN See the example
[Ex.] To read data from system memory addresses #201 and #202
(201
(8)
Command
Response
10

[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
[Communication format]
Command
Response
Symbol
CMD
SUB
SEG
SADR
N
D1 to DN See the example
[Ex.] To write data 01
(201
(8)
Command
Response
"+"
"C"
"L"
"A"
"+"
ACK
"C"
"L"
Data
43
Function code
(H)
44
Sub code
(H)
08
Read out segment
(H)
Read out address #000 to #377
0000 to 00FF
(H)
H)
0001 to 0100
Number of read out bytes (2 byte data, in order of L and H)
(H)
Reading data of system memory (1 byte data x number of
reading data bytes)
= 81
, Data in cells: Hexadecimal notation)
(H)
2B
43
4C
41
43
"+"
"C"
"L"
"A"
CMD SUB ATTR SEG
2B
00
43
4C
41
ACK
command)
"+"
"C"
"L"
"A"
"+"
ACK
"C"
"L"
Data
43
Function code
(H)
54
Sub code
(H)
08
Write segment
(H)
0000 to 00FF
Write address #000 to #377
(H)
0001 to 0100F
Number of writing bytes (2 byte data, in order of L and H)
(H)
Write data of system memory (1 byte data x number of write
data bytes)
, 01
to data from system memory addresses #201 and #202
(H)
(H)
= 81
Data in cells: Hexadecimal notation)
(H),
2B
43
4C
41
"+"
"C"
"L"
"A"
2B
00
43
4C
ACK
CMD
SUB
ATTR
SEG
"A"
CMD
SUB
ATTR
Details
(8)
44
00
08
81
00
SADR
43
44
00
08
81
CMD SUB ATTR SEG
CMD SUB ATTR SEG
SA DR
"A"
CMD
SUB ATTR SEG
Details
(2 byte data, in order of L and H)
(8)
43
54
00
08
81
CMD SUB ATTR SEG
SADR
41
43
54
00
08
CMD SUB
ATTR SEG
10-6
SADR
N
SEG
SADR
(2 byte data, in order of L and
02
00
N
00
02
00
01
SADR
N
#201 #202
Read data
N
D1
DN
SA
DR
N
00
02
00
01
01
N
#201 #202
Write data
81
00
02
00
SADR
N
−−−
N
D1
−−−
−−−
DN
−−−
01
"
(H)

Advertisement

Table of Contents
loading

Table of Contents