dxpwny
Advanced Member level 4
I've been playing with CH375 (hopefully this link to datasheet works for you: https://images.100y.com.tw/pdf_file/34-WCH-CH375.pdf.
I am using C8051F340 and the parallel interface to the board like this one: **broken link removed**
I believe I have communications proper as I can send command which results in an interrupt back from the device, then read from the device, and the interrupt is cleared - as described in the datasheet.
The problem is I have no confidence in any of the values I read - other then the return from the GET_IC_VER command (always a 01). The datasheet is not that clear about how to initialize it - I have tried a variety of commands in different order, and the only status value I can read back is 22 hex.
I have not bothered to try any of the other commands that return size, etc, thinking the most basic command should work before I move on. I've tried 3 boards, 4 USB FLASH drives (Fat32, 16), and a few mice, and keyboards. All the same - every status value read back is 22 hex.
I mistakenly ordered the 375s ... I am getting 376s soon - they have built in fat32 support.
I have tried varying delays in between command and status read, no change. I may try the serial interface as that is a bit simpler - datasheet suggests the only signals involved there are tx, rx, and INT (no address pin).
I have seen various code fragments online - nothing suggesting my procedures are invalid.
Appreciate any advice.
I am using C8051F340 and the parallel interface to the board like this one: **broken link removed**
I believe I have communications proper as I can send command which results in an interrupt back from the device, then read from the device, and the interrupt is cleared - as described in the datasheet.
The problem is I have no confidence in any of the values I read - other then the return from the GET_IC_VER command (always a 01). The datasheet is not that clear about how to initialize it - I have tried a variety of commands in different order, and the only status value I can read back is 22 hex.
I have not bothered to try any of the other commands that return size, etc, thinking the most basic command should work before I move on. I've tried 3 boards, 4 USB FLASH drives (Fat32, 16), and a few mice, and keyboards. All the same - every status value read back is 22 hex.
I mistakenly ordered the 375s ... I am getting 376s soon - they have built in fat32 support.
I have tried varying delays in between command and status read, no change. I may try the serial interface as that is a bit simpler - datasheet suggests the only signals involved there are tx, rx, and INT (no address pin).
I have seen various code fragments online - nothing suggesting my procedures are invalid.
Appreciate any advice.