BL4S200 User’s Manual
188
D.2 High-Current Output Pin Associations
D.3 Interpreting Error Codes
Some BL4S200 function calls may return a
Mode Conflict
error code. This error code is a
4-bit value that identifies other pins using the same counter/timer block on a particular
RIO chip that require this block to be in a mode that conflicts with the functionality that
has already been requested — the additional functionality requested cannot be supported.
The error code also helps you identify the other pins whose functionality needs to change to
possibly allow the latest function call to succeed.
The bit values in the
Mode Conflict
error codes have the following meanings.
•
Bits [7:4] don’t matter, will always be zero
•
Bit 3 — Pin 3 of this block has a mode conflict
•
Bit 2 — Pin 2 of this block has a mode conflict
•
Bit 1 — Pin 1 of this block has a mode conflict
•
Bit 0 — Pin 0 of this block has a mode conflict
By looking at the tables in this appendix, you can identify the other pins that share the RIO
counter/timer block with the pin(s) that returned the
Mode Conflict
error code. For example,
if you already configured DIO8 and DIO9 as Quadrature Decoder inputs, then try to set
DIO11 as a counter input, the function call will return a
Mode Conflict
error code of 3.
This error code is a 4-bit value that identifies other pins other pins using the same coun-
ter/timer block that conflict with the requested function. In this case, 3 is 0011, which indi-
cates that pin 1 and pin 2 of the block used by DIO11 have the conflicts — they are using
the counter/timer in a way that conflicts with setting DIO11 as a counter input. Looking at
Table D-1, you find DIO11 is using block 3 on RIO chip 1, and pin 0 and pin 1 of this
block are used by DIO8 and DIO9. Therefore you cannot use DIO11 as a counter input
unless you remove the Quadrature Decoder inputs from this block. This illustrates how the
Mode Conflict
error code can be used to identify the pin functions that cannot mix together
on the same RIO block.
Table D-2. High-Current Output Pin Associations
High-Current
Output Pin
RIO Chip
Block
Sinking
Sourcing
Pin
Pin
HOUT0
0
0
0
1
HOUT1
2
3
HOUT2
1
0
1
HOUT3
2
3
HOUT4
2
0
1
HOUT5
2
3
HOUT6
3
0
1
HOUT7
2
3
electronic components distributor