![Midas RTE-V821-PC User Manual Download Page 25](http://html1.mh-extra.com/html/midas/rte-v821-pc/rte-v821-pc_user-manual_1790084025.webp)
RTE-V821-PC
USER’ S MANUAL
24
10.5. OUTB, OUTH, AND OUTW
<Format>
OUTB [[address] data]
OUTH [[address] data]
OUTW [[address] data]
Write to an I/O register. The OUTB, OUTH, and OUTW commands access in byte, halfword,
and word units, respectively. If an address or data is omitted, the previous address or data is
assumed.
<Example>
OUTH 2000 55AA
Writes the halfword 55AAH to a register at 2000H.
10.6. SFR
<Format>
SFR [register-name [=data]]
The SFR command is used to reference and set the internal I/O registers in the V821. The
registers listed below can be specified in the SFR command. This list appears when both
register name and data are omitted from the SFR command.
PMC0, PM0, P0, BCTC, PWC0, PWC1, PWC2, DRC, RFC, PRC, DSA0H, DSA0L,
DDA0H, DDA0L, DSA1H, DSA1L, DDA1H, DDA1L, DBC0, DBC1, DCHC0, DCHC1, TUM0,
TMC0, TMC1, TOC0, TOVS, ASIM, ASIS, RXB, RXBL, TXS, TXSL, CSIM, SIO, BRG,
BPRM, IGP, ICR, IRR, IMR, IMOD, WDTM, STBC, CGC
If a register is specified in the SFR command, but data is not, the command displays data read
from the register. If a register and data following "=" are specified in the SFR command, the
data is written to the register. The size of the data is determined automatically according to the
effective size of the specified register. See the applicable V821-CPU manual for details of
internal I/O registers.
<Example 1>
SFR
This command displays a list of registers.
<Example 2>
SFR PMC0
This command displays the contents of the register PMC0.
<Example 3>
SFR P0=A2
This command writes the data A2H to the I/O register P0.