WordIn Reports Erroneous Information

Tech Note: TN0269
Product: RPvdsEx
Version: All
Date Added: 2007-10-02

Issue

The WordIn component will give erroneous information when the bit mask is set to values that are outside of the bit range available on the device.

Solution

The WordIn component should be set with a bit mask that corresponds to the physical hardware of the device. First, determine the technical specifications of your device. Once the device's bit range is known, the selectable bit mask range can be determined.

For example, the RP2.1 technical specification states that it has 8 bits of digital I/O, so the maximum range would be

0000 0000 to 1111 1111 or 0 to 255

For more information on using WordIn, see Addressing Digital Bits In a Word.