现在我能访问IDE设备的寄存器了,往设备寄存器里面写数据,然后在读出来,都是正确的。其它的寄存器的访问也是正确的。
但是我往命令寄存器中写EC时,返回512字节的数据,与IDE的技术手册上的不一样。基本是完全不一样的。
不知道是怎么回事?
凭聂工经验,能了解是怎么一回事吗?
返回的数据是:
00 00 00 00 00 00 00 00 07 00 00 00 00 30 00 30 00 20 00 20 00 20 00 00 00 00 07 37 00 20 00 44 .............0.0 18.2.0
00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 00 00 40 00 00 45 00 07 00 03 00 47 e7 . . . . . . . . 18.2.32
00 00 03 00 40 00 40 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 40 11 30 07 00 00 00 00 00 ....@.@......... 18.2.64
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.96
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.128
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.160
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.192
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.224
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.256
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.288
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.320
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.352
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.384
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.416
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.448
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 18.2.480 |