[日本語]
L85のxoutの引数として、R2~R9の32バイト分データとR10~R11に書き込み先アドレスを設定し、その合計が38であることは、
理解しています。
ただし、32バイト未満のデータをDMA転送(xout)する場合は、ユーザーズガイドの
「6.4.6.3.1.6 XFR2VBUS Programming Model」にある
"XOUT (6 Byte address or 4 Byte address) then XOUT 32 Byte/ 8 Byte/ 4 Byte/ 1 Byte data"を使用する方法
だと認識する。
以下のコードで合っているでしょうか?
xin RXL2_SIDEA, &r2, 8
zreo r10, 8
ldi32 r10, (WR_ADDR)
xout xfr2vbus_wr0 &r10 6
xout xfr2vbus_wr0 &r2 8
[English]
I understand that as an argument for L85's xout, 32 bytes of data from R2 to R9 and the write destination
address are set to R10 to R11, making the total 38.
However, when performing DMA transfer (xout) of data less than 32 bytes, I recognize that the method is to
use "XOUT (6 Byte address or 4 Byte address) then XOUT 32 Byte/ 8 Byte/ 4 Byte/ 1 Byte data" in
"6.4.6.3.1.6 XFR2VBUS Programming Model" in the user's guide.
Is the code below correct?
xin RXL2_SIDEA, &r2, 8
zreo r10, 8
ldi32 r10, (WR_ADDR)
xout xfr2vbus_wr0 &r10 6
xout xfr2vbus_wr0 &r2 8