TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 111

MODULE, BLUETOOTH, DATA ACQUISITION

TOOTHPIC

Manufacturer Part Number
TOOTHPIC
Description
MODULE, BLUETOOTH, DATA ACQUISITION
Manufacturer
RF Solutions
Datasheet

Specifications of TOOTHPIC

Svhc
No SVHC (15-Dec-2010)
To enter sniff mode, use the BMTC_Sniff BlueMatik command. To exit sniff mode, use the BMTC_SniffX
BlueMatik command. Appropriate BMTE_LoPower events will be generated upon entry and exit of sniff mode.
The remote Bluetooth device may also request entry or exit of sniff mode, which will also generate
BMTE_LoPower events.
To set the sniff parameters, use the BMTC_General command as in the following example:
The first argument is the maximum negotiable T
is T
interval in units of 625µS.
As a rule of thumb, T
values are: minimum and maximum T
0x0008, i.e. 5ms (3% of T
Once set up, sniff mode is transparent to the developer.
Park mode
A Park mode exists within the Bluetooth protocol, but it is not supported by BlueMatik.
Pushbutton and LED functions
To control and read the LEDs and the pushbutton, use the following definitions:
Pulse Width Modulation
The PIC18LF6720’s PWM outputs are available for developer use on the CCP pins. The Hardware Peripheral
Library provided with C18 provides PWM functions.
Real Time Clock
If BQS_RealTimeClock is set in the ToothPICSettings flags, timer 1 is initialized for use as a real time
clock. The developer may override this setting by clearing this flag. This will have the following effects:
Page 111
// Set sniff parameters (max, min, attempt, timeout, hex units of 625us)
BMTCommand( BMTC_General, 0, (rom void *)"AT+BSNP=0200,0080,0008,0008\r" );
AwaitBMTOK;
attempt
• The real time clock will not advance.
• Pings will not be sent to FlexiPanel clients.
• The software interrupt SWI_Tick will never be generated by the real time clock.
InitPBandLEDs
LedGreen
LedGreenOn
LedGreenOff
LedGreen
LedGreenOn
LedGreenOff
PushButton
PushButtonOn
PushButtonOff
; the fourth is T
9-Apr-06
Toothpick 3.0.00007
attempt
timeout
interval
and T
).
. All are four-digit hexadecimal numbers representing the time of the hold
timeout
DS380-8
timeout
Initializes LEDs to off outputs and pushbutton to input
Green LED state
Green LED on
Green LED off
Red LED state
Red LED on
Red LED off
Pushbutton state
Nonzero if Pushbutton pressed, zero otherwise
Zero if Pushbutton pressed, nonzero otherwise
may as well be equal and about 2% to 5% of T
are both 0x0100, i.e. 160ms; T
interval
© FlexiPanel Ltd
; the second is the minimum negotiable T
Patents apply and/or pending
attempt
and T
interval
www.FlexiPanel.com
timeout
interval
. The default
; the third
are both

Related parts for TOOTHPIC