From 4b6025439af1e42d20c68f68f7fefe9c1715e5d1 Mon Sep 17 00:00:00 2001 From: Andrew Makousky Date: Thu, 31 Dec 2020 10:05:12 -0600 Subject: [PATCH] Add useful datasheets and info when working with BBU. --- hardware/fpga/bbu/docs/.gitignore | 1 + hardware/fpga/bbu/docs/README.md | 19 ++++++++++++ hardware/fpga/bbu/docs/VIA.txt | 30 ++++++++++++++++++ hardware/fpga/bbu/docs/getsheets.sh | 10 ++++++ hardware/fpga/bbu/docs/index.md | 32 ++++++++++++++++++++ hardware/fpga/bbu/docs/stdlogic/.gitignore | 1 + hardware/fpga/bbu/docs/stdlogic/getsheets.sh | 10 ++++++ hardware/fpga/bbu/docs/stdlogic/index.md | 23 ++++++++++++++ 8 files changed, 126 insertions(+) create mode 100644 hardware/fpga/bbu/docs/.gitignore create mode 100644 hardware/fpga/bbu/docs/README.md create mode 100644 hardware/fpga/bbu/docs/VIA.txt create mode 100755 hardware/fpga/bbu/docs/getsheets.sh create mode 100644 hardware/fpga/bbu/docs/index.md create mode 100644 hardware/fpga/bbu/docs/stdlogic/.gitignore create mode 100755 hardware/fpga/bbu/docs/stdlogic/getsheets.sh create mode 100644 hardware/fpga/bbu/docs/stdlogic/index.md diff --git a/hardware/fpga/bbu/docs/.gitignore b/hardware/fpga/bbu/docs/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/hardware/fpga/bbu/docs/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/hardware/fpga/bbu/docs/README.md b/hardware/fpga/bbu/docs/README.md new file mode 100644 index 0000000..8c69d18 --- /dev/null +++ b/hardware/fpga/bbu/docs/README.md @@ -0,0 +1,19 @@ +# Associated Documentation + +These are references to useful reference documentation when working +with the BBU design, mostly datasheets. See `index.md` for links +with descriptions and `getsheets.sh` for a script to download them all +locally. + +Also, it's helpful to consult the software pin assignments on the VIA +when working with the BBU, I've created `VIA.txt` as a quick reference +for this, so you don't have to read through several pages of _Guide to +the Macintosh family hardware_. + +---------- + +Wondering what the cryptic D-P SAMI option in the Macintosh SE +schematics is? This has to do with the fact that row 1 and row 2 in +resistored versus jumpered Macintoshes behave differently. row 2 +(SIMM 3 and 4) contains the larger RAM SIMMs in jumpered versions, row +1 (SIMM 1 and 2) contains the larger RAM SIMMs in resistored versions. diff --git a/hardware/fpga/bbu/docs/VIA.txt b/hardware/fpga/bbu/docs/VIA.txt new file mode 100644 index 0000000..ca33ad6 --- /dev/null +++ b/hardware/fpga/bbu/docs/VIA.txt @@ -0,0 +1,30 @@ +Macintosh SE VIA pin assignments. + +VIA Data register A: + +7 Input vSCCWrReq 0 = SCC Wait/Request, channel A or B +6 Output vPage2 0 = alternate screen buffer, 1 = main screen buffer +5 Output vHeadSel Floppy disk state-control line SEL +4 Output vDriveSel 0 = upper internal floppy disk drive, 1 = lower +3 Output vSync 1 = synchronous model support, channel A +2 Output vSound(2) Sound volume +1 Output vSound(1) { (111 = maximum, 000 = minimum; +0 Output vSound(0) bit 2 = most significant bit ) + +VIA Data register B: + +7 Output vSndEnb 0 = sound enabled +6 Output vH4 0 = SCSI IRQ enabled +5 Output vFDesk2 ADB state input 1 (ST1) +4 Output vFDesk1 ADB state input 0 (ST0) +3 Input vFDBInt 0 = ADB interrupt +2 Output rTCEnb 0 = real-time clock enabled +1 Output rtcCLK Real-time clock's serial data-clock line +0 In or Out rtcData Real-time clock's serial data line + +VIA Peripheral Control register: + +CB2 7-5 Apple Desktop Bus data +CB1 4 Apple Desktop Bus clock +CA2 3-1 One-second interrupt +CA1 0 Vertical blanking interrupt diff --git a/hardware/fpga/bbu/docs/getsheets.sh b/hardware/fpga/bbu/docs/getsheets.sh new file mode 100755 index 0000000..5988e0e --- /dev/null +++ b/hardware/fpga/bbu/docs/getsheets.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +curl -L -O 'https://www.nxp.com/docs/en/reference-manual/M68000PRM.pdf' +curl -L -O 'https://www.nxp.com/docs/en/reference-manual/MC68000UM.pdf' +curl -L -O 'http://www.weihenstephan.org/~michaste/pagetable/mac/Inside_Macintosh.pdf' +curl -L -O 'http://koyado.com/Heathkit/Z67-IDE-plus_files/NCR_5380_SCSI_Interface_Chip_Design_Manual_May85.pdf' +curl -L -o 'http://www.applelogic.org/files/Z8530UM.pdf' +curl -L -O 'http://archive.6502.org/datasheets/rockwell_r6522_via.pdf' +curl -L -O 'http://www.assmann-wsw.com/fileadmin/datasheets/ASS_0981_CO.pdf' +curl -L -O 'https://media.digikey.com/pdf/Data%20Sheets/Rohm%20PDFs/MSM51V17405F.pdf' diff --git a/hardware/fpga/bbu/docs/index.md b/hardware/fpga/bbu/docs/index.md new file mode 100644 index 0000000..87c1798 --- /dev/null +++ b/hardware/fpga/bbu/docs/index.md @@ -0,0 +1,32 @@ +MC68000 CPU datasheets: + +20100924/http://www.freescale.com/files/archives/doc/ref_manual/M68000PRM.pdf +20100925/http://www.freescale.com/files/32bit/doc/ref_manual/MC68000UM.pdf + +MC68000 CPU datasheets UPDATED URLS: + +20201230/https://www.nxp.com/docs/en/reference-manual/M68000PRM.pdf +20201230/https://www.nxp.com/docs/en/reference-manual/MC68000UM.pdf + +Inside Macintosh, the old printed volumes mainly pertaining to the +Macintosh 512k but still a very useful reference: + +20110506/http://www.pagetable.com/?p=50 +20110506/http://www.weihenstephan.org/~michaste/pagetable/mac/Inside_Macintosh.pdf + +For newer info, see the online website format in the Internet Archive +Wayback Machine. + +20190525/https://web.archive.org/web/20000306231850/http://developer.apple.com/techpubs/mac/Devices/Devices-122.html + +Next, the datasheets for all the other chips on the Macintosh SE Main +Logic Board: 6522 VIA, Zilog 8530 SCC, NCR 5380 SCSI, 84-PLCC socket +pinout for mapping the BBU pinout. And, for the sake of understanding +how to program asynchronous DRAM timings, a random asynchronous DRAM +chip's datasheet. + +20201018/http://koyado.com/Heathkit/Z67-IDE-plus_files/NCR_5380_SCSI_Interface_Chip_Design_Manual_May85.pdf +20201116/http://www.applelogic.org/files/Z8530UM.pdf +20201117/http://archive.6502.org/datasheets/rockwell_r6522_via.pdf +20201018/http://www.assmann-wsw.com/fileadmin/datasheets/ASS_0981_CO.pdf +20201018/https://media.digikey.com/pdf/Data%20Sheets/Rohm%20PDFs/MSM51V17405F.pdf diff --git a/hardware/fpga/bbu/docs/stdlogic/.gitignore b/hardware/fpga/bbu/docs/stdlogic/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/hardware/fpga/bbu/docs/stdlogic/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/hardware/fpga/bbu/docs/stdlogic/getsheets.sh b/hardware/fpga/bbu/docs/stdlogic/getsheets.sh new file mode 100755 index 0000000..af6e3dd --- /dev/null +++ b/hardware/fpga/bbu/docs/stdlogic/getsheets.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +curl -L -o NATLS12110-1.pdf 'https://4donline.ihs.com/images/VipMasterIC/IC/NATL/NATLS12110/NATLS12110-1.pdf?hkey=EC6BD57738AE6E33B588C5F9AD3CEFA7' +curl -L -o sn74f253.pdf 'https://www.ti.com/lit/ds/symlink/sn74f253.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606010224568' +curl -L -o sn74ls393.pdf 'https://www.ti.com/lit/ds/symlink/sn74ls393.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606017658244' +curl -L -o sn74ls163a.pdf 'https://www.ti.com/lit/ds/symlink/sn74ls163a.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606016019934' +curl -L -o sn74ls166a.pdf 'https://www.ti.com/lit/ds/symlink/sn74ls166a.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606017431128' +curl -L -o sn74ls245.pdf 'https://www.ti.com/lit/ds/symlink/sn74ls245.pdf?ts=1605988214907&ref_url=https%253A%252F%252Fen.wikipedia.org%252F' +curl -L -o sn74ls258b.pdf 'https://www.ti.com/lit/ds/symlink/sn74ls258b.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606017265143' +curl -L -o sn74f257.pdf 'https://www.ti.com/lit/ds/symlink/sn74f257.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606022173419' diff --git a/hardware/fpga/bbu/docs/stdlogic/index.md b/hardware/fpga/bbu/docs/stdlogic/index.md new file mode 100644 index 0000000..3b11561 --- /dev/null +++ b/hardware/fpga/bbu/docs/stdlogic/index.md @@ -0,0 +1,23 @@ +Macintosh Plus standard logic chips, account for their datasheets and +wiring. + +* F04 -- hex inverter +* F253 -- 1-of-4 address muxes +* LS161 -- 4-bit binary counter +* LS166 -- PISO shift register +* LS245 -- octal bus transceivers +* LS257 -- quadruple 2-to-1 line RAS/CAS multiplexer +* LS393 -- 4-bit dual binary counter + +Additional chip datasheets for the Macintosh SE: + +* F257 -- quadruple 2-to-1 RAS/CAS multiplexer + +20201121/https://4donline.ihs.com/images/VipMasterIC/IC/NATL/NATLS12110/NATLS12110-1.pdf?hkey=EC6BD57738AE6E33B588C5F9AD3CEFA7 +20201121/https://www.ti.com/lit/ds/symlink/sn74f253.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606010224568 +20201121/https://www.ti.com/lit/ds/symlink/sn74ls393.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606017658244 +20201121/https://www.ti.com/lit/ds/symlink/sn74ls163a.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606016019934 +20201121/https://www.ti.com/lit/ds/symlink/sn74ls166a.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606017431128 +20201121/https://www.ti.com/lit/ds/symlink/sn74ls245.pdf?ts=1605988214907&ref_url=https%253A%252F%252Fen.wikipedia.org%252F +20201121/https://www.ti.com/lit/ds/symlink/sn74ls258b.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606017265143 +20201121/https://www.ti.com/lit/ds/symlink/sn74f257.pdf?HQS=TI-null-null-digikeymode-df-pf-null-wwe&ts=1606022173419