home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / ports.100 < prev    next >
Text File  |  2006-10-19  |  7KB  |  136 lines

  1. Compiled by Don Corbitt [75655,1516] of Holmes Engineering.
  2.  
  3. This was done for my personal edification.  I make no guarantees of 
  4. infallibility.  Have fun, I did.  All numbers in Hexadecimal.
  5.  
  6. -------------------------------------------------------------------------------
  7. 80-8Fh  In                              80-8Fh Out
  8. Optional I/O Controller                 Optional I/O Controller
  9.  
  10. 80h In - Data                           80h Out - Data
  11.  
  12. 81h                                     81h Out - Command
  13.  
  14. 82h In - Status
  15.  
  16. 83h                                     83h Out - Command?
  17. -------------------------------------------------------------------------------
  18. 90-9Fh  In                              90-9F Out
  19. Optional Answering Telephone            Optional Answering Telephone
  20. -------------------------------------------------------------------------------
  21. A0-AFh  In                              A0-AF Out
  22.                                         Bit 0 - Telephone on/off line control
  23.                                                 0=off line
  24.                                                 1=on line
  25.                                         Bit 1 - Modem enable signal
  26.                                                 0=disable modem
  27.                                                 1=enable modem
  28. -------------------------------------------------------------------------------
  29. B0-BFh  In                              B0-BFh Out
  30. 81C55 chip select                       81C55 chip select
  31.  
  32. B8 (B0)  In - Status register           B8 (B0) Out - Command register
  33. Bit 0 - Interrupt Request A             Bit 0 - Port A Input/Output
  34.                                                 0=input
  35.                                                 1=output
  36. Bit 1 - Buffer full A (input)           Bit 1 - Port B Input/Output
  37.         Buffer empty A (output)                 0=input
  38.                                                 1=output
  39. Bit 2 - Interrupt Enabled A             Bits 3,2 - Defines PC0-5
  40. Bit 3 - Interrupt Request B                     00=ALT 1 (all input)
  41.                                                 01=ALT 2 (all output)
  42.                                                 10=ALT 3 (0-2 control A,
  43.                                                           3-5 are output)
  44.                                                 11=ALT 4 (0-2 control A,
  45.                                                           3-5 control B)
  46. Bit 4 - Buffer full B (input)           Bit 4 - Enable Interrupt Port A
  47.         Buffer empty B (output)                 1=enable
  48.                                                 0=disable
  49. Bit 5 - Interrupt Enabled B             Bit 5 - Enable Interrupt Port B
  50.                                                 0=disable
  51.                                                 1=enable
  52. Bit 6 - Timer Interrupt                 Bits 7,6 Timer Command
  53.         Latched high when terminal              00=NOP
  54.         count is reached                        01=Stop/NOP
  55.                                                 10=Stop after terminal count
  56.                                                 11=Start
  57.  
  58. B9 (B1) Port A In - Not used            B9 (B1) Port A Out- Keyboard strobe,
  59.                                                 LCD chip select, printer data,
  60.                                                 A0-A4 clock interface
  61.                                         Bit 0=C0, 1=C1, 2=C2, 3=CLK, 4=DATA
  62.  
  63. BA (B2) Port B In - Not used            BA (B2) Port B Out - Controls
  64.                                         Bits 0,1 - Keyboard strobe, LCD
  65.                                                 controller chip select
  66.                                         Bit 2 - Enable sound from clock
  67.                                                 0=enable
  68.                                                 1=disable
  69.                                         Bit 3 - RS232 circuit mux
  70.                                                 0=RS232
  71.                                                 1=Modem
  72.                                         Bit 4 - Power off
  73.                                                 0=power cont
  74.                                                 1=power off
  75.                                         Bit 5 - click buzzer
  76.                                         Bit 6 - DTR - Pin 20 RS232
  77.                                         Bit 7 - RTS - Pin 4 RS232
  78.                                                 If PB3=1 then controls relay
  79.                                                 for pulse dialing of modem
  80.  
  81. BB (B3) Port C In                       BB (B3) Out - Not used
  82. Bit 0 - Clock data
  83. Bit 1 - Printer ready 1
  84.         0=printer not ready
  85.         1=printer ready
  86. Bit 2 - Printer ready 2
  87.         0=printer ready
  88.         1=printer not ready
  89. Bit 3 - BCR data
  90. Bit 4 - CTS or CL/AS
  91.         If PB3=0 then CTS
  92.         else    0=originate mode
  93.                 1=answer mode
  94. Bit 5 - DSR or CP/TL
  95.         If PB3=0 then DSR
  96.         else    0=direct connect
  97.                 1=accoustic cups
  98.  
  99. BC (B4) In - Not used                   BC (B4) Out - Lower 8 bits of timer
  100.  
  101. BD (B5) In - Not used                   BD (B5) Out - Bit 0-5 Upper 6 bits
  102.                                                 of timer,
  103.                                         Bit 7,6 - Timer mode
  104.                                                 00=single square wave
  105.                                                 01=continuous square wave
  106.                                                 10=single pulse on TC
  107.                                                 11=continuous pulses on TC
  108. -------------------------------------------------------------------------------
  109. C0-CFh  In - UART data in               C0-CFh Out - UART data out
  110. -------------------------------------------------------------------------------
  111. D0-DFh  In - UART status                D0-DFh Out - UART command
  112. Bit 0 - Carrier Detect                  Bit 0 - SBS
  113. Bit 1 - Overrun Error                   Bit 1 - EPE
  114. Bit 2 - Framing Error                   Bit 2 - PI
  115. Bit 3 - Parity Error                    Bit 3 - CLS 1
  116. Bit 4 - Trans Buff Empty                Bit 4 - CLS 2
  117. Bit 5 - Ringing Pulse pin 8
  118. Bit 7 - Low power sense
  119. -------------------------------------------------------------------------------
  120. E0-EFh  In - Keyboard data in           E0-EFh Out - Various strobes
  121.                                         Bit 0 - ROM select
  122.                                                 0=standard ROM
  123.                                                 1=option ROM
  124.                                         Bit 1 - Printer strobe
  125.                                         Bit 2 - Clock strobe
  126.                                         Bit 3 - Cassette motor
  127.                                                 0=motor off (relay open)
  128.                                                 1=motor on (relay closed)
  129. -------------------------------------------------------------------------------
  130. F0-FFh In - LCD control and data        F0-FFh Out - LCD control and data
  131.  
  132. FEh In - LCD status                     FEh Out - LCD command
  133. Bit 7 - busy
  134.  
  135. FFh In - LCD data in                    FFh Out - LCD data out
  136.