Manual

RF22
Version: 0.1 Date: 12/23/2008
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: sales@hoperf.com http://www.hoperf.com
61
Register 0Dh. GPIO Configuration 2
Bit D7 D6 D5 D4 D3 D2 D1 D0
Name gpiodrv2[1:0] pup2 gpio2[4:0]
Type R/W R/W R/W
Reset value = 00000000
Bit Name Function
7:6 gpiodrv2[1:0] GPIO Driving Capability Setting.
5 pup2 Pullup Resistor Enable on GPIO2.
When set to 1 the a 200 k resistor is connected internally between VDD and the pin if the  
GPIO is configured as a digital input.
4:0 gpio2[4:0] GPIO1pin Function Select.
00000: Power-On-Reset (output)
00001: Wake-Up Timer: 1 when WUT has expired (output)
00010: Low Battery Detect: 1 when battery is below threshold setting (output)
00011: Direct Digital Input
00100: External Interrupt, falling edge (input)
00101: External Interrupt, rising edge (input)
00110: External Interrupt, state change (input)
00111: ADC Analog Input
01000: Reserved (Analog Test N Input)
01001: Reserved (Analog Test P Input)
01010: Direct Digital Output
01011: Reserved (Digital Test Output)
01100: Reserved (Analog Test N Output)
01101: Reserved (Analog Test P Output)
01110: Reference Voltage (output)
01111: TX/RX Data CLK output to be used in conjunction with TX/RX Data pin (output)
10000: TX Data input for direct modulation (input)
10001: External Retransmission Request (input)
10010: TX State (output)
10011: TX FIFO Almost Full (output)
10100: RX Data (output)
10101: RX State (output)
10110: RX FIFO Almost Full (output)
10111: Antenna 1 Switch used for antenna diversity (output)
11000: Antenna 2 Switch used for antenna diversity (output)
11001: Valid Preamble Detected (output)
11010: Invalid Preamble Detected (output)
11011: Sync Word Detected (output)
11100: Clear Channel Assessment (output)
11101: VDD else : GND
Register 0Eh. I/O Port Configuration
Bit D7 D6 D5 D4 D3 D2 D1 D0
Name Reserved extitst[2] extitst[1] extitst[0] itsdo dio2 dio1 dio0
Type R R R R R/W R/W R/W R/W
Reset value = 00000000
Bit Name Function
7 Reserved Reserved.
6 extitst[2] External Interrupt Status.
If the GPIO2 is programmed to be external interrupt sources then the status can be read here.
5 extitst[1] External Interrupt Status.
If the GPIO1 is programmed to be external interrupt sources then the status can be read here.
4 extitst[0] External Interrupt Status.
If the GPIO0 is programmed to be external interrupt sources then the status can be read here.
3 itsdo Interrupt Request Output on the SDO Pin.
nIRQ output is present on the SDO pin if this bit is set and the nSEL input is inactive (high).