欢迎访问ic37.com |
会员登录 免费注册
发布采购

RFM22-868-S1 参数 Datasheet PDF下载

RFM22-868-S1图片预览
型号: RFM22-868-S1
PDF下载: 下载PDF文件 查看货源
内容描述: ISM收发器模块 [ISM Transceiver module]
分类和应用: ISM频段
文件页数/大小: 150 页 / 3773 K
品牌: HOPERF [ HOPERF ]
 浏览型号RFM22-868-S1的Datasheet PDF文件第57页浏览型号RFM22-868-S1的Datasheet PDF文件第58页浏览型号RFM22-868-S1的Datasheet PDF文件第59页浏览型号RFM22-868-S1的Datasheet PDF文件第60页浏览型号RFM22-868-S1的Datasheet PDF文件第62页浏览型号RFM22-868-S1的Datasheet PDF文件第63页浏览型号RFM22-868-S1的Datasheet PDF文件第64页浏览型号RFM22-868-S1的Datasheet PDF文件第65页  
RFM22  
8.8. GPIO Configuration  
Three general purpose IOs (GPIOs) are available. Numerous functions such as specific interrupts, TRSW control,  
Microcontroller Output, etc. can be routed to the GPIO pins as shown in the tables below. When in Shutdown mode  
all the GPIO pads are pulled low.  
Note: The ADC should not be selected as an input to the GPIO in Standby or Sleep Modes and will cause excess current  
consumption.  
POR  
Def.  
Function/D  
escription  
GPIO0  
D7  
D6  
D5  
D4  
D3  
D2  
D1  
D0  
Add R/W  
gpio0  
gpio0dr  
v[0]  
R/W  
pup0  
Pup1  
Pup2  
gpio0[4] gpio0[3] gpio0[2] gpio0[1] gpio0[0]  
gpio1[4] gpio1[3] gpio1[2] gpio1[1] gpio1[0]  
gpio2[4] gpio2[3] gpio2[2] gpio2[1] gpio2[0]  
00h  
00h  
00h  
00h  
0B  
Configuration drv[1]  
GPIO1 Gpio1  
Configuration drv[1]  
GPIO2 Gpio2  
gpio1dr  
v[0]  
R/W  
0C  
gpio2dr  
v[0]  
R/W  
0D  
Configuration drv[1]  
I/O Port  
extitst[  
1]  
R/W  
extitst[2]  
extitst[0]  
itsdo  
dio2  
dio1  
dio0  
0E  
Configuration  
The GPIO settings for GPIO1 and GPIO2 are the same as for GPIO0 with the exception of the 00000 default  
setting. The default settings for each GPIO are listed below:  
GPIO  
00000Default Setting  
POR  
GPIO0  
GPIO1  
GPIO2  
POR Inverted  
Microcontroller Clock  
The diagrams in Figure 30 show two different configurations/usage of the GPIO. In Configuration A an external  
sensor is used and the GPIO is configured as an input with the 00101 External Interrupt, Rising Edge setting.  
When the sensor is triggered the nIRQ pin will go high and the microcontroller will be able to read the interrupt  
register and know that an event occurred on the sensor. The advantage of this configuration is that it saves a  
microcontroller pin. This application utilizes the high output power so a TRSW is required.  
In Configuration B, the module is configured to provide the System Clock output to the microcontroller so that only  
one crystal is needed in the system, therefore reducing the BOM cost. For the TX Data Source, Direct Mode is used  
because long packets are desired with a unique packet handling format already implemented in the microcontroller.  
In this configuration the TX Data Clock is configured onto GPIO0, the TX Data is configured onto GPIO1, and the  
Microcontroller System Clock output is configured onto GPIO2. In this application only the lowest output power  
setting is required so no TRSW is needed.  
For a complete list of the available GPIO's see ―Register 0Ch. GPIO Configuration 1,‖ ,―Register 0Dh.  
GPIO Configuration 2,‖, and ―Register 0Eh. I/O Port Configuration,‖.  
61  
Tel: +86-755-82973805  
Fax: +86-755-82973550  
E-mail: sales@hoperf.com  
http://www.hoperf.com  
 复制成功!