Microchip Technology DM182015-1 User Manual

Page of 42
Additional Tutorials
© 2011-2012 Microchip Technology Inc.
Preliminary
DS70654B-page 27
4.5
CHAT WINDOW DEMO
This tutorial program can be used to setup a wireless chatting service over the network. 
The Chat Window demo uses MiWi Peer-to-Peer (P2P) protocol and can be extended 
to use the MiWi protocol. 
The following hardwares are required to run this tutorial:
• Two PIC18 Wireless Development Boards
• Two Radio Daughter Boards
• Two  LCD  Serial  Accessory Boards
• Two RS232 Serial Accessory Boards
• Four fresh AA batteries or Two 9V External Power Supply or two USB cables
• Computer with a terminal program
The following are the connection settings for terminal program:
• Baud Rate: 19200 kbps
• Data  Bits:  8
• Parity: None
• Stop Bits: 1
• Flow Control: None
Program both of the PIC18 Wireless Development boards with “
Chat Window 
Demo.hex
” file located in “
8-bit Wireless Development Kit\8-bit WDK Demo\
”. 
4.5.1
Setup
Follow these steps to set up the Chat Window demo:
1.
Connect the LCD Serial Accessory Board J1 port to the J2 or J3 I
2
C port of 
RS232 Serial Accessory Board.
2.
Connect the J1 port on RS232 Serial Accessory Board to the J101 connector on 
the PIC18 Wireless Development Board (See 
3.
Plug in the Radio PICtail Daughter board at slot J201 on the PIC18 Wireless 
Development Board.
4.
To power the PIC18 Wireless Development Board from external power (9V or 
USB), insert a jumper at JP301 (Regulator Disconnect) on the PIC18 Wireless 
Development Board. To power it from batteries, remove the jumper on JP301.
5.
Insert a jumper at JP201 (LED Power) on the PIC18 Wireless Development 
Board.
6.
Ensure that the jumper is disconnected at JP1 position on the LCD Serial 
Accessory Board. This ensures that the LCD Serial Accessory Board is used in 
I
2
C mode and not in SPI mode. The Chat Window demo uses the LCD Serial 
Accessory board in I
2
C mode.
7.
Wireless demo board can be powered using any one of these options:
• Two AA Batteries
• 9V External Power Supply
• USB Port
• External 3.0-3.6V power source through test points TP301and TP302
8.
Insert a jumper at either JP302 or JP303 (Current Measure) on the PIC18 
Wireless Development Board.