BTM410/411
Bluetooth
®
AT Data Module
39
www.lairdtech.com
Laird Technologies
AT COMMAND SET
REFERENCE
AT COMMAND SET
REFERENCE
Table 3-20: GPIO configuration register
Bit
15
14
13 12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
FME
INV DIR
PS
Default
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Table 3-21: GPIO Configuration Register Field Descriptions
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 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:15]
Reserved
Table 3-22: GPIO S registers
Register
GPIO
Default Range
Description
S650
0
0..1
Mode for GPIO Config Registers:
0 = no mask;
1 = enable i/o pin state Mask
S651
GPIO1
0x0000 0..0xFFFF
GPIO Configuration Registers
S650 must be set to 0 to enable configuration
access
Controls Pin State, Pin Direction, Pin Inversion,
Function
Mapping Enable, Function Mapping Select and
Function
Mapping Code / av_operation_id.
See Table 3-21: GPIO Configuration Register Field
Descriptions
S652
GPIO2
S653
GPIO3
S654
GPIO4
S655
GPIO5
S656
GPIO6
S657
GPIO7
S658
GPIO8
S670
GPIO1..8
0x0000 0..0xFF
Read/Write all GPIOs in one atomic step (Write
operation only affects GPIOs configured as
outputs)
0x0001: GPIO1
0x0002: GPIO2
0x0004: GPIO3
0x0008: GPIO4
0x0010: GPIO5
0x0020: GPIO6
0x0040: GPIO7
0x0080: GPIO8
Содержание BTM410
Страница 1: ...1 Version 3 0 ...