home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0628.ZIP / CCE_0628.PD / FALCON_D.ATA / FALCON3.TXT < prev   
Text File  |  1996-03-01  |  10KB  |  237 lines

  1. FALCON REGISTERS 3
  2.  
  3. ****************************************************************************
  4.            2 5 6   C O L O R  -  R E G I S T E R S  ( F A L C O N )
  5. ****************************************************************************
  6.  
  7. $FFFF9800 [R/W] :$FC 765432__ ................................ Color $00 Red
  8.                      ||||||
  9.                      ++++++------ 0-63: Red
  10. $FFFF9801 [R/W] :$FC 765432__ .............................. Color $00 Green
  11.                      ||||||
  12.                      ++++++------ 0-63: Green
  13. $FFFF9802 [R/W] :$00 ******
  14. $FFFF9803 [R/W] :$00 765432__ ............................... Color $00 Blue
  15.                      ||||||
  16.                      ++++++------ 0-63: Blue
  17. $FFFF9804 [R/W] :$FC Color $01 Red
  18. $FFFF9805 [R/W] :$FC Color $01 Green
  19. $FFFF9806 [R/W] :$00 ******
  20. $FFFF9807 [R/W] :$00 Color $01 Blue
  21.     :       :     :    :
  22.     :       :     :    :
  23.     :       :     :    :
  24. $FFFF9BFC [R/W] :$00 Color $FF Red
  25. $FFFF9BFD [R/W] :$00 Color $FF Green
  26. $FFFF9BFE [R/W] :$00 ******
  27. $FFFF9BFF [R/W] :$00 Color $FF Blue
  28.  
  29.  
  30.  
  31. ****************************************************************************
  32.           D S P  -  H O S T  -  I N T E R F A C E  ( FA L C O N )
  33. ****************************************************************************
  34.  
  35. $FFFFA200 [R/W] :$00 76543_10 ........................ Host-Control-Register
  36.                      ||||| ||
  37.                      ||||| |+---- 1: enable 'DSP-had-send'-IRQ
  38.                      ||||| +----- 1: enable 'DSP-ready to receive'-IRQ
  39.                      ||||+------- Hf2-Bit, userdef. Infobit from DSP to Host
  40.                      |||+-------- Hf3-Bit, userdef. Infobit from DSP to Host
  41.                      +++--------- set to zero
  42. $FFFFA201 [R/W] :$12 <=====
  43. $FFFFA202 [R/W] :$06 _6543_10 ..........................Host-Status-Register
  44.                       |||| ||
  45.                       |||| |+---- 0: DSP busy
  46.                       |||| |      1: DSP had send 
  47.                       |||| +----- 0: DSP busy
  48.                       ||||        1: DSP ready to receive
  49.                       |||+------- Hf0-Bit, userdef. Infobit from Host to DSP
  50.                       ||+-------- Hf1-Bit, userdef. Infobit from Host to DSP
  51.                       ++--------- set to zero
  52. $FFFFA203 [R/W] :$0F <=====
  53. $FFFFA204 [R/W] :$00 ________ ............................. I/O-Data-Path HH
  54. $FFFFA205 [R/W] :$00 76543210 .............................               Hi
  55. $FFFFA206 [R/W] :$00 76543210 .............................               Mi
  56. $FFFFA207 [R/W] :$00 76543210 .............................               Lo
  57.  
  58.  
  59. $03FC-$03FF     :    DSP-IRQ-vector. This vector is used for receiving
  60.                      or/and sending data from/to the DSP in interrupt-
  61.                      mode.
  62.  
  63.  
  64. HOW to send datawords to DSP in handshaking-technic:
  65. 1. step: wait until DSP ready to receive ($A202.w Bit 1 turns to 1)
  66. 2. step: write data to $A204.w-$A207.w
  67. 3. step: if you want to send once again>> goto 1. step
  68.  
  69. Example: This routine corresponds to the DSP-XBIOS:
  70.                LEA BUFFER(PC),A0           ;Buffer with DSP-Words
  71.                MOVE.W #DSP_WORDS,D0        ;transfer max. 65535 DSP-Words
  72.          LOOP: BTST #0,$FFFFA202.W         ;is DSP ready to receive?
  73.                BEQ.S LOOP
  74. 4 bytes:       'MOVE.L (A0)+,$FFFFA204.W   ;transfer 4 bytes 
  75.                                            ;the highest byte will be ignored
  76.                                            ;by the DSP
  77. 3 bytes:       'MOVE.B (A0)+,$FFFFA205.W   ;transfer
  78.                 MOVE.B (A0)+,$FFFFA206.W   ;3 bytes
  79.                 MOVE.B (A0)+,$FFFFA207.W   ;(1 DSP-Word has 24 Bit)
  80. 2 bytes:       'MOVE.W (A0)+,D1            ;get 2 bytes
  81.                 EXT.L D1                   ;sign-extension
  82.                 MOVE.W D1,$FFFFA204.W      ;transfer 4 bytes
  83. 1 byte:        'MOVE.B #0,$FFFFA205.W      ;transfer
  84.                 MOVE.B #0,$FFFFA206.W      ;1 byte
  85.                 MOVE.B (A0)+,$FFFFA207.W
  86.                DBRA D0,LOOP
  87.       
  88. HOW to receive datawords from DSP in handshaking-technic:
  89. 1. step: wait until DSP had send ($A202.w Bit 0 turns to 1)
  90. 2. step: read data from $A204.w-$A207.w
  91. 3. step: if you want to receive once again >> goto 1. step
  92.  
  93. Example: This routine corresponds to the DSP-XBIOS
  94.                LEA BUFFER(PC),A0           ;Buffer with DSP-Words
  95.                MOVE.W #DSP_WORDS,D0        ;transfer max. 65535 DSP-Words
  96.          LOOP: BTST #1,$FFFFA202.W         ;had DSP send?
  97.                BEQ.S LOOP
  98. 4 bytes:       'MOVE.L $FFFFA204.W,(A0)+   ;transfer 4 bytes 
  99.                                            ;the highest byte is zero
  100. 3 bytes:       'MOVE.B $FFFFA205.W,(A0)+   ;transfer
  101.                 MOVE.B $FFFFA206.W,(A0)+   ;3 bytes
  102.                 MOVE.B $FFFFA207.W,(A0)+   ;(1 DSP-Word has 24 Bit)
  103. 2 bytes:       'MOVE.B $FFFFA206.W,(A0)+   ;transfer          
  104.                 MOVE.W $FFFFA207.W,(A0)+   ;2 bytes
  105. 1 byte:        'MOVE.B $FFFFA206.W,D1      ;dummy-read, nobody knows why.
  106.                 MOVE.B $FFFFA207.W,(A0)+   ;transfer 1 byte
  107.                DBRA D0,LOOP
  108.  
  109. NOTE: it is possible to skip the 1. step. This mode increases the 
  110.       transfering-rate, but the DSP-program must be able to read the data 
  111.       immediately, otherwhise the data will be overwritten by the next
  112.       one. It is important that the DSP is ready to transfer, therefor
  113.       execute the 1. step before transfering data!
  114.       (1. step > 2. step > 2. step > 2. step ......until end)
  115.  
  116.  
  117. HOW to send datawords to DSP in interrupt-technic:
  118. 1. step: IRQ-Instalation in special order:
  119.              1.: write the IRQ-program-address in the DSP-IRQ-vector
  120.              2.: write register $A203.w with $FF
  121.              3.: set bit 1 of Host-Control-Register
  122.           now the DSP-IRQ is installed and enabled!
  123. 2. step: the style of the IRQ-vector-routine:
  124.              1.: read data from $A204.w-$A207.w
  125.              2.: end the IRQ-routine with a RTE
  126. 3. step: you have two possibilities to stop the IRQ-transfer:
  127.              1.: you clear bit 1 in the main program
  128.              2.: you clear bit 1 in the IRQ-program 
  129.  
  130.  
  131. HOW to receive datawords fron DSP in interrupt-technic:
  132. 1. step: IRQ-Instalation in special order:
  133.              1.: write the IRQ-program-address in the DSP-IRQ-vector
  134.              2.: write register $A203.w with $FF
  135.              3.: set bit 0 of Host-Control-Register
  136.           now the DSP-IRQ is installed and enabled!
  137. 2. step: the style of the IRQ-vector-routine:
  138.              1.: write data to $A204.w-$A207.w
  139.              2.: end the IRQ-routine with a RTE
  140. 3. step: you have two possibilities to stop the IRQ-transfer:
  141.              1.: you clear bit 0 in the main program
  142.              2.: you clear bit 0 in the IRQ-program 
  143.                
  144. NOTE: You have only one exception for sending and receiving data. But
  145.       it is possible to send and receive data simultanously. In the IRQ-
  146.       program you have to test bit 0/1 of the Host-Status-Register to
  147.       get information about the transfering direction!
  148.  
  149.  
  150.  
  151. ****************************************************************************
  152.  M U L T I  -  F U N C T I O N  -  P E R I P H E R A L   MC 68901  ( S T )
  153. ****************************************************************************
  154.  
  155. $FFFFFA00 [R/-] :$8F ******
  156. $FFFFFA01 [R/W] :$ED GPIP-Data
  157. $FFFFFA02 [R/-] :$8F ******
  158. $FFFFFA03 [R/W] :$04 Active-Edge
  159. $FFFFFA04 [R/-] :$8F ******
  160. $FFFFFA05 [R/W] :$00 Data-Direction
  161. $FFFFFA06 [R/-] :$8F ******
  162. $FFFFFA07 [R/W] :$DE Interrupt-Enable A
  163. $FFFFFA08 [R/-] :$8F ******
  164. $FFFFFA09 [R/W] :$64 Interrupt-Enable B
  165. $FFFFFA0A [R/-] :$8F ******
  166. $FFFFFA0B [R/W] :$02 Interrupt-Pending A
  167. $FFFFFA0C [R/-] :$8F ******
  168. $FFFFFA0D [R/W] :$60 Interrupt-Pending B
  169. $FFFFFA0E [R/-] :$8F ******
  170. $FFFFFA0F [R/W] :$00 Interrupt-In-Service A
  171. $FFFFFA10 [R/-] :$8F ******
  172. $FFFFFA11 [R/W] :$00 Interrupt-In-Service B
  173. $FFFFFA12 [R/-] :$8F ******
  174. $FFFFFA13 [R/W] :$5E Interrupt-Mask A
  175. $FFFFFA14 [R/-] :$8F ******
  176. $FFFFFA15 [R/W] :$64 Interrupt-Mask B
  177. $FFFFFA16 [R/-] :$8F ******
  178. $FFFFFA17 [R/W] :$48 Interrupt-Vektor
  179. $FFFFFA18 [R/-] :$FF ******
  180. $FFFFFA19 [R/W] :$00 Timer-A-Control
  181. $FFFFFA1A [R/-] :$8F ******
  182. $FFFFFA1B [R/W] :$00 Timer-B-Control
  183. $FFFFFA1C [R/-] :$8F ******
  184. $FFFFFA1D [R/W] :$51 Timer-C+D-Control
  185. $FFFFFA1E [R/-] :$8F ******
  186. $FFFFFA1F [R/W] :$00 Timer-A-Data
  187. $FFFFFA20 [R/-] :$8F ******
  188. $FFFFFA21 [R/W] :$FF Timer-B-Data
  189. $FFFFFA22 [R/-] :$9F ******
  190. $FFFFFA23 [R/W] :$AA Timer-C-Data
  191. $FFFFFA24 [R/-] :$8F ******
  192. $FFFFFA25 [R/W] :$02 Timer-D-Data
  193. $FFFFFA26 [R/-] :$8F ******
  194. $FFFFFA27 [R/W] :$00 Synchronous-Character
  195. $FFFFFA28 [R/-] :$8F ******
  196. $FFFFFA29 [R/W] :$88 USART-Control
  197. $FFFFFA2A [R/-] :$8F ******
  198. $FFFFFA2B [R/W] :$09 Receiver-Status
  199. $FFFFFA2C [R/-] :$FF ******
  200. $FFFFFA2D [R/W] :$85 Transmitter-Status
  201. $FFFFFA2E [R/-] :$CF ******
  202. $FFFFFA2F [R/W] :$FF USART-Data
  203.  
  204.  
  205.  
  206. ****************************************************************************
  207.          K E Y B O A R D  /  M I D I  -  A C I A S   6850  ( S T )
  208. ****************************************************************************
  209.  
  210. $FFFFFC00 [R/-] :$83 Keyboard-Status
  211.           [-/W] :$83 Keyboard-Control
  212. $FFFFFC01 [R/-] :$FF ******
  213. $FFFFFC02 [R/-] :$9C Keyboard-Receive
  214.           [-/W] :$9C Keyboard-Send
  215. $FFFFFC03 [R/-] :$FF ******
  216. $FFFFFC04 [R/-] :$02 Midi-Status
  217.           [-/W] :$02 Midi-Control
  218. $FFFFFC05 [R/-] :$FF ******
  219. $FFFFFC06 [R/-] :$02 Midi-Receive
  220.           [-/W] :$02 Midi-Send
  221. $FFFFFC07 [R/-] :$FF ******
  222.  
  223.  
  224.  
  225. ****************************************************************************
  226.                                 ? ? ? ? ? ?
  227. ****************************************************************************
  228.  
  229. $FFFFFF82 [R/-] :$1C new
  230. $FFFFFF83 [R/-] :$00 new
  231.  
  232.  
  233.  
  234.  
  235. ******************************** END OF FILE *******************************
  236.  
  237.