PmodBT2 PmodBT2 Reference Manual Reference Manual Revision: August 17, 2011 1300 NE Henley Court, Suite 3 Note: This document applies to REV A of the board. Pullman, WA 99163 (509) 334 6306 Voice (509) 334 6300 Fax Overview The PmodBT2 is a powerful peripheral module employing the Roving Networks RN-42 to create a fully integrated Bluetooth interface. Features include: Bluetooth 2.1/2.0/1.2/1.1 Compatible Simple UART Interface A wide range of modes including: Slave Mode, Master Mode, Trigger Master Mode, Auto-connect Master Mode, Auto-connect DTR Mode, and Auto- connect ANY Mode. Small form factor: 1.5 x 0.8 Functional Description The PmodBT2 uses a standard 12-pin connection and communicates via UART. There is a secondary SPI header on the board for updating the RN-42 firmware if needed. Jumper Settings The PmodBT2 has several modes available to the user via jumper settings. JP1 through JP4 provide various modes of operation as indicated in Table 1 below. Each jumper is active when shorted. JP1 restores the device to factor default settings after three transitions of the jumper setting (short-to-open or open-to- operation to allow the pins that they tie to on short). After the third transition, the device the RN-42 module to serve a separate purpose returns to factor default except for the later in the modules operation. JP2 enables Bluetooth name. The other three jumpers, JP2- pairing with a special device class defined by JP4, only sample in the first 500 ms of the user in software. This may be used so that the PmodBT2 operates as a substitute for an RS232 cable. JP3 enables auto connect to a Jumper Description stored address defined by the user. Finally, JP1 (PIO4) Factory Default JP4 chooses whether to operate at the stored JP2 (PIO3) Auto Discovery/Pairing baud rate (115.2kbps default) or a baud rate of JP3 (PIO6) Auto Connect 9600 regardless of the software selected rate JP4 (PIO7) Baud Rate Setting (9600) when shorted. For more detailed information Table 1: Set Jumper Description Doc: 502-214 page 1 of 2 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners. PmodBT2 Reference Manual on jumper settings and functionality, refer to the RN-42 user manual. Connector J1 UART Communications Pin Signal Description UART Interface 1 RTS Ready to Send 2 RX Receive By default, the UART interface uses a baud 3 TX Transmit rate of 115.2 kbps, 8 data bits, no parity, and a 4 CTS Clear to Send single stop bit. The startup baud rate may be 5 GND Power Supply customized to predefined rates or set to a Ground specific user customized baud rate. Predefined 6 VCC Power Supply baud rates range from 1200 to 921k. (3.3V) 7 STATUS Connection The reset pin (RST) on J1 is active low. If the Status RST pin is toggled, the device will undergo a 8 ~RST Reset hard reset. This hard reset performs similarly 9 NC Not Connected to a power cycling of the device. The second 10 NC Not Connected interface besides the standard UART signals is 11 GND Power Supply the STATUS pin also on J1The STATUS pin Ground directly reflects the connection status of the 12 VCC Power Supply device. STATUS is driven high by the device (3.3V) when connected and is driven low otherwise. Connector J2 SPI Connector (Firmware Update Only) For more information on the devices UART 1 MISO Master in/ interface and RST and STATUS pins refer to Slave out the RN-42 user manual on the Roving 2 MOSI Master out/ Networks website. Slave in 3 SCK Serial Clock Command Mode 4 ~CS Chip Select 5 VCC Power Supply In order to enter the command mode, the (3.3V) PmodBT2 must receive to which it will 6 GND Power Supply respond CMD. When in command mode, the Ground module will respond to a large number of Table 2: Connector Descriptions commands allowing the user to customizing the module for specific applications. In order to exit command mode, send ---<cr> (three The various modes of operation are accessed minus signs in a row and where <cr> stands by using the SM,<5,4,3,2,1,0> command for the carriage return character) to which the while in command mode. The PmodBT2 can device will respond END. Remote be put into one of six available modes of configuration, or configuration over a Bluetooth operation. The modes in order, 0 to 5, are: connection, is possible through the command slave, master, trigger master, auto-connect, mode but has several restrictions. The auto-connect DTR, and auto-connect ANY. For configure time, which defaults to 60 sec, more detailed information on the different defines the time window in which the modes of operation, refer to the RN-42 user PmodBT2 may be configured remotely. manual. For the full list of device commands, Outside of this time, the PmodBT2 will not how to use remote configuration, and more respond to any remote commands. It is detailed information on the different modes of important to note that any of the set operation, see the RN-42 data. commands available for the PmodBT2 must be followed by a power cycle to take effect in any design. www.digilentinc.com Copyright Digilent, Inc. page 2 of 2