TC1784
Peripheral Control Processor (PCP)
User´s Manual
10-121
V1.1, 2011-05
PCP, V2.09
10.18.29 PRI, Prioritize
This section describes the PRI instruction of the PCP.
PRId
Syntax
PRI Rb, Ra, cc_A
Description
If condition CONDCA is true, then find the bit position of the
most significant 1 in register Ra and put the number into
register Rb. The bit location, 31-0, is encoded as a 5-bit
number stored in Rb[4:0]. If the contents of Ra is zero, bit
Rb[5] is set, while all other bits in Rb are cleared. If CONDCA
is false, no operation is performed.
Operation
if (CONDCA = False) then
NOP
else
if (R[a] = 0) then
R[b] = 0x20
else
R[b] = bit_pos(most_significant_1(R[a]))
Flags
N, Z
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...