XVME-200/290 Manual
December, 1987
3.5 PROGRAMMKNG EXAMPLES
The two 68000 CPU code programming examples which follow, demonstrate general
methods of initialization of the 68230 PI/T devices on the XVME-200 and XVME-290
Modules. The following equates will be used in both examples:
; Interrupt vectors.
PVCTR EQU $___
TVCTR EQU $___
; Port interrupt vector.
; Timer interrupt vector.
; Values to preload counter.
CHIGH
EQU $____
; High byte.
CMID EQU $___ ; Middle byte.
CLOW E Q U
$___ ; Low byte.
; 68230 Base Address and Register Offsets.
BASE200 EQU $
; XVME-200 Module base address
(jumper selectable).
PI/TlBASEQU
BASE200
+ $00; 68230 PI/T
#l base address.
PI/T2BASEQU BASE200 + $40; 68230 PI/T #2 base address.
PCGR
PSRR
PADDR
PBDDR
PCDDR
PIVR
PACR
P B C R
PADR
PBDR
PAAR
PBAR
PCDR
P S R
T C R
TIVR
C P R H
CPRM
CPRL
CNTRH
CNTRM
C N T R L
T S R
EQU $01
; Port general control register.
EQU $03
; Port service request register.
EQU $05
; Port A data direction register.
EQU $07
; Port B data direction register.
EQU $09
; Port C data direction register.
EQU
$OB
; Port interrupt vector register.
EQU $OD ; Port A control register.
EQU
$OF
; Port B control register.
EQU$ll
; Port A data register.
EQU $13
; Port B data register.
EQU $15
; Port A alternate register
EQU $17
; Port B alternate register.
EQU $19
; Port C data register.
EQU $lB ; Port status register.
EQU $21
; Timer control register.
EQU $23
; Timer interrupt vector register.
EQU $27
; Counter preload register - high byte.
EQU $29
; Counter preload register - mid byte.
EQU
$2B
; Counter preload register - low byte.
EQU $2F
; Count register - high byte.
EQU $31
; Count register - mid byte.
EQU $33
; Count register - low byte.
EQU $35
; Timer status register.
3-10
Summary of Contents for XVME 200
Page 1: ......
Page 2: ......
Page 3: ......
Page 4: ......
Page 7: ......
Page 8: ......
Page 14: ......
Page 15: ......
Page 16: ......
Page 23: ......
Page 31: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......