Author Topic: MCU to replace CH376  (Read 4183 times)

0 Members and 1 Guest are viewing this topic.

Offline Bruce AbbottTopic starter

  • Frequent Contributor
  • **
  • Posts: 628
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
MCU to replace CH376
« on: January 14, 2016, 06:50:52 pm »
I have interfaced a CH376 USB module to an old Z80 based home computer. It's working well except for a few niggles. In particular, when reading a file it pauses for up to 2ms between blocks. This reduces read speed, but more importantly makes it hard to play WAV files smoothly. I have implemented a double-buffering routine on the Z80, but this uses up a lot of CPU time and limits what I can do with it. If only the module was able to double-buffer internally, the Z80 could simply read the file at maximum speed without having to waste time buffering it.

So I am looking at reproducing the CH376's functions with another MCU. The requirements are:-

1. 8 bit parallel interface to Z80 bus, with CE, /WR, /RD and A0 inputs.

1. All Z80 bus signals must be 5V tolerant (either natively, or using a minimum number of level conversion chips).

2. USB stick or SD Card read/write using FAT filesystem.

3. Double-buffered reading of media so that data can be continuously streamed to the Z80 at up to 300kB/s.
   
4. Should not cost much more than a CH376 module (US$8).

5. In a package that can be soldered by hand (TQFP or SOIC preferred).

6. Example code written in C or assembler which I can build on that actually works, and doesn't need a bloated and buggy framework.

I currently have four MCUs that might do the job - an STM32F103Ct6 dev board, a Cypress CY8KIT-049-4200 board, a PIC32MX150F128D chip, and a PIC24FJ64GA104. Of these the PSOC 4200 seems like the best choice because it runs on 5V, but the IDE is slow and having to create peripherals with their HDL is a pain. I have connected an SD Card to the STM32 board and got some basic code working, but I don't want to go any further if it's not going to work out.

So my question is, which of these chips do you guys think would be the best choice, and why? Or is there something else out there that might do a better job?
     
       
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->