I've been tinkering with the MC Reader I showed you a bit ago, and I went ahead with replacing the stock ATmega-based module with a LGT8F328P (I just wanted to play with it at 32Mhz), not without finding some issues that I've addressed through these changes:
7e6c128e7a52d597dbe437ad75629cea0a6232d4: The delayMilliseconds implementation for lgt8fx boards is handled by LaZsolt/delayMicroseconds and on its README file for lgt8fx it states that you should avoid zero delay. There are some calls to SendCommand with zero delay, and those were making operations painfully slow. Just adding an if conditional did the trick to not execute it if there is no delay required.
113d1e83890e7918809900c8e42f0c9a106b0aa5: When using SPI the first card read always failed, and subsequent reads were working, but that was certainly an unexpected behavior. I tried to run it through SoftTransfer and it worked flawlessly right away!
Tested it with an original PS1 MC and a PicoMemcard. Also, the ARDUINO_AVR_LARDU_328E name was obtained from the lgt8fx wiki.
Just to note, after I made it work I noticed https://github.com/ShendoXT/memcarduino/issues/28 but I never had flashing issues (other than flashing them at 57600) or it not being detected as Memcarduino. They may have changed the bootloader, since my board looks identical to the one shown at the issue.
Some pics
Ali Board
![IMG_1477](https://github.com/user-attachments/assets/eb5b1967-ccfc-476a-afd1-82b6a5d938f2)
![IMG_1478](https://github.com/user-attachments/assets/960a2afb-5248-48d6-85b5-ef0dfb8ae7e3)
Soldered LGT8F328P (some pins only as anchor points)
![IMG_1482](https://github.com/user-attachments/assets/61990610-2ffc-4ea5-a772-7a35afa910f2)
I've been tinkering with the MC Reader I showed you a bit ago, and I went ahead with replacing the stock ATmega-based module with a LGT8F328P (I just wanted to play with it at 32Mhz), not without finding some issues that I've addressed through these changes:
delayMilliseconds
implementation for lgt8fx boards is handled by LaZsolt/delayMicroseconds and on its README file for lgt8fx it states that you should avoid zero delay. There are some calls toSendCommand
with zero delay, and those were making operations painfully slow. Just adding anif
conditional did the trick to not execute it if there is no delay required.SoftTransfer
and it worked flawlessly right away!Tested it with an original PS1 MC and a PicoMemcard. Also, the
ARDUINO_AVR_LARDU_328E
name was obtained from the lgt8fx wiki.Just to note, after I made it work I noticed https://github.com/ShendoXT/memcarduino/issues/28 but I never had flashing issues (other than flashing them at 57600) or it not being detected as Memcarduino. They may have changed the bootloader, since my board looks identical to the one shown at the issue.
Some pics
Ali Board ![IMG_1477](https://github.com/user-attachments/assets/eb5b1967-ccfc-476a-afd1-82b6a5d938f2) ![IMG_1478](https://github.com/user-attachments/assets/960a2afb-5248-48d6-85b5-ef0dfb8ae7e3) Soldered LGT8F328P (some pins only as anchor points) ![IMG_1482](https://github.com/user-attachments/assets/61990610-2ffc-4ea5-a772-7a35afa910f2)