Img : Parameter Set Image; Sum : Check Sum - Casio PX-320 Implementation Manual

Midi implementation
Hide thumbs Also See for PX-320:
Table of Contents

Advertisement

7
data0:
0
[bit06]
data1:
0
[bit13]
data2:
0
[bit20]
data3:
0
[bit27]
data4:
0
16.3.15

img : Parameter Set Image

Format: 0dddddddB
For a bulk data transfer operation, the parameter set data to be transferred is read sequentially in 16-bit units starting from
the top address. Read values are divided into 3-byte segments as shown below, and then sent in sequence.
The following is the conversion format, which is the same as the individual parameter 16-bit transfer detailed above.
16-bit Memory Image
MSB: abccccccB
LSB: cdddddddB
data0: 0dddddddB
data1: 0cccccccB
data2: 000000abB
Parameter Set Packet Division
The maximum image size of the parameter set that can be sent with one packet is 128 bytes. When data that exceeds 128
bytes is transferred, data is always divided into 128-byte units, except for the final packet. Because of this, the data in
received packets can be stored in an areas the size of [Parameter Set Start Address] + [Packet Number] × 128.
The img length is the img length indicated by len multiplied by 3. This means that the data length is always a multiple
of 3. Note, however, that a parameter set of 128 bytes or less can be sent using a single packet, and anything greater than
128 bytes is divided among multiple packets. This means that the maximum length "data" field is 128/2 × 3 = 192 bytes.
Only one parameter set can be transferred per session, and data from different parameter sets cannot be mixed within a
single packet, even when sending multiple parameter sets. Different parameter sets are always divided into separate packets.
16.3.16

sum : Check Sum

Format: 0sssssssB
In this case, this "sum" field contains a value, which, when added to the total value of the "img" field, makes the lower
seven bits 0.
The receiving side checks if this is true, and performs error handling (re-request, etc.) if it is not.
6
5
[bit05]
[bit04]
[bit12]
[bit11]
[bit19]
[bit18]
[bit26]
[bit25]
0
0
0cccccccB
000000abB
4
3
[bit03]
[bit02]
[bit10]
[bit09]
[bit17]
[bit16]
[bit24]
[bit23]
0
[bit31]
[bit30]
33
2
1
[bit01]
[bit00]
[bit08]
[bit07]
[bit15]
[bit14]
[bit22]
[bit21]
[bit29]
[bit28]
0

Advertisement

Table of Contents
loading

Table of Contents