Digilent PmodBT2 Manuale - Pagina 2
Sfoglia online o scarica il pdf Manuale per Unità di controllo Digilent PmodBT2. Digilent PmodBT2 2.
Anche per Digilent PmodBT2: Manuale di riferimento (3 pagine)
PmodBT2™ Reference Manual
on jumper settings and functionality, refer to
the RN-42 user manual.
UART Interface
By default, the UART interface uses a baud
rate of 115.2 kbps, 8 data bits, no parity, and a
single stop bit. The startup baud rate may be
customized to predefined rates or set to a
specific user customized baud rate. Predefined
baud rates range from 1200 to 921k.
The reset pin (RST) on J1 is active low. If the
RST pin is toggled, the device will undergo a
hard reset. This hard reset performs similarly
to a power cycling of the device. The second
interface besides the standard UART signals is
the STATUS pin also on J1The STATUS pin
directly reflects the connection status of the
device. STATUS is driven high by the device
when connected and is driven low otherwise.
For more information on the devices UART
interface and RST and STATUS pins refer to
the RN-42 user manual on the Roving
Networks website.
Command Mode
In order to enter the command mode, the
PmodBT2 must receive "$$$" to which it will
respond "CMD". When in command mode, the
module will respond to a large number of
commands allowing the user to customizing
the module for specific applications. In order
to exit command mode, send "---<cr>" (three
minus signs in a row and where <cr> stands
for the carriage return character) to which the
device will respond "END". Remote
configuration, or configuration over a Bluetooth
connection, is possible through the command
mode but has several restrictions. The
configure time, which defaults to 60 sec,
defines the time window in which the
PmodBT2 may be configured remotely.
Outside of this time, the PmodBT2 will not
respond to any remote commands. It is
important to note that any of the "set"
commands available for the PmodBT2 must be
followed by a power cycle to take effect in any
design.
www.digilentinc.com
Connector J1 – UART Communications
Pin
1
2
3
4
5
6
7
8
9
10
11
12
Connector J2 – SPI Connector
(Firmware Update Only)
1
2
3
4
5
6
Table 2: Connector Descriptions
The various modes of operation are accessed
by using the "SM,<5,4,3,2,1,0>" command
while in command mode. The PmodBT2 can
be put into one of six available modes of
operation. The modes in order, 0 to 5, are:
slave, master, trigger master, auto-connect,
auto-connect DTR, and auto-connect ANY. For
more detailed information on the different
modes of operation, refer to the RN-42 user
manual. For the full list of device commands,
how to use remote configuration, and more
detailed information on the different modes of
operation, see the RN-42 data.
Copyright Digilent, Inc.
Signal
Description
RTS
Ready to Send
RX
Receive
TX
Transmit
CTS
Clear to Send
GND
Power Supply
Ground
VCC
Power Supply
(3.3V)
STATUS
Connection
Status
~RST
Reset
NC
Not Connected
NC
Not Connected
GND
Power Supply
Ground
VCC
Power Supply
(3.3V)
MISO
Master in/
Slave out
MOSI
Master out/
Slave in
SCK
Serial Clock
~CS
Chip Select
VCC
Power Supply
(3.3V)
GND
Power Supply
Ground
page 2 of 2