TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 53

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)
Initialization
ToothPIC Slave reads permanently stored settings from EE memory. Then it initializes the following:
After variables are initialized, the I/O and Bluetooth security are set as specified by the DARCcfg data
structure. The FlexiPanel user interface server is started. Finally, the LEDs are flashed and the initialization
string transmitted to show that initialization is complete.
Main Program Loop
There is nothing in the main program loop. All the required processing takes place in interrupts. If you want
to port your host controller into the ToothPIC, you can do whatever you like here and/or in the callback
routines.
High Interrupt
The high priority interrupt is used to add incoming bytes to the receive buffer. This is placed in high priority
interrupt because no other task may prevent it from being read before the next byte arrives. If the entire
command has been received, the software interrupt SWI_SWI1 is raised so that the command is processed in
the low priority interrupt.
Low Interrupt
Six types of low priority interrupts are provided for:
Note the use of two software interrupts. This allows one interrupt to trigger another safely.
ErrorStatus
No errors are expected. If an error occurs, the auxiliary function InternalError() performs whatever task
is supposed to be performed in the event of an error.
BMTEvent
Errors are handled in the same way as for ErrorStatus. Most other events are converted to responses to
send to the host and are added to the message queue.
FlexiPanel Server Events
FlexiPanel Server Events converted to responses to send to the host and are added to the message queue.
Page 53
9-Apr-06
• Message queue.
• Serial port for communication with the host.
• Flow control.
• External memory, if required.
• Bluetooth security.
• Restarting transmission if the CTS pin goes low.
• Loading the next byte into the UART once the current byte has started being sent.
• Clearing the SWI_Tick interrupt.
• Processing commands as they are received.
• Pulling a message off the message queue and transmitting it.
• Reading raw data received from a non-FlexiPanel remote device and transmitting it to the host.
Toothpick 3.0.00007
DS380-8
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com

Related parts for TOOTHPIC