Communications Controller
CMX850
a) Single byte (General Reset $01)
MOV CBUSCON, #01h
MOV CBUSBUF, #01h
MOV CBUSCON, #00h
b) Write 8-bit reg (address $E3) with one data byte ($55)
MOV CBUSCON, #01h
MOV CBUSBUF, #0E3h
MOV CBUSBUF, #55h
MOV CBUSCON, #00h
c) Write 16-bit reg (address $E1) with 2 data bytes ($AC and $BC)
MOV CBUSCON, #01h
MOV CBUSBUF, #0E1h
MOV CBUSBUF, #0ACh
MOV CBUSBUF, #0BCh
MOV CBUSCON, #00h
d) Read 8-bit reg (address $E5) and store byte in Accumulator
MOV CBUSCON, #01h
MOV CBUSBUF, #0E5h
MOV CBUSBUF, #00h ; Dummy write
NOP
MOV A, CBUSBUF
MOV CBUSCON, #00h
e) Read 16-bit reg (address $E6) and store two bytes @R0
MOV CBUSCON, #01h
MOV CBUSBUF, #0E6h
MOV CBUSBUF, #00h ; Dummy write
NOP
MOV @R0, CBUSBUF
MOV CBUSBUF, #00h ; Dummy write
INC R0
MOV @R0, CBUSBUF
MOV CBUSCON, #00h
Table 5 Example of each of the five types of C-BUS transaction
1.5.9.1 C-BUS Control Register (CBUSCON)
CBUSCON: SFR Address $EA
b0 cleared to 0 on reset. b2-1 are read only.
Bit:
7
6
5
4
3
2
0
0
0
0
0
IRQ
CBUSCON Register b7-3: Unused, set to 0
1
0
X
C-BUS
select
© 2003 CML Microsystems Plc
42
D/850/6