Toothpick
Toothpick Slave Tutorial
General Setup
To follow the Toothpick Slave tutorial provided in
the Toothpick data sheet, remove any existing
links and then connect the links for RS232 (no flow
control) and I2C as follows:
Insert the Toothpick in the evaluation board so that
the antenna overhangs the edge of the board.
There should be nothing inserted in the LinkMatik,
Stamp and BlueMatik sockets.
Remove any
existing links and then insert links over the
following configuration pins:
A3 – A4
B5 – B6
C3 – D3
C4 – D4
C5 – C6
C7 – D7
C10– D10
D1 – D2
E6 – F6
(RS232 TxD to RxD pin)
(RS232 RxD to TxD pin)
(SDA to I2C memory)
(RS232 TxD to RxD pin)
(CCP4 to rotary switch)
(CCP3 to its LED)
(CCP2 to its LED)
(SCL to I2C memory)
(TxD to its LED)
C5 – C6
C7 – D7
C10– D10
E6 – F6
(CCP4 to rotary switch)*
(CCP3 to its LED)
(CCP2 to its LED)
(TxD to its LED)
*Note: on one version of the board (TPDr5), the
“C5 - C6” is incorrectly labeled on the rear as
“C6 - D6”
Step 6 of the tutorial, adding an RS232 level
shifting circuit, is now complete and you may
simply connect your PC serial port to the DB9
socket on the evaluation board. The TxD LED will
glow more or less continually during the tutorial
because the TxD is usually in the high state.
If the RS232 port is to be used (e.g. DARC-I
tutorial) insert links over the following configuration
pins:
A3 – A4
B5 – B6
C4 – D4
(RS232 TxD to RxD pin)
(RS232 RxD to TxD pin)
(RS232 TxD to RxD pin)
You may the follow the tutorial exactly as in the
data sheet. When you have completed the tutorial
you might like to experiment with the I2C memory
as follows:
In addition, if flow control is to be used (e.g.
DARC-I tutorial) insert links over the following
configuration pins. The ICD2 programming socket
cannot be used with these pins in place:
Type the command:
04010C01
A8 – A9
A10– B10
B2 – B3
B8 – B9
(RS232 CTS to INT0 pin)
(RS232 CTS to INT0 pin)
(RS232 RTS to INT1 pin)
(RS232 RTS to INT1 pin)
to activate the I2C memory. This command a non-
volatile setting which only takes effect after a
device reset, so type the command
If the RS232 port is not to be used (e.g. DARC-II
0200
tutorial) insert
configuration pin:
a
link over the following
to reset the Toothpick and wait for the greeting
message.
D4 – D5
(RxD to rotary switch)
To store the values 0x05, 0x06, 0x07, 0x08 at
location 0x0100, type the command
If the I2C memory is to be used insert links over
the following configuration pins:
090F10000105060708
To retrieve those same values, type the command
060E10000104
C3 – D3
D1 – D2
(SDA to I2C memory)
(SCL to I2C memory)
If the I2C memory is not to be used insert links
over the following configuration pins:
The retrieved values will be the last 8 characters of
the response.
C1 – D1
C3 – C2
(SCL to its LED)
(SDA to its LED)
Page 3 30-Mar-06 Bluetooth Evaluation Board DS378-2 © FlexiPanel Ltd Patents apply and/or pending
www.FlexiPanel.com