TXZ Family
Flash Memory
2018-06-05
101 / 120
Rev. 2.0
6.6.8. Communication Rules of RAM Transfer Command
This section shows communication rules of RAM transfer. Transfer directions in the table are indicated as follows:
Transfer direction (C
T): From Controller to TXZ
Transfer direction (T
C): From TXZ to Controller
Table 6.14 Communication Rules of RAM Transfer Command
No
Transfer
direction
Transfer data
Description
1
C
T
Operation command data (0x10)
Controller transmits RAM transfer command data (0x10).
2
T
C
ACK response to the operation
command
Normal: 0x10
Abnormal: 0x11
Communication error: 0x18
The target checks received data, and it sends ACK
response data.
If a receive error exists, the target sends ACK response
data “0x18” indicating communication error, and then
returns to the initial state waiting for operation command
data.
If a receive error does not exist, the target checks the
data against operation command data described in “Table
6.6 Operation commands in single boot mode”.
If checking is failed, the target sends ACK response data
“0x11” indicating abnormal state, and then returns to the
initial state waiting for operation command data.
If checking is succeeded, the target sends ACK response
data “0x10” indicating normal state, and then it waits for
next data.
3
C
T
Password length (PLEN) (1 byte)
The controller transmits password length data of the code
flash.
4
C
T
Password length store address
(PNSA) (4 bytes)
The controller transmits the address data where the
password length is stored.
5
C
T
Password store start address
(PCSA) (4 bytes)
The controller transmits the start address where the
password is stored.
6
C
T
Password string
(8 bytes to 255 bytes)
The controller transmits password data of the code flash.
If it has been erased, the controller transmits dummy
data.
7
C
T
CHECKSUM value of transmit
data (No.3 to 6)
The controller calculates the CHECKSUM value of
transmit data (No.3 to 6), and sends them.
For details of CHECKSUM calculation, refer to
“6.6.6.5CHECKSUM Calculation”.
8
T
C
Password length error check,
password store address error
check, password verification, ACK
response to CHECKSUM value.
- Blank: 0x14
- Normal: 0x10
- Abnormal: 0x11
- Communication error: 0x18
The target checks received data, and then it sends ACK
response data.
If a receive error exists, the target sends ACK response
data “0x18” indicating communication error, and then
returns to the initial state waiting for operation command
data.
If a receive error does not exist, the target checks a
CHECKSUM value and password.
For details of password verification, refer to “6.6.6.4.
If password determination is failed, the target sends ACK
response data "0x11" indicating abnormal state, and then
returns to the initial state waiting for operation command
data.
If password determination is succeeded, the target sends
ACK response data
“
0x10
”
indicating normal state, and
then it waits for next transmit data. In the case of blank
products, ACK response data"0x14" is replied, and it waits
for next transmit data.