TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 102

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)
Since the FxPE_ClntUpdate command is not called, you must call it in quick succession for each control,
once all the control values have been modified. Refer to the header file comments immediately preceding the
macro definition for notes on usage.
pDevD, pDlgD and pCtlD macros
The file ToothPIC.h provides three data structures as alternative ways to access the information in the
FlexiPanel User Interface memory section. These are:
The file ToothPIC.h explains the contents of the data structures in more detail. The pDevD, pDlgD and
pCtlD macros provide pointers to these data structures as follows:
Initialization
Upon reset, ToothPIC performs a few initialization functions and then passes control to the address
0x00C000.
initializes RAM data and then calls main(). If main returns to c018itp.o, it is called again in an infinite loop.
The source code c018itp.c is provided in the software development kit and differs from c018itp.c
provided with the C18 compiler only in that _entry_scn is relocated to 0x00C000.
ToothPIC performs the following initialization functions:
If BlueMatik is attached, the following steps occur:
Page 102
• Initializes the software stack.
• Sets LEDs as outputs, off.
• Sets interrupt system to prioritized interrupts.
• Enables high and low priority interrupts.
• A/D converter is turned off and inputs are set to digital.
• Comparators are turned off.
• Timer 2 is configured as a low priority interrupt triggered by software flags.
• Sets pushbutton as input creating high priority interrupt on button down
• ToothPIC software version number is written to pVersionStr.
• If initialization was due to a power-on reset, the RealTimeClock value is set to the value RESETTIME
• If the ToothPICSettings flag BQS_RealTimeClock is set, the real time clock is started. (This is
• BlueMatik presence is determined.
• BlueMatik module is reset.
• Serial service, master/slave switch, sniff mode and hold mode are enabled on BlueMatik.
• UART1 initialized for communication with BlueMatik at 115.2kbps.
• BlueMatik send and receive buffers initialized.
• If the pushbutton is down ToothPIC enters wireless field programming mode.
• The local BlueMatik Bluetooth address is written to ROM location pLocalBTAddr.
• BlueMatik device name is set to the value stored at ROM location pLocalName.
specified in the ToothPIC settings and link key map. Similarly the DSTEvent variable is set to the value
DSTDEFAULT.
the last instruction executed before passing control to c018itp.c.)
• One bqFxPCtlData data structure for each control in the user interface.
• pCtlD is a pointer to the array of bqFxPCtlData data structures, one for each control.
• One bqFxPData data structure relating to the FlexiPanel Server overall.
• One bqFxPDlgData data structure for each dialog in the user interface.
• pDevD is a pointer to the bqFxPData data structure.
• pDlgD is a pointer to the array of bqFxPDlgData data structures, one for each dialog.
9-Apr-06
Assuming ToothPIC303.lkr and c018itp.o are used as supplied, c018itp.o then
Toothpick 3.0.00007
DS380-8
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com

Related parts for TOOTHPIC