Bluetooth Evaluation Board
FlexiPanel
TM
Evaluation board for Toothpick, LinkMatik, Bluematik and Toothpick Stamp Edition
Summary
The Bluetooth Evaluation Board is designed to
evaluate FlexiPanel Ltd’s Bluetooth products:
•
•
•
•
Toothpick
LinkMatik
BlueMatik
Toothpick Stamp Edition
Features
•
•
•
•
•
•
•
Sockets for all modules
Power regulator, switch and LED, powered
from 5-12V DC
Jumper switches for board configuration
RS232 serial port and TTL to RS232 converter
Toothpick ICD2 programming socket
24C256 I2C memory chip
All the pushbuttons, LEDs, presets and
switches to run the tutorials in the products
data sheets.
These are not supplied with the evaluation board
but must be bought separately.
Ordering Information
Part No
BTEVAL
Description
Bluetooth Evaluation Board
Manufactured to ISO9001:2000
Page 1 30-Mar-06
Bluetooth Evaluation Board DS378-2
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com
Evaluation Board Overview
Intended uses
The primary aim of the Bluetooth Evaluation Board
is to allow evaluation of FlexiPanel Ltd’s Bluetooth
products as easily as possible. It is designed to
allow the developer to follow the tutorials and
examples in the product data sheets.
Additionally, the evaluation board can be used
during development as a reliable, tested
environment while troubleshooting.
I2C memory
The 24C256 I2C serial memory is conditionally
connected, according to the configuration pins, to
pins SDA and SCL of the Toothpick.
Pull-up resistors are included. The address pins
are all held low, so the Toothpick
mStr
value to
access the memory is
0x10.
ICD2 programming connector
The RJ11 programming connector allows you to
program a ToothPIC directly using Microchip
MPLAB ICD2.
Since the NMCLR, INT0 and INT1 lines must be
isolated, no BASIC Stamp should be installed at
the same time as an IDC2 is connected.
Power Supply
The evaluation board may be powered by a
reasonable smooth unregulated 5V – 12V DC
power source via the 2.5mm center-positive
connector. No heat sink is provided for the voltage
regulator, so expect it to get quite warm.
Jumper connections
Jumper connections allow the evaluation board to
be dynamically reconfigured as detailed in the
General Setup
sections.
A key is printed next to each jumper connection
strip. The pin columns are denoted by letters, the
rows by numbers. Note that the links might need
to be inserted in either the horizontal or vertical
positions.
Switches, LEDs and Presets
The following peripheral
permanently connected:
components
are
•
LEDs to Toothpick pins AN9, AN10, AN11,
CCP1 and SDO.
•
Presets that can vary the voltage of
Toothpick pins AN0, AN1, AN2 and AN3
smoothly between 0V and 5V.
•
Pushbuttons to control the voltages of
Toothpick pins AN4, AN5, AN6 and AN7. 5V
when pressed and 0V otherwise.
•
Bit 2 of the binary encoding rotary switch to
CCP5.
•
Bit 3 of the binary encoding rotary switch is
unconnected.
•
Power LED.
•
LED connected to the
Status
pin of the
LinkMatik and the
MUM
pin of the BlueMatik.
The following peripheral components are
conditionally connected according to the
configuration pins as detailed in the
General Setup
sections:
•
LEDs to Toothpick pins CCP2, CCP3, SDA,
SCL, TxD
•
Bit 1 of a binary encoding rotary switch to
CCP4.
•
Bit 0 of a binary encoding rotary switch to
RxD.
Page 2 30-Mar-06
Bluetooth Evaluation Board DS378-2
Switches
SW7 switches the LinkMatik
Connect / Sleep
pin
between the
Sleep
state and the
On
state.
SW6 may be used to switch the LinkMatik
Master /
Slave Mode
pin between
Master
and
Slave
modes,
and to switch the BlueMatik
HUM
pin between
Command
and
Data
modes. Note that whether
this switch has any effect depends on the jumper
settings, since these modes can alternately be
driven by the state of the RS232 DTR line.
RS232 driver and Serial Port
The serial port may be used by any of Toothpick,
LinkMatik, BlueMatik or the BASIC Stamp
according to configuration.
Module Sockets
Only insert one of BlueMatik, LinkMatik and
Toothpick at a time. Only insert a BASIC Stamp
when used with Toothpick Stamp Edition.
Patents apply and/or pending
www.FlexiPanel.com
© FlexiPanel Ltd
Toothpick
General Setup
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:
C5 –
C7 –
C10–
E6 –
C6
D7
D10
F6
(CCP4 to rotary switch)*
(CCP3 to its LED)
(CCP2 to its LED)
(TxD to its LED)
Toothpick Slave Tutorial
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:
A3 –
B5 –
C3 –
C4 –
C5 –
C7 –
C10–
D1 –
E6 –
A4
B6
D3
D4
C6
D7
D10
D2
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)
*Note: on one version of the board (TPDr5), the
“C5
- C6”
is incorrectly labeled on the rear as
“C6
- D6”
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)
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.
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:
Type the command:
04010C01
to activate the I2C memory. This command a non-
volatile setting which only takes effect after a
device reset, so type the command
0200
to reset the Toothpick and wait for the greeting
message.
To store the values 0x05, 0x06, 0x07, 0x08 at
location 0x0100, type the command
090F10000105060708
To retrieve those same values, type the command
060E10000104
The retrieved values will be the last 8 characters of
the response.
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:
A8 –
A10–
B2 –
B8 –
A9
B10
B3
B9
(RS232 CTS to INT0 pin)
(RS232 CTS to INT0 pin)
(RS232 RTS to INT1 pin)
(RS232 RTS to INT1 pin)
If the RS232 port is
not
to be used (e.g. DARC-II
tutorial) insert a link over the following
configuration pin:
D4 – D5
(RxD
to rotary switch)
If the I2C memory is to be used insert links over
the following configuration pins:
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:
C1 – D1
C3 – C2
Page 3 30-Mar-06
(SCL to its LED)
(SDA to its LED)
Bluetooth Evaluation Board DS378-2
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com
DARC-I Tutorial
To follow the DARC-I tutorial provided in the
DARC-I data sheet, remove any existing links and
then connect the links for no RS232 and no I2C as
follows:
C1 –
C3 –
C5 –
C7 –
C10–
D4 –
E6 –
D1
C2
C6
D7
D10
D5
F6
(SCL to its LED)
(SDA to its LED)
(CCP4 to rotary switch)
(CCP3 to its LED)
(CCP2 to its LED)
(RxD to rotary switch)
(TxD to its LED)
DARC-II Tutorial
To follow the DARC-II tutorial provided in the
DARC-II data sheet, remove any existing links and
then connect the links for no RS232 and no I2C as
follows:
C1 –
C3 –
C5 –
C7 –
C10–
D4 –
E6 –
D1
C2
C6
D7
D10
D5
F6
(SCL to its LED)
(SDA to its LED)
(CCP4 to rotary switch)
(CCP3 to its LED)
(CCP2 to its LED)
(RxD to rotary switch)
(TxD to its LED)
You may the follow the tutorial exactly as in the
data sheet. Remember that presets are connected
to
AN0
and
AN1,
allowing you to set the voltages
on these pins easily.
You may the follow the tutorial exactly as in the
data sheet. Remember that presets are connected
to
AN0
to
AN2,
allowing you to set the voltages on
these pins easily. The parallel input comprised of
CCP5/CCP4/RxD is connected to the rotary switch.
Page 4 30-Mar-06
Bluetooth Evaluation Board DS378-2
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com
LinkMatik
General Setup
Insert the LinkMatik in the evaluation board so that
the antenna overhangs the edge of the board.
There should be nothing inserted in the Toothpick,
Stamp and BlueMatik sockets.
Remove any
existing links and then insert links over the
following configuration pins:
A3 –
A8 –
A10–
B2 –
B5 –
B8 –
A4
A9
B10
B3
B6
B9
(RS232 TxD to RxD pin)
(RS232 CTS to RTS pin)*
(RS232 CTS to RTS pin)*
(RS232 RTS to CTS pin)
(RS232 RxD to TxD pin)
(RS232 RTS to CTS pin)
Slave Mode
To evaluate LinkMatik in slave mode, put the SW7
switch in the Sleep position, remove any existing
links and then connect the links as follows:
A3 –
A8 –
A10–
B2 –
B5 –
B8 –
E7 –
E4 –
E9 –
A4
A9
B10
B3
B6
B9
E8
E5
F9
(RS232 TxD to RxD pin)
(RS232 CTS to RTS pin)
(RS232 CTS to RTS pin)
(RS232 RTS to CTS pin)
(RS232 RxD to TxD pin)
(RS232 RTS to CTS pin)
(SW6 to MSM input)
(RS232 TxD to RxD pin)
(RS232 RxD to TxD pin)
*Note: on one version of the board (TPDr5 ), the
“A8
– A9”
and “B8
– B9”
is omitted on the rear-
side labels.
You can decide whether the MSM input is
controlled by switch SW6 or via the DTR line on
the RS232 port. To control it from the switch SW6,
insert a link over the following configuration pin:
E7 – E8
(SW6 to MSM input)
LinkMatik is now configured so that the MSM input
is controlled by SW6 and the Connect / Sleep line
is controlled by SW7.
Apply power and put SW6 into the
Slv
position.
Then put SW7 into the
On
position. The Status
LED should flash to indicate that it has entered
Slave mode and is waiting for a device to connect
to it.
To see the LinkMatik working, two HyperTerminal
sessions much be started on a PC. One will be
connected via the RS232 port, the other via
Bluetooth. What you type into one console will
appear in the other.
First connect the DB9 socket to your PC’s serial
port. Start a HyperTerminal session at 9600 baud,
hardware flow control, 8 bits no parity, one stop bit.
Second, use the Bluetooth Manager on your PC to
discover LinkMatik. You will need to pair with it,
since security is enabled. The PIN code is four
zeroes ‘0000’. Connect to LinkMatik and observe
that the Status LED glows steadily as the
connection is complete.
Start another HyperTerminal session, using the
COM port number assigned by the Bluetooth
Manager when you made the connection. The
baud settings are ignored, so enter anything you
like for them.
You should now find that anything you type in one
HyperTerminal window appears in the other
HyperTerminal window.
To control the HUM input from DTR line, insert
links over the following configuration pins:
A6 – A7
E7 – F7
(DTR to MSM input)
(DTR to MSM input)
To operate in normal transceiver mode, insert links
over the following configuration pins:
E4 – E5
E9 – F9
(RS232 RxD to TxD pin)
(RS232 TxD to RxD pin)
To operate in configuration mode, insert links over
the following configuration pins:
E4 – F4
F8 – F9
(4k7 pull-down to TxD pin)
(4k7 pull-down to RxD pin)
Page 5 30-Mar-06
Bluetooth Evaluation Board DS378-2
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com