参数资料
型号: 20-151-0178
厂商: Rabbit Semiconductor
文件页数: 75/162页
文件大小: 0K
描述: CABLE CONVERTER RS-232 TO USB
标准包装: 1
附件类型: USB 至 RS232 适配器
适用于相关产品: 基于 Rabbit 的板
产品目录页面: 619 (CN2011-ZH PDF)
其它名称: 20-151-0178-ND
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:
#define flex_greenled flex_c1p3
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:
static const Flex_IOPin *leds[] = {
&flex_c2p1,
&flex_c2p2,
&flex_c2p3,
FLEX_GROUP_END
};
This example creates a pin group of 3 digital outputs. To set these outputs, we could do the following:
flexDigOutGroup16(leds, 0x05);
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:
0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 1
&flex_c2p1
&flex_c2p2
&flex_c2p3
FLEX_GROUP_END
A digital input group works similarly:
flexDigInGroup16(switches, &result);
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
69
相关PDF资料
PDF描述
MAX11200EVKIT+ KIT EVALUATION FOR MAX11200
HCC06DRTF-S13 CONN EDGECARD 12POS .100 EXTEND
HK1608R47J-T INDUCTOR HI FREQ 470NH 5% 0603
PCM16XD0 PROCESSOR MODULE FOR MPLAB-ICE
SDR1006-681KL INDUCTOR POWER 680UH 0.28A SMD
相关代理商/技术参数
参数描述
20-151-0183 功能描述:处理器配件 UNIVL PWRSUPLY 12VDC 1A/W MOLEX MICROFIT3 RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
2015103-1 制造商:TE CONNECTIVITY 功能描述:RF C/A, RT ANG QMA/DIN 1.0/2.3 CONN
2015-104 制造商:The Bergquist Company 功能描述:THERMAL PAD TO-3P PK5 制造商:The Bergquist Company 功能描述:THERMAL PAD, TO-3P, PK5 制造商:The Bergquist Company 功能描述:THERMAL PAD, TO-3P, PK5; Insulator Body Material:Silicone Elastomer; Thermal Conductivity:3.5W/m.K; Breakdown Voltage Vbr:4kV; Thickness:0.508mm; Volume Resistivity:100000Mohm-m; SVHC:No SVHC (19-Dec-2012); Electrical Property Ins /
2015-104 制造商:The Bergquist Company 功能描述:THERMAL PAD TO-3P 制造商:The Bergquist Company 功能描述:THERMAL PAD, TO-3P
201511 制造商:Phoenix Contact 功能描述:Misc Products