Embedded Target for Texas Instruments C6000 DSPs | ![]() ![]() |
Simulate or read the user-defined DIP switches on the C6701 EVM
Library
c6701evmlib in Embedded Target for TI C6000 DSP
Description
Added to your model, this block behaves differently in simulation than in code generation and targeting.
In simulation--the options USER0, USER1, and USER2 generate output to simulate the settings of the user-defined dual inline pin (DIP) switches on your C6701 EVM. Each option turns the associated DIP switch on when you select it. The switches are independent of one another.
By defining the switches to represent actions on your target, DIP switches let you modify the operation of your simulated process by reconfiguring the switch settings.
Use the Data type to specify whether the DIP switch options output an integer or a logical string of bits to represent the status of the switches. The table that follows presents all the option setting combinations with the result of your Data type selection.
Selecting the Integer data type results in the switch settings generating an integer in the range from 0 to 7 (uint8), corresponding to converting the string of individual switch settings to a decimal value. In the Boolean data type, the output string presents the separate switch setting for each switch, with the status of USER0 represented by the least significant bit (LSB) and the USER2 status represented by the most significant bit (MSB).
In code generation and targeting--the code generated by the block reads the physical switch settings of the user switches on the board and reports them as shown in Table 6-5. Your process uses the result in the same way whether simulating a process or generating code. In code generation and when running your application, the block code ignores the settings for USER0, USER1, and USER2 in favor of the hardware switch settings. When the block reads the switch settings, it reports the status as shown in Table 6-5, Output Values From the User DIP Switches on the C6701 EVM.
Dialog Box
For further information about the user-defined DIP switches on the board, refer to your Texas Instruments TMS320C6201/6701 Evaluation Module Technical Reference.
![]() | C6701 EVM DAC | C6701 EVM LED | ![]() |