The correct location for the user's libraries is the libraries sub-folder of the sketchbook folder. The sketchbook folder location is set in the Arduino IDE at File > Preferences > Sketchbook location.
Not for lack of trying, but I haven't understood the pinout spreadsheet's format enough to trace the clockgen yet. More likely I just don't know all the names for the pertinent connections.
Anyway, I'd appreciate it, and try again, if you're willing to point out a card slot with the correct pinout.
I wrote a little Sketch to calibrate the Clock Generator for the snesCIC.https://www.dropbox.com/s/uyhpnng9zgfl2ja/clkcal.zip?dl=1Usage: Upload Sketch, then connect SNES Pin 56(CIC Clock/CLK2) to SNES Pin 43(A18/Arduino D47) using some sort of wire. The correction factor can then be put into SNES.ino and/or NP.ino: clockgen.init(SI5351_CRYSTAL_LOAD_8PF, 0, -16000);
i am a little confused. is there a better write up on how to do this. i cant seem to read SA1 carts.
21.477MHz Clock 01 32 /WRAM EXPAND 02 33 REFRESH PA6 03 34 PA7 /PARD 04 35 /PAWR GND 05 36 GNDF A11 06 37 A12r A10 07 38 A13o A9 08 39 A14n A8 09 40 A15t A7 10 41 BA0 A6 11 42 BA1o A5 12 43 BA2f A4 13 44 BA3 A3 14 45 BA4c A2 15 46 BA5a A1 16 47 BA6r A0 17 48 BA7t /IRQ 18 49 /CART D0 19 50 D4 D1 20 51 D5 D2 21 52 D6 D3 22 53 D7 /RD 23 54 /WR CIC out data (p1) 24 55 CIC out data (p2) CIC in data (p7) 25 56 CIC in clock (p6) /RESET 26 57 CPU_CLOCK Vcc 27 58 Vcc PA0 28 59 PA1 PA2 29 60 PA3 PA4 30 61 PA5 Left Audio Input 31 62 Right Audio Input
I have overhauled the clkcal tool. Also starting with Cart_Reader V5.6 the correction factor will be read from the SD card thanks to Kreeblah.So all you have to do is:- download V5.6_beta: https://www.dropbox.com/s/qt9dnsfn08sgjxn/V5.6_Portable_beta.zip?dl=1- follow CLKCAL.txt to adjust the clock- follow README.txt to flash V5.6And as already mentioned you need a good power supply like an original Apple USB charger and you will also need the additional 470uF cap between GND and VCC on the Cart Reader.Also worth noting is that currently in SNES.ino the clock gen gets initialized with 1Mhz/4Mhz instead of the correct clocks at first. For me that made unlocking SA1 easier but that might not be the case for everyone. So if nothing works try setting the clocks to the correct values there, which are the same as in line 416.
Be sure to check the CRC of the SA1 ROMs. The Cart Reader only calculates the internal checksum which only verifies a small portion of the ROM.To calculate the CRC over the whole ROM you can use something like HashtabAnd compare the CRC to the one on the no-intro site.