SD card based ProFile replacement for IIe
Go to file
Unknown 4cd6a76790 Fix for non-SDHC SDV2 2017-12-16 15:19:07 +01:00
Datasheets Schematic updated 2017-11-30 12:14:54 +01:00
Hardware Gerber for V1.1 2017-12-07 18:42:10 +01:00
Images AddressDecoder testbench 2017-10-12 20:37:37 +02:00
VHDL SDHC flag added to CPLD 2017-11-25 19:42:33 +01:00
src Fix for non-SDHC SDV2 2017-12-16 15:19:07 +01:00
.gitattributes Update .gitattributes 2017-08-02 19:50:12 +02:00
.gitignore VS2015 project added 2017-11-26 00:19:35 +01:00
AppleIISd.bin Fix for non-SDHC SDV2 2017-12-16 15:19:07 +01:00
AppleIISd.bom.txt Gerber for V1.1 2017-12-07 18:42:10 +01:00
AppleIISd.hex Fix for non-SDHC SDV2 2017-12-16 15:19:07 +01:00
AppleIISd.json Timing diagram added 2017-10-09 08:49:22 +02:00
AppleIISd.pdf Schematic PDF updated 2017-12-02 00:46:29 +01:00
AppleIISd.sln VS2015 project added 2017-11-26 00:19:35 +01:00
AppleIISd.vcxproj README.md updated 2017-12-01 14:26:18 +01:00
AppleIISd.vcxproj.filters README.md updated 2017-12-01 14:26:18 +01:00
README.md README.md updated 2017-12-01 14:26:18 +01:00
makefile Change in makefile and folder structure 2017-11-30 13:00:06 +01:00

README.md

AppleIISd

SD card based ProFile replacement for enhanced Apple IIe and IIgs computers

The AppleIISd is a SD card based replaced for the ProFile harddrive. In contrast to other SD card based devices, this card does not replace a Disk II drive. Data is saved directly onto the SD card, not via images on a FAT system, like on other cards. The SD card is accessable with CiderPress.

A Xilinx CPLD is used as a SPI controller and translates, together with the ROM driver, SD card data to/from the Apple IIe. The VHDL source is based on SPI65/B by André Fachat.

The assembler sources are written for CC65. The schematics are available as PDF.

Features

  • works with ProDOS and GS/OS
  • up to 64MB storage space (2x 65535 blocks)
  • ProDOS driver in ROM
  • Auto boot
  • Access LED
  • Card detect and write protect sensing
  • Skip boot when Open-Apple key is pressed

Requirements

The AppleIISd requires an enhanced IIe or IIgs computer. The ROM code uses some 65c02 opcodes and will therefore not work on a II, II+ or unenhanced IIe. It has been tested in the following combinations:

  • Apple IIgs Rom 01, GS/OS 6.0.4
  • Apple IIgs Rom 01, Prodos 2.4.1
  • Apple IIgs Rom 01, Prodos 1.9
  • Apple IIe enhanced, 128k, Prodos 2.4.1
  • Apple IIe enhanced, 128k, Prodos 1.9
  • Apple IIe enhanced, 64k, Prodos 1.9

When a 2732 type ROM is used, the binary image has to be programmed at offset 0x800, because A11 is always high for compatibility with 2716 type ROMs.

Building the sources

Be sure to have the newest version of CC65 (V2.16) and some kind of Make instaled, then type one of the following comands:

make                            # generate binaries
make OPTIONS=mapfile,listing    # generate mapfile and listing, too
make clean                      # delete binaries

Alternatively use the VisualStudio solution.

Timing

The clock of the SPI bus SCK may be derived from either Phi0 or the 7M clock. Additionally, the divisor may be 2 to 8.

The following measurements were taken with the divisor set to 2, resulting in fSCK of 500kHz and 3.5MHz. Reading of a byte requires that a dummy byte is sent on the bus, before the answer can be read. Therefore the measurement is the time between sending the byte and receiving the answer. The measurement for reading of a whole 512 byte block includes the SD card commands to do so.

Clock Byte Block Image
Phi0 17.7µs 28.8ms Byte, Block
7M 3.9µs 15ms Byte, Block

This shows that the required to read a single byte can be reduced significantly by increasing fSCK (as one might have guessed). Reading at 500kHz actualy requires NOPs to be inserted (or checking the TC bit in the STATUS register), while reading at 3.5MHz can be done immediately.

The time for reading a 512 byte block could only be halved, but there are for sure opportunities for optimization in the code surrounding the reading.

* single byte @ 500kHz
LDA #$FF
STA $C0C0
NOP
NOP
NOP
NOP
NOP
NOP
NOP
LDA $C0C0

* single byte @ 3.5MHz
LDA #$FF
STA $C0C0
LDA $C0C0

TODOs

  • Much more testing
  • SRAM option (may never work, though)
  • Enable 4 or 6 volumes under GS/OS
  • Use 28 pin socket to support other EPROMS than 2716 and 2732

Known Bugs

  • Does not work with some Z80 cards present

Front_Img