![Laird BTM510 User Manual Download Page 79](http://html.mh-extra.com/html/laird/btm510/btm510_user-manual_670440079.webp)
79
www.lairdtech.com
Laird Technologies
BTM510/511
Bluetooth
®
Multimedia Module
GPIO Pin
(BTM510/511)
Alternative Function
Handshaking
Wi-Fi Coexistence
GPIO1
-
BT_Active (1)
GPIO2
DCD
-
GPIO3
DSR
-
GPIO4
RI
-
GPIO5
-
BT_State/BT_Priority
GPIO6
-
Wlan_Active
GPIO7
-
Rf_Active
GPIO8
DTR
-
(1) BT_Active = RxEnable OR TxEnable
GPIO - Alternative Functions
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
function mapping code / av_operation_id
Reserved
FMS FME INV
DIR
PS
Default 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 3.29: GPIO configuration register
Field
Description
0 – PS
I/O Pin State – returns the current state of the I/O pin (0/1) when read
A write affects the I/0 pin directly if DIR=1 and FME=0.
1 – DIR
Direction – controls if the I/O pin is an input or an output.
0 input
1 output
2 – INV
Inversion – controls if the I/O pin is inverted or not. Applies to both pin directions
(read and write).
0 not inverted
1 inverted
3 – FME
Function Mapping Enable – Enables function mapping of the pin. A function
mapping code or an av_operation_id must be set in GPIO configuration register
[8:15]. The pin will carry out the assigned operation and is not accessible anymore
as GPIO.
0 disable function mapping
1 enable function mapping
4 – FMS
Function Mapping Select – Selects if a Function Mapping Code (see Table 3.46)
or an av_operation_id (see Table 3.20) is set in GPIO configuration register [8:15].
Valid only if FME=1.
0 select Function Mapping Code (Table 3.46)
1 select av_operation_id (Table 3.20)
[5:7]
Reserved
[8:15]
function mapping code /
av_operation_id
A Function Mapping Code (FMC, Table 3.46) or an av_operation_id (Table 3.20) is
set in this bit field. The pin is mapped to a profile specific function (A2DP,HFP) or
to an AVRCP remote control operation and will carry out the assigned operation.
A mapped function does not affect any other flag of the GPIO configuration reg
-
ister. So, e.g. DIR and INV must be set manually according to the selected function
and hardware requirements.
Valid only if FME=1.
FMS selects function mapping code or av_operation_id.
See also section 6.1, on page 80 “Profile specific GPIO function mapping”
And section 5.5 on page 53 “AVRCP GPIO Mapping”
Table 3.44: GPIO Configuration Register Field Descriptions
AT COMMAND SET
REFERENCE