OUT *(PA),loc16
SYNTAX OPTIONS
OUT *(PA),loc16
Operands
*(PA)
loc16
Description
Flags and
Modes
Repeat
Example
; IORegA address = 0x0300;
; IOREgB address = 0x0301;
; IOREgC address = 0x0302;
; IORegA = 0x0000;
; IORegB = 0x0400;
; IORegC = VarA;
; if( IORegC = 0x2000 )
;
IORegA
IORegB
IORegC
MOV
UOUT
MOV
UOUT
OUT
Immediate I/O space memory address
Addressing mode (see Chapter 5)
Store the 16-bit value from the location pointed to by the "loc16" addressing
mode into the I/O space location pointed to by the *(PA) operand):
IOspace[0x0000PA] = [loc16];
I/O Space is limited to 64K range (0x0000 to 0xFFFF). On the external
interface (XINTF), if available on a particular device, the I/O strobe signal
(XISn) is toggled during the operation. The I/O address appears on the lower
16 XINTF address lines (XA(15:0)) and the upper address lines are zeroed.
The data appears on the lower 16 data lines (XD(15:0).
Note:
The UOUT operation is not pipeline protected. Hence, if an IN instruction immediately
follows a UOUT instruction, the IN will occur before the UOUT. To be certain of the
sequence of operation, use the OUT instruction, which is pipeline protected.
Note:
The UOUT operation is not pipeline protected. Therefore, if an IN instruction
immediately follows a UOUT instruction, the IN will occur before the UOUT. To be
certain of the sequence of operation, use the OUT instruction, which is pipeline
protected.
I/O space may not be implemented on all C28x devices. See the data sheet for your
particular device for details.
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
IORegC = 0x0000;
.set
0x0300
.set
0x0301
.set
0x0302
@AL,#0
*(IORegA),@AL
@AL,#0x0400
*(IORegB),@AL
*(IORegC),@VarA
OPCODE
1011 1100 LLLL LLLL
CCCC CCCC CCCC CCCC
; Define IORegA address
; Define IORegB address
; Define IORegC address
; AL = 0
; IOspace[IORegA] = AL
; AL = 0x0400
; IOspace[IORegB] = AL
; IOspace[IORegC] = VarA
OUT *(PA),loc16
Output Data to Port
OBJMODE
RPT
CYC
1
−
4
6-265
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?