Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TMS320C2x DSP - syntax direct [<label>] out <dma>,<pa> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SYNTAX      DIRECT   [<LABEL>] OUT <dma>,<PA>
            INDIRECT [<LABEL>] OUT {ind},<PA>[,<next ARP>]

OPERANDS    0 . dma . 127; 0 . next ARP . 7;
            0 . port address PA . 15.

EXECUTION   (PC) + 1 . PC
            Port address PA . address bus A3-A0
            (dma) . data bus D15-D0

DESCRIPTION The OUT instruction writes a 16-bit value from a data memory
                                                    __
            location to the specified I/O port. The IS line goes low to
                                            ____    _
            indicate an I/O access, and the STRB, R/W, and READY are the
            same as for an external data memory write. OUT is a single
            cycle instruction when in the PI/DI memory configuration.

WORDS       1

ENCODING    15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |1  1  1  0|port address|0| data memory address | DIRECT
            +-----------------------------------------------+

            15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |1  1  1  0|port address|1| see indirect fields | INDIRECT
            +-----------------------------------------------+

CYCLES

            +-----------------------------------------------------+
            |       Cycle Timings for a Single Instruction        |
            |-----------------------------------------------------|
            |PI/DI| PI/DE  | PE/DI  |    PE/DE   | PR/DI |  PR/DE |
            |-----+--------+--------+------------+-------+--------|
      '20   | 1+i |  2+d+i | 2+p+i  |  3+d+p+i   |   -   |    -   |
            |-----+--------+--------+------------+-------+--------|
     'C25   | 1+i |  2+d+i | 2+p+i  |  3+d+p+i   |  1+i  | 2+d+i  |
            |-----------------------------------------------------|
            |       Cycle Timings for a Repeat Instruction        |
            |-----------------------------------------------------|
      '20   |n+ni |2n+nd+ni| 2n+p+ni| 3n+nd+p+ni |   -   |    -   |
            |-----+--------+--------+------------+-------+--------|
     'C25   |n+ni |2n+nd+ni|1+n+p+ni|1+2n+nd+p+ni| n+ni  |2n+nd+ni|
            +-----------------------------------------------------+



EXAMPLE     OUT   >78,7    (DP = 4) Output data word stored in data memory
                                    location >78 to peripheral on port
                                    address 7.

EXAMPLE     OUT   *,>F              Output data word referenced by current
                                    auxiliary register to peripheral on
                                    port address >F.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson