? 2014 microchip technology inc. ds50002265a-page 1 overview the rn4020 pictail plus daughter board is a bluetooth ? low energy demonstration board that showcases the microchip rn4020 certified bluetooth low energy (btle) module. the rn4020 module is a single-mode bluetooth smart module that complies with bluetooth core specification 4.0. the high-speed uart interface and the general purpose input output (gpio) ports are available on the rn4020 module to configure, control and transfer data. the rn4020 pictail plus daughter board has pictail plus and pictail connectors to interface with a pic ? microcontroller (mcu) on the development boards that support pictail plus or pictail interface with the required pin mapping. the pictail board also has a pic18 usb-to-uart serial bridge on the board to enable easy serial connection to a pc over usb. the pic18 also exposes a command shell to control its gpio ports. features ? microchip rn4020 certified bluetooth low energy (btle) module ? pictail plus daughter board or pictail daughter board connection interfaces ? pic18 usb-to-uart serial bridge/converter with a command shell for io control ? status leds and utility button board configuration the jumper jp1 on the board can be used to select between pictail mode or usb-to-uart bridge mode. when jp1 is shorted, the board operates in pictail mode. in this mode, the uart, control signals, and digital inputs/outputs can be accessed over the stan - dard pictail plus or pictail connection interfaces to be driven by a pic mcu. the usb-to-uart serial bridge over j5 is turned off. when jp1 is open, the board operates in usb-to- uart bridge mode. in this mode, the pic18 usb-to- uart serial bridge over j5 is turned on, and the pictail interface should not be used. figure 1: microchip rn4020 certified bluetooth low energy (btle) module getting started the rn4020 module on the rn4020 pictail plus daughter board exposes a high speed uart interface which can be used to issue ascii commands to config - ure and control the rn4020 module. for more informa - tion on the rn4020 commands, configuration and examples, refer to the user?s guide for the rn4020 module. while in pictail mode, the board can be plugged into any standard microchip development board that supports the pictail plus, or pictail, connection interface. the firmware running on the microchip 8/16/32-bit pic mcu can be used to interface over uart and io ports with the rn4020 on the pictail board. refer to the other information section for information about downloading pic workspaces for pictail mode. note: ensure that the usb mini-b cable is detached when operating in pictail mode. note: ensure that the pictail connector pin-out on the host mcu development platform sup - ports the pin-out on the pictail interface on the rn4020 pictail plus daughter board. rn4020 pictail?/pictail plus board user?s guide
rn4020 pictail plus daughter board ds50002265a-page 2 ? 2014 microchip technology inc. while in usb-to-uart bridge mode, the board can be plugged into a pc that supports serial com ports. when plugged in over usb mini-b receptacle j5 to a pc, the board enumerates as a serial com port. a ter - minal emulator application on the pc can be used to open the com port and issue commands when the rn4020 is in command mode, or to transfer data when it is in microchip low power data profile (mldp) mode. the usb-to-uart bridge mode enables a simple com - mand shell running on the usb-to-uart bridge that is used to control the gpios on rn4020 through the pic18. typing $$$ with a carriage return on the termi - nal emulator will enter the pic18 command shell, as seen in figure 2. typing $$$ with a carriage return a second time on the terminal emulator will exit the pic18 command shell. there is a 1 second guard band duration for both entry into and exit out of the command shell. command shell is entered or exited only if there is no data transfer during the duration of the guard band. figure 2: pic18 command shell the supported commands are listed in table 1. the supported commands can be issued with carriage return after entering the pic18 command shell, as in the example that is shown below. other information to obtain the most recent and complete rn4020 data sheet, user?s guide, and code examples, visit the microchip web site: www.microchip.com/rn4020 revision history revision a (june 2014) this is the initial release of this document. example 1: i#a,04 // sets the pic18 io port ra2 to logic high i@c,02 // sets the direction of pic18 io port rc1 to input i%b // reads the logic levels on pic18 io port rb table 1: basic commands supported in the pic18 command shell basic commands supported description i#x,yy sets or clears the io port a/b/c on pic18 i@x,yy sets the direction of the io port a/b/c on pic18 i%x reads the io port a/b/c on pic18 h provides help on supported commands and may show additional commands, if available v version of the command shell legend: x ? a or b or c; yy ? hex byte value
? 2014 microchip technology inc. ds50002265a-page 3 rn4020 pictail plus daughter board board schematic 5 % 6 6 $ 1 5 ) 8 5 ; b ( 5 ) 6 & |