home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / gendoc / nec8001.hlp < prev    next >
Encoding:
Text File  |  1984-07-05  |  7.1 KB  |  163 lines

  1.                ***NEC PC-8001 COMPUTER BITS AND PIECES***
  2.  
  3.                    ***NEComaniac 4-8-84 at 5:00 AM***
  4.  
  5. After obtaining what was probably one of the first of these animals
  6. in the Detroit area, I started trying to do something with it.
  7. Quickley I discovered that not only was the documentation a bit
  8. sparse, so was the hope of any help.
  9. This situation is probably true for most computer hobbyists and is
  10. what inspires the drive for user-groups and CBBS's.
  11. The following information is donated in the hope that it will answer
  12. some questions about this system and aim the PC-8001 user in a
  13. direction where he might obtain further information.
  14.  
  15.  
  16. Naturally it is impossible to cover all hardware and software of any
  17. system in great detail without writing a book. What I'll try and do
  18. is to explain some interesting and useful features.
  19.  
  20.                             ***HELLO56.COM***
  21. If you examine the listing in your Operating System handbook (The
  22. nice soft one with the pages that fall out.) you'll see that just
  23. following the statement 'CALL   CALBOOT' there is a bunch of NOP's.
  24. These NOP's were set aside so you can add CALL's to additional
  25. routines of your own design. The following is an example routine
  26. which initializes the USART at your built-in RS-232 serial port.
  27.  
  28. Add this routine to 'HELLO.ASM' and assemble it into your new
  29. HELLO56.COM. Remember that any useful routine that configures your
  30. hardware on Cold Boot can be accomplished this way.
  31.  
  32. Insert CALL INT8251 (or whatever) where those NOP's are.
  33. Add this routine (or yours) just before the END directive.
  34. You can find out how to program the 8251 USART in nearly any book
  35. or data catalog that covers chips associated with the 8080 family.
  36. This routine sets the USART for 'devide by 64 Baudrate, 1 stop bit,
  37. even parity.
  38.  
  39. INT8251  LDA 0EA66H        ;This routine tells the machine that you
  40.          ANI 0CFH          ;want the serial port used for I/O instead
  41.          ORI 20H           ;of the Cassette interface.
  42.          OUT 30H           ;System control port
  43.          STA 0EA66H
  44.          NOP
  45.          MVI A,40H         ;Get 8251 ready for Mode word
  46.          OUT 21H           ;Serial Status and Command Port
  47.          NOP
  48.          MVI A,7BH         ;Devide by 64, 1 stop bit, even parity
  49.          OUT 21H
  50.          NOP
  51.          MVI A,15H         ;TXEN,RXEN,ERROR RESET
  52.          OUT 21H           ;Oh, by the way the data port is 20H
  53.          RET               ;incase you want to go around CP/M.
  54.  
  55. Remember that the routine could of been anything. How about a start-
  56. up to get the screen going a different color or different format?
  57. Don't forget to make back-ups of what you do and document it.
  58.  
  59. Do you use 'FNCKEY.STR' to get your function keys set up? Why not
  60. just change HELLO56.COM to use different definitions and save disk
  61. space?
  62.  
  63.                              ***LIGHT PEN***
  64.  
  65. Did you know that pin 5 on the Din connector for the B/W monitor is
  66. connected directly to the light pen input on the CRT Controller chip?
  67. This one is too complicated to really go into, but here's the info to
  68. get you going on this project.
  69.  
  70. 1. input is positive going (Hi = true)
  71. 2. 51H is the CRTC command port. Send 60H to tell chip you want to
  72.    read the light pen.
  73. 3. Read 50H twice to get the location
  74.    a. first read = Character position in Row
  75.    b. second read = Row number
  76. 4. the CRTC is a uPD3301 (Later I'll tell you how to get the manual)
  77. 5. Maybe you can find a simple light pen circuit in one of those old
  78.    magazines you keep hesitating to throw out.
  79.  
  80.                           ***Heath Software***
  81.  
  82. Did you know that just about any Heath software that doesn't depend
  83. on the H-19 video terminal can be run on your machine?
  84. It's true, Where else can you get C/80 so cheap or how about MACRO-80
  85. that fancy macro assembler?
  86.  
  87. Here is one way you can do it.
  88. 1. Find someone with a new Z-100 that likes to help.
  89. 2. Format one of your disks.
  90. 3. Using one of those handy disk-dump programs gratefully recieved
  91.    from the CBBS (don't forget your donation-money is good) do the
  92.    following.
  93.    a. on the first sector, first track write the following:
  94.       E5 E5 E5 E5  00 22 E5 02  08 E5 E5 00  E5 20 00 03
  95.       07 00 97 00  3F 00 C0 00  10 00 02 00  6D E5 E5 E5
  96.    b. This data allows the Z-100 to configure its second drive to
  97.       the same format as your computer.
  98.    c. Now it is a simple matter for the Z-100 to transfer that
  99.       Heath software to your disk.
  100. 4. Remember that bootlegging is illegal and not very nice. (I got to
  101.    learn not to preach.)
  102.  
  103.                   ***Some unresolved 'Did you knows'***
  104.  
  105. Unresolved means that I definitely now it will work but I haven't
  106. figured it out totally.
  107. 1. The PC-8031 Disk unit can be programed to read and write just
  108.    about every mini disk format. Ya it's true, it has its own Z-80
  109.    and its own ram and a very nice controller chip that likes being
  110.    programed all kinds of different ways.
  111.    This is what I got so far:
  112.    a. We're dissasembling the rom and we made some discoveries.
  113.       The unit can be reprogramed, can support double sided drives,
  114.       and can probably use the new 80 track drives.
  115.    b. The units operating system is kind of wierd, so is the hardware
  116.       but if I can figure it out to a usable extent I'll pass on the
  117.       information.
  118.    c. The unit uses the uPD765.
  119.    d. The units power supply could support four half-height double-
  120.       sided drives. That would be a breakthrough in disk space!
  121.  
  122. 2. By changing the console I/O driver in CP/M the computer could
  123.    definitly emulate the H-19. Now we got just about all the H-89-90
  124.    software.
  125. 3. A simple circuit could allow switching the character generator to
  126.    a 2K ram (6116) for a programmable character generator. Hooray
  127.    Hi-Res graphics, different fonts.
  128.  
  129.                      ***Where to get information***
  130.  
  131. Boy, has this part been frustrating!! Everyone acts like I'm a spy
  132. trying to get TOP-SECRET information. I've even tried bribing service
  133. technicians and computer stores. NEC hasn't been all that helpful
  134. either, they can answer questions about what key do you hit to enter
  135. information but little else. You can do better getting information
  136. on a MIG fighter. Here's what I did:
  137.  
  138. 1. See what you can get out of NEC.
  139.    a. Nec Consumer Electronics Div.
  140.       Elkgrove, Ill.
  141.       312-228-5900
  142. 2. This division is good - There manuals are free and come UPS!
  143.    This is for data sheets and manuals on chips.
  144.    a. Nec Semiconductor Div
  145.       One Natick Executive Park
  146.       Natick, Mass. 01760
  147.       617-655-8833
  148. 3. I found a computer store that used to carry NEC and they were
  149.    helpful and sympathetic. They ordered the service manuals for
  150.    me.
  151.    a. PC-8001A System Service Manual
  152.    b. PC-8031A/32A Disk Service Manual
  153.    c. PC-8012A Service Manual
  154.    d. PC-8023A-C Printer Troubleshooting Manual
  155.    Each manual cost $20.00 and aren't the best I've seen!
  156.    They are vague, but still worth it because what else can you do?
  157. 4. I have a friend that doesn't get tired of my problems and knows
  158.    alot about electronics. (I didn't say anyone can figure this out
  159.    by himself).
  160. 5. The RoyalOak CBBS, The insight obtained here was great!
  161.  
  162. ***Thanks, Keith and all you fellow computerists out there.***
  163.