Download Print this page

Xycom XVME-400 Manual page 40

Quad serial i/o modules

Advertisement

XVME-400/40l/490/491 Manual
October, 1989
3.8 PROGRAMMING EXAMPLE
********************************************************************************
*
*
*
*
*
*
*
*
*********************************************************************************
BASE
EQU
$OOFFOOOO
EQU
S T A C K
SCClAC
EQU
ORG
START
M0VEA.L
M0VE.W #$2000,SR
* Configure cha nnel
LEA.L
M0VE.W
BSR.S
* Read a character from channel A of SCC #l
LOOP
LEA.L
BSR
* Write a charac ter to channel A of SCC #l
LEA.L
BSR
BSR.S
XVME-400/40 l/490/49 1 Sample Program
Polled mode - Asynchronous Operation
EQUATES
$A00
BASE+13
$800000
#STACK,A7
of SCC
A
#l
SCClAC,AO
#$000A,D7
ASYNC
INIT * Initialize channel
SCClAC,A3
RPOLA
SCC 1 AC,A2
TPOLA
L O O P
- -
* Base address of module
* Start of stack
* SCC #l control register
* Load stack pointer
* Load status register
* Load address of module
* 9600 baud time constant
* Load address of SCC control reg.
* Get a character
* Load address of SCC control reg.
* Echo the character
3-12
A

Advertisement

loading
Need help?

Need help?

Do you have a question about the XVME-400 and is the answer not in the manual?

This manual is also suitable for:

Xvme-401Xvme-490Xvme-491