20-151-0178 Rabbit Semiconductor, 20-151-0178 Datasheet - Page 75

CABLE CONVERTER RS-232 TO USB

20-151-0178

Manufacturer Part Number
20-151-0178
Description
CABLE CONVERTER RS-232 TO USB
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-151-0178

Accessory Type
USB to RS232 Adapter
Product
Microcontroller Accessories
For Use With/related Products
Rabbit-based Boards
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
20-151-0178
316-1181
If you would like to change your pin software names after you have designed your board, then it is possi-
ble to modify your design-specific generated library. You must search the library for all references to the
name that you wish to change. Note, however, that if you do modify your design-specific library, you will
be responsible for maintaining that library. The version in your RabbitFLEX account will no longer be
synchronized with your modified version. A better way of renaming may be to use a macro define, like
this:
6.3.3 Pin Groups
One useful feature in the digital input and output software support is the concept of pin groups. A pin
group can be used to read a number of inputs or set a number of outputs with one function call.
First, the pin group must be defined. A pin group is an array of Flex_IOPin pointers
(Flex_IOPin *). The group must be terminated by an element called FLEX_GROUP_END.
For example:
This example creates a pin group of 3 digital outputs. To set these outputs, we could do the following:
The first parameter is the pin group, and the second parameter contains the values with which to set the
digital outputs. The least significant bit is written to the first pin in the pin group; the next least significant
bit is written to the second pin in the pin group; etc. The following diagram demonstrates this process:
A digital input group works similarly:
In this case, the state of the first pin in the pin group is placed in the least significant bit of result; the state
of the second pin is placed in the next least significant bit of the result; etc.
RabbitFLEX User’s Manual
#define flex_greenled flex_c1p3
static const Flex_IOPin *leds[] = {
};
flexDigOutGroup16(leds, 0x05);
flexDigInGroup16(switches, &result);
&flex_c2p1,
&flex_c2p2,
&flex_c2p3,
FLEX_GROUP_END
www.rabbit.com
69

Related parts for 20-151-0178