home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / 8bit / 4641 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  3.5 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!cd827
  2. From: cd827@cleveland.Freenet.Edu (Jeffrey J. McWilliams)
  3. Newsgroups: comp.sys.atari.8bit
  4. Subject: Re: Adding a 2nd PIA
  5. Date: 14 Sep 1992 18:47:07 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 60
  8. Message-ID: <192mnbINNs4c@usenet.INS.CWRU.Edu>
  9. References: <65783@cup.portal.com> <15064@mindlink.bc.ca> <92256.122353JJMCWILL@MTUS5.BITNET>
  10. Reply-To: cd827@cleveland.Freenet.Edu (Jeffrey J. McWilliams)
  11. NNTP-Posting-Host: hela.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, Rick_Michael_Cortese@cup.portal.com () says:
  15.  
  16. >Jeff: Exactly! You'd be killer on Jeapardy. Chuck's stuff is good, but
  17. >for simplicity, one piggy backed chip & one jumper has got to be simpler.
  18. >The 2nd '138 so you can add 7 more devices is IMHO the right way to do it.
  19. >I was "IFFY" on some of the other BUSS ideas I was throwing out, but this
  20. >seems "RIGHT". Heck, you only need 8 data lines, lower 8 bits of address,
  21. >and some glue signals W power. I just spent $130 for a burnner that's just
  22. >a couple of PIA's with some voltage regulators & a ZIF socket. 
  23. >BTW: I'll still admit you're right with the 16550, but like I said, I'm
  24. >a little lazy for doing things right. I will write a R: handler for the
  25. >6551 when I finish it. Would've been this weekend, but my nephew's in the
  26. >finals of some batting contest before the Oakland's A's game so I'm out
  27. >of here!
  28. >
  29.  
  30. Rick,
  31.  
  32. Hmm, There is a basic design for AN EPROM burner that came with the
  33. Microport XL experimenter's kit.  I could expand on it, but what 
  34. bothers me the most, is how to allow different sized EPROMS as part of the
  35. BASIC design.  Different EPROM sizes may have different numbers of pins,
  36. thus meaning you have to pipe +5 and GND and the other signals to the
  37. proper pins on the ZIF socket.  I have been bothered by how that is 
  38. implemented.
  39.  
  40. I would really like to see someone use the 16550 in an RS232 port for the
  41. 8 bit.  I can't afford to do it myself, either in terms of time or money
  42. right now.  I could probably do the hardware, but I am not good at
  43. writing system level drivers, like an RS232 driver.
  44.  
  45. What you could do, wire in a 3/8 decoder to A7, A6, A5
  46. with the original PIA enable enabling the second 3/8.  That way,
  47. you have 8 devices mapped in the $D3xx region.
  48. Use 4 7474 Dual D flip-flops mapped as one 8 bit register at
  49. $D1FE as an IRQ register.  Tie the S lines to the IRQ's of each
  50. PIA or other device to be mapped at $D3xx, ORING all of the 
  51. Q outputs together and send that to the IRQ of the 6502.
  52. Wait, IRQ is pulsed isn't it?  You would have to make it a one-shot or
  53. something like that.  No big deal.  The BASIC concept being
  54. that you read $D1FE to see which device caused the interrrupt, and then
  55. clear that bit so that the IRQ handler doesn't get confused if another
  56. device IRQ's at about the same time the first device did.
  57.  
  58. Putting 8 devices in the $D3xx region isn't so bad, each one has 32 bytes
  59. of address space, which is plenty for most devices like PIAs and UARTs
  60. and stuff, maybe not all the registers of a 68881, but that's another
  61. story altogether anyhow.
  62.  
  63. I think if you start adding a lot of extras, you should buffer
  64. the lines, and but a transceiver on the data line to buffer it as well.
  65. I doubt you could put 8 devices mapped anywhere without causing a bus
  66. failure or something.
  67.  
  68. Jeff McWilliams..... Freenet post
  69. -- 
  70. Jeff McWilliams  -->student, Electrical Enginnering, Michigan Tech. Univ.
  71.  
  72. cd827@cleveland.freenet.edu  OR  jjmcwill@mtus5.cts.mtu.edu
  73.