trunk/src/mess/drivers/cat.c
| r243046 | r243047 | |
| 219 | 219 | J3: Floppy Connector |
| 220 | 220 | (standard DIL 34 pin 2-row rectangular connector for mini-shugart/pc floppy cable; pin 2 IS connected somewhere and ?probably? is used for /DISKCHANGE like on an Amiga, with pin 34 being /TRUEREADY?) |
| 221 | 221 | (as opposed to normal ibm pc 3.5" drives where pin 2 is unconnected or is /DENSITY *input to drive*, and pin 34 is /DISKCHANGE) |
| 222 | | J4: 18-pin sip header for keyboard ribbon cable |
| 223 | | (needs tracing to see the VIA hookup order) |
| 222 | J4: 18-pin sip header for keyboard ribbon cable; bottom edge of board is pin 1 |
| 223 | Pins: |
| 224 | 1: GND through 220k resistor r78 |
| 225 | 2: ? phone hook related? anode of diode d7; one of the pins of relay k2; topmost (boardwise) pin of transistor Q10 |
| 226 | 3: 74HCT34 pin |
| 227 | |
| 224 | 228 | J5: locking-tab-type "CONN HEADER VERT 4POS .100 TIN" connector for supplying power |
| 225 | 229 | through a small cable with a berg connector at the other end, to the floppy drive |
| 226 | 230 | (5v gnd gnd 12v) |
| r243046 | r243047 | |
| 232 | 236 | J9: unpopulated DIL 40-pin straight connector for a ROM debug/expansion/RAM-shadow daughterboard |
| 233 | 237 | the pins after pin 12 connect to that of the ROM-LO 27256 pinout counting pins 1,28,2,27,3,26,etc |
| 234 | 238 | the ROM-HI rom has a different /HICE pin which is not connected to this connector |
| 235 | | /LOCE is most likely !(a19|a18)&a15 |
| 236 | | /HICE is most likely !(a19|a18)&!a15 |
| 239 | /LOCE is a15 |
| 240 | /HICE is !a15 |
| 241 | /ROM_OE comes from pin 14 of DECODE_E pal, and is shorted to /ROM_OE' by the cuttable jumper B1 which is not cut |
| 242 | /ROM_OE' goes to the two EPROMS |
| 243 | DECODE_18 is DECODE_E pal pin 18 |
| 237 | 244 | pin 1 (GND) is in the lower left and the pins count low-high then to the right |
| 238 | | (gnd ? ? ? ? ? vcc a14 a13 a8 a9 a11 /OE a10 /LOCE d7 d6 d5 d4 d3 ) |
| 239 | | (GND ? ? ? gnd ? vcc a12 a7 a6 a5 a4 a3 a2 a1 a0 d0 d1 d2 gnd) |
| 245 | (gnd N/C E_CLK R/W /ROM_OE a17 vcc a14 a13 a8 a9 a11 /ROM_OE' a10 a15 d7 d6 d5 d4 d3 ) |
| 246 | (GND /IPL1 DECODE_18 /RESET gnd a16 vcc a12 a7 a6 a5 a4 a3 a2 a1 a0 d0 d1 d2 gnd) |
| 240 | 247 | Jx: 4 pin on top side, 6 pin on bottom side edge ?debug? connector (doesn't have a Jx number) |
| 241 | 248 | (trace me!) |
| 242 | 249 | B1: a cuttable trace on the pcb. Not cut, affects one of the pins on the unpopulated J9 connector only. |
| r243046 | r243047 | |
| 329 | 336 | - Forth button (on the port on the back; keep in mind shift-usefront-space ALWAYS enables forth on a swyft) |
| 330 | 337 | - Multple undumped firmware revisions exist (330 and 331 are dumped) |
| 331 | 338 | |
| 339 | // 74ls107 @ u18 pin 1 is 68008 /BERR pin |
| 340 | |
| 341 | // mc6850 @ u33 pin 2 (RX_DATA) is |
| 342 | // mc6850 @ u33 pin 3 (RX_CLK) is 6522 @ u35 pin 17 (PB7) |
| 343 | // mc6850 @ u33 pin 4 (TX_CLK) is 6522 @ u35 pin 17 (PB7) |
| 344 | // mc6850 @ u33 pin 5 (/RTS) is |
| 345 | // mc6850 @ u33 pin 6 (TX_DATA) is |
| 346 | // mc6850 @ u33 pin 7 (/IRQ) is 68008 /IPL1 pin 41 |
| 347 | // mc6850 @ u33 pin 8 (CS0) is 68008 A12 pin 10 |
| 348 | // mc6850 @ u33 pin 9 (CS2) is DECODE E pin 18 |
| 349 | // mc6850 @ u33 pin 10 (CS1) is 68008 /BERR pin 40 |
| 350 | // mc6850 @ u33 pin 11 (RS) is 68008 A0 pin 46 |
| 351 | // mc6850 @ u33 pin 13 (R/W) is 68008 R/W pin 30 |
| 352 | // mc6850 @ u33 pin 14 (E) is 68008 E pin 38 |
| 353 | // mc6850 @ u33 pin 15-22 (D7-D0) are 68008 D7 to D0 pins 20-27 |
| 354 | // mc6850 @ u33 pin 23 (/DCD) is 74hc02 @ u35 pin 1 |
| 355 | // mc6850 @ u33 pin 24 (/CTS) is N/C? |
| 356 | |
| 357 | // 6522 @ u34: |
| 358 | // pin 2 (PA0) : |
| 359 | // pin 3 (PA1) : |
| 360 | // pin 4 (PA2) : |
| 361 | // pin 5 (PA3) : |
| 362 | // pin 6 (PA4) : |
| 363 | // pin 7 (PA5) : |
| 364 | // pin 8 (PA6) : |
| 365 | // pin 9 (PA7) : |
| 366 | // pin 10 (PB0) : |
| 367 | // pin 11 (PB1) : |
| 368 | // pin 12 (PB2) : |
| 369 | // pin 13 (PB3) : |
| 370 | // pin 14 (PB4) : |
| 371 | // pin 15 (PB5) : |
| 372 | // pin 16 (PB6) : |
| 373 | // pin 17 (PB7) : |
| 374 | // pin 18 (CB1) : ?from/to? Floppy connector j3 pin 8 |
| 375 | // pin 19 (CB2) : ?from/to? 6522 @ u35 pin 16 (PB6) |
| 376 | // pin 21 (/IRQ) : out to 68008 /IPL1 pin 41 |
| 377 | // pin 22 (R/W) : in from 68008 R/W pin 30 |
| 378 | // pin 23 (/CS2) : in from DECODE E pin 18 |
| 379 | // pin 24 (CS1) : in from 68008 A13 pin 11 |
| 380 | // pin 25 (Phi2) : in from 68008 E pin 38 |
| 381 | // pins 26-33 : in/out from/to 68008 D7 to D0 pins 20-27 |
| 382 | // pin 34 (/RES) : in from 68008 /RESET pin 37 AND 68008 /HALT pin 36 |
| 383 | // pins 35-38 (RS3-RS0) are 68008 A9-A6 pins 7-4 |
| 384 | // pin 39 (CA2) is through inductor L11 and resistor r128 to peripheral connector pin 35 <end minus 26> |
| 385 | // pin 40 (CA1) is through inductor L30 and resistor r138 to peripheral connector pin 53 <end minus 8> |
| 386 | |
| 387 | // 6522 @ u35 |
| 388 | // pin 2 (PA0) : |
| 389 | // pin 3 (PA1) : |
| 390 | // pin 4 (PA2) : |
| 391 | // pin 5 (PA3) : |
| 392 | // pin 6 (PA4) : |
| 393 | // pin 7 (PA5) : |
| 394 | // pin 8 (PA6) : |
| 395 | // pin 9 (PA7) : |
| 396 | // pin 10 (PB0) : |
| 397 | // pin 11 (PB1) : in from 74hc02 @ u36 pin 4 |
| 398 | // pin 12 (PB2) : |
| 399 | // pin 13 (PB3) : |
| 400 | // pin 14 (PB4) : |
| 401 | // pin 15 (PB5) : |
| 402 | // pin 16 (PB6) : 6522 @ u34 pin 19 (CB2) |
| 403 | // pin 17 (PB7) : mc6850 @ u33 pins 3 and 4 (RX_CLK, TX_CLK) |
| 404 | // pin 18 (CB1) : ds1489an @ u45 pin 11 |
| 405 | // pin 19 (CB2) : mn4053b @ u40 pin 11 and mc14412 @ u41 pin 10 |
| 406 | // pin 21 (/IRQ) : out to 68008 /IPL1 pin 41 |
| 407 | // pin 22 (R/W) : in from 68008 R/W pin 30 |
| 408 | // pin 23 (/CS2) : in from DECODE E pin 18 |
| 409 | // pin 24 (CS1) : in from 68008 A14 pin 12 |
| 410 | // pin 25 (Phi2) : in from 68008 E pin 38 |
| 411 | // pins 26-33 : in/out from/to 68008 D7 to D0 pins 20-27 |
| 412 | // pin 34 (/RES) : in from 68008 /RESET pin 37 AND 68008 /HALT pin 36 |
| 413 | // pins 35-38 (RS3-RS0) : in from 68008 A9-A6 pins 7-4 |
| 414 | // pin 39 (CA2) : out to 74HCT34 pin 11 (CLK) (keyboard column latch) |
| 415 | // pin 40 (CA1) : out? to? ds1489an @ u45 pin 8 |
| 416 | |
| 417 | // 74hc02 @ u36: |
| 418 | // pin 1 (Y1) : out to mc6850 @ u33 pin 23 /DCD |
| 419 | // pin 2 (A1) : in from (2 places: resistor R58 to ua339 @ u38 pin 4 (In1-)) <where does this actually come from? modem offhook?> |
| 420 | // pin 3 (B1) : in from mn4053b @ u40 pin 10 <probably from rs232> |
| 421 | // pin 4 (Y2) : out to 6522 @u35 pin 11 |
| 422 | // pin 5 (A2) : in from 4N37 @ u48 pin 5 (output side emitter pin) (tied via R189 to gnd) <ring indicator?> |
| 423 | // pin 6 (B2) : in from 4N37 @ u48 pin 5 (output side emitter pin) (tied via R189 to gnd) <ring indicator?> |
| 424 | // pin 8 (B3) : |
| 425 | // pin 9 (A3) : |
| 426 | // pin 10 (Y3) : |
| 427 | // pin 11 (B4) : in from 68008 A15 |
| 428 | // pin 12 (A4) : in from 68008 A15 |
| 429 | // pin 13 (Y4) : out to EPROM @ U31 /CE |
| 430 | |
| 332 | 431 | ****************************************************************************/ |
| 333 | 432 | |
| 334 | 433 | // Defines |
| r243046 | r243047 | |
| 1265 | 1364 | x x x x 0 0 ? ? 1 * * * * * * * * * * * * * * * R ROM-HI (/LOCE is 1, /HICE is 0) |
| 1266 | 1365 | x x x x 0 1 * * * * * * * * * * * * * * * * * a RW RAM |
| 1267 | 1366 | x x x x 1 1 ?0? ?1? ? ? ? ? ? ? ? ? ? ? ? ? * * * * R ? status of something? floppy? |
| 1268 | | x x x x 1 1 ?1? ?0? ? 0 0 1 ? ? ? ? ? ? ? ? ? ? ? ? ?R?W 6850 acia control reg lives here, gets 0x55 steadystate and 0x57 written to it to reset it |
| 1269 | | x x x x 1 1 ?1? ?0? ? 0 1 0 ? ? * * * * ?*? ? ? ? ? ? RW VIA 0 |
| 1270 | | x x x x 1 1 ?1? ?0? ? 1 0 0 ? ? * * * * ?*? ? ? ? ? ? RW VIA 1 |
| 1367 | x x x x 1 1 ?1? ?0? ? 0 0 1 x x x x x x x x x x x * RW 6850 acia @U33, gets 0x55 steadystate and 0x57 written to it to reset it |
| 1368 | x x x x 1 1 ?1? ?0? ? 0 1 0 x x * * * * x x x x x x RW Parallel VIA 0 @ U34 |
| 1369 | x x x x 1 1 ?1? ?0? ? 1 0 0 x x * * * * x x x x x x RW Keyboard VIA 1 @ U35 |
| 1271 | 1370 | ^ ^ ^ ^ ^ |
| 1371 | |
| 1272 | 1372 | */ |
| 1273 | 1373 | |
| 1274 | 1374 | /* Swyft rom and ram notes: |
| r243046 | r243047 | |
| 1578 | 1678 | MCFG_VIDEO_START_OVERRIDE(cat_state,swyft) |
| 1579 | 1679 | |
| 1580 | 1680 | MCFG_DEVICE_ADD("acia6850", ACIA6850, 0) |
| 1581 | | |
| 1582 | | MCFG_DEVICE_ADD("acia_clock", CLOCK, 3579545) // guess |
| 1681 | // acia rx and tx clocks come from one of the VIA pins and are tied together, fix this below? acia e clock comes from 68008 |
| 1682 | MCFG_DEVICE_ADD("acia_clock", CLOCK, (XTAL_15_8976MHz/2)/5) // out e clock from 68008, ~ 10in clocks per out clock |
| 1583 | 1683 | MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(cat_state, write_acia_clock)) |
| 1584 | 1684 | |
| 1585 | | MCFG_DEVICE_ADD("via6522_0", VIA6522, XTAL_15_8976MHz/16) // unknown clock, GUESSED |
| 1685 | MCFG_DEVICE_ADD("via6522_0", VIA6522, (XTAL_15_8976MHz/2)/5) // out e clock from 68008 |
| 1586 | 1686 | MCFG_VIA6522_READPA_HANDLER(READ8(cat_state, via0_pa_r)) |
| 1587 | 1687 | MCFG_VIA6522_READPB_HANDLER(READ8(cat_state, via0_pb_r)) |
| 1588 | 1688 | MCFG_VIA6522_WRITEPA_HANDLER(WRITE8(cat_state, via0_pa_w)) |
| r243046 | r243047 | |
| 1592 | 1692 | MCFG_VIA6522_CB2_HANDLER(WRITELINE(cat_state, via0_cb2_w)) |
| 1593 | 1693 | MCFG_VIA6522_IRQ_HANDLER(WRITELINE(cat_state, via0_int_w)) |
| 1594 | 1694 | |
| 1595 | | MCFG_DEVICE_ADD("via6522_1", VIA6522, XTAL_15_8976MHz/16) // unknown clock, GUESSED |
| 1695 | MCFG_DEVICE_ADD("via6522_1", VIA6522, (XTAL_15_8976MHz/2)/5) // out e clock from 68008 |
| 1596 | 1696 | MCFG_VIA6522_READPA_HANDLER(READ8(cat_state, via1_pa_r)) |
| 1597 | 1697 | MCFG_VIA6522_READPB_HANDLER(READ8(cat_state, via1_pb_r)) |
| 1598 | 1698 | MCFG_VIA6522_WRITEPA_HANDLER(WRITE8(cat_state, via1_pa_w)) |
| r243046 | r243047 | |
| 1623 | 1723 | */ |
| 1624 | 1724 | /* U9: Timing AMPAL16R4 |
| 1625 | 1725 | * |
| 1626 | | * input |
| 1627 | | * 76543210 |
| 1628 | | * |||||||\-- ? |
| 1629 | | * ||||||\--- ? |
| 1630 | | * |||||\---- ? |
| 1631 | | * ||||\----- ? |
| 1632 | | * |||\------ ? |
| 1633 | | * ||\------- ? |
| 1634 | | * |\-------- ? |
| 1635 | | * \--------- ? |
| 1636 | | * /CK ------ 15.8976mhz crystal and transistor oscillator |
| 1637 | | * /OE ------ ? |
| 1726 | * pins: |
| 1727 | * 111111111000000000 |
| 1728 | * 987654321987654321 |
| 1729 | * ??QQQQ??EIIIIIIIIC |
| 1730 | * |||||||||||||||||\-< /CK input - 15.8976mhz crystal and transistor oscillator |
| 1731 | * ||||||||||||||||\--< ? |
| 1732 | * |||||||||||||||\---< ? |
| 1733 | * ||||||||||||||\----< ? |
| 1734 | * |||||||||||||\-----< ?<also input to decode pal pin 1, video pal pin 1, source is ?> |
| 1735 | * ||||||||||||\------< ? |
| 1736 | * |||||||||||\-------< ? |
| 1737 | * ||||||||||\--------< ? |
| 1738 | * |||||||||\---------< ? |
| 1739 | * ||||||||\----------< /OE input - shorted to GND |
| 1740 | * |||||||\-----------? ? |
| 1741 | * ||||||\------------? ? |
| 1742 | * |||||\------------Q> /ROM_OE (to both eproms through jumper b1 and optionally j9 connector) |
| 1743 | * ||||\-------------Q? ? |
| 1744 | * |||\--------------Q? ? |
| 1745 | * ||\---------------Q> output to decode pal pin 2 |
| 1746 | * |\----------------->? output? to ram multiplexer 'A' pins |
| 1747 | * \------------------< ? |
| 1748 | */ |
| 1749 | ROM_LOAD( "timing_b.ampal16r4a.u9.jed", 0x0000, 0xb08, CRC(643e6e83) SHA1(7db167883f9d6cf385ce496d08976dc16fc3e2c3)) |
| 1750 | /* U20: Decode AMPAL16L8 |
| 1638 | 1751 | * |
| 1639 | | * output |
| 1640 | | * 76543210 |
| 1641 | | * |||||||\-- ? |
| 1642 | | * ||||||\--- ? |
| 1643 | | * |||||\-R-- ? |
| 1644 | | * ||||\--R-- ? |
| 1645 | | * |||\---R-- ? |
| 1646 | | * ||\----R-- ? |
| 1647 | | * |\-------- ? |
| 1648 | | * \--------- ? |
| 1752 | * pins: |
| 1753 | * 111111111000000000 |
| 1754 | * 987654321987654321 |
| 1755 | * O??????OIIIIIIIIII |
| 1756 | * |||||||||||||||||\-< TIMING PAL pin 5 |
| 1757 | * ||||||||||||||||\--< TIMING PAL pin 17 |
| 1758 | * |||||||||||||||\---< 68008 R/W (pin 30) |
| 1759 | * ||||||||||||||\----< 68008 /DS (pin 29) |
| 1760 | * |||||||||||||\-----< 68008 E (pin 38) |
| 1761 | * ||||||||||||\------< 68008 A19 |
| 1762 | * |||||||||||\-------< 68008 A18 |
| 1763 | * ||||||||||\--------< 68008 A17 |
| 1764 | * |||||||||\---------< 68008 A16 |
| 1765 | * ||||||||\----------< ? |
| 1766 | * |||||||\-----------> ? |
| 1767 | * ||||||\------------? 68008 /VPA (pin 39) |
| 1768 | * |||||\-------------> /ROM_OE (to both eproms through jumper b1 and optionally j9 connector) |
| 1769 | * ||||\--------------? ? |
| 1770 | * |||\---------------? ? |
| 1771 | * ||\----------------? ? |
| 1772 | * |\-----------------? goes to j9 connector pin 5 |
| 1773 | * \------------------< ? |
| 1649 | 1774 | */ |
| 1650 | | ROM_LOAD( "timing_b.ampal16r4a.u9.jed", 0x0000, 0xb08, CRC(643e6e83) SHA1(7db167883f9d6cf385ce496d08976dc16fc3e2c3)) |
| 1651 | 1775 | ROM_LOAD( "decode_e.ampal16l8.u20.jed", 0x1000, 0xb08, CRC(0b1dbd76) SHA1(08c144ad7a7bbdd53eefd271b2f6813f8b3b1594)) |
| 1652 | 1776 | ROM_LOAD( "video_2b.ampal16r4.u25.jed", 0x2000, 0xb08, CRC(caf91148) SHA1(3f8ddcb512a1c05395c74ad9a6ba7b87027ce4ec)) |
| 1653 | 1777 | ROM_LOAD( "disk_3.5c.ampal16r4.u28.jed", 0x3000, 0xb08, CRC(fd994d02) SHA1(f910ab16587dd248d63017da1e5b37855e4c1a0c)) |