User's Manual

BT900-Sx Hardware Integration Guide
Intelligent BTv4.0 Dual Mode Module
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/bluetooth
27 CONN-HIG-BT900
Table 16: I2C Interface
Signal Name Pin No I/O Comments
I2C_SDA 11 I/O This interface is an alternate function on each pin,
configurable by smartBASIC. I2COPEN() in smartBASIC
selects I2C function.
I2C_SCL 12 I/O
5.8
General Purpose I/O, ADC and Quadrature Decoder
5.8.1 GPIO
The 18 SIO pins are configurable by smartBASIC. They can be accessed individually. Each has the
following user configured features:
Input/output direction
Output drive strength (4mA)
Internal pull up resistors (33K typical) or no pull-up.
Wake-up from high or low level triggers on all pins.
GPIO pins (pinswhose names begin with “BT”
5.8.2 Quadrature Decoder
The following feature exists in hardware but cannot be configured in the firmware currently:
The quadrature decoder provides buffered decoding of quadrature-encoded sensor
signals. It is suitable for mechanical and optical sensors with an optional LED output signal
and input debounce filters. The sample period and accumulation are configurable to
match application requirements. All pins individually can be configured to carry
quadrature demodulator signals.
5.8.3 ADC
The ADC is an alternate function on SIO pins, configurable by smart
BASIC.
The BT900 provides access to six-channel 12-bit incremental ADC. This enables sampling multiple
external signals through a front end MUX. The ADC has configurable input and TBD.
Note: Current smartBASIC runtime engine firmware (v9.x.y.z) provides access to 12-bit mode
resolution only.
5.8.3.1
Analog Interface (ADC)
Table 17: Analog interface
Signal Name Pin No
I/O Comments
AIN
Analog Input
2
4
I
This interface is an alternate function on each pin,
configurable by smartBASIC. AIN configuration
selected using GpioSetFunc() function.
Up to 12bit resolution.
AIN
Analog Input
4
5
I
5.8.4 APWM and FREQ signal output on upto xSIO pins
The PWM and FREQ output is an alternate function on SIO pins, configurable by smart
BASIC.
The ability to output a PWM (Pulse Width Modulated) signal or FREQ output signal on up to x GPIO
(SIO) output pins has been added since smartBASIC runtime engine firmware v9.x.y.z and can be
selected using GpioSetFunc() function.
PWM output signal has a frequency and duty cycle property. PWM output is generated using
xx-bit hardware timers. The timers are clocked by a xMHz clock source. Frequency is adjustable