8-Bit Wireless Development Kit User’s Guide © 2011-2012 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Table of Contents Preface ........................................................................................................................... 5 Overview ........................................................................................................................ 9 Introduction ........................................................................................................... 9 8-Bit Wireless Development Kit Contents .....................
8-Bit Wireless Development Kit User’s Guide NOTES: DS70654B-page 4 Preliminary © 2011-2012 Microchip Technology Inc.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
8-Bit Wireless Development Kit User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description sArial font: Italic characters Represents Examples Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guide ...is the only compiler...
Preface WARRANTY REGISTRATION Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use 8-bit Wireless Development Kit User’s Guide. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
-Bit Wireless Development Kit User’s Guide DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive email notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions.
Preface DOCUMENT REVISION HISTORY Revision A (March 2011) This is the initial release of the document. Revision B (January 2012) This revision includes the following updates: • Added MRF89XAM8A868 MHz PICtail/PICtail Plus Daughter Boards or MRF89XAM9A915 MHz PICtail/PICtail Plus Daughter Boards in 1.3 “Wireless Daughter Boards” • Added rows, MRF24J40MC and MRF89XAM9A PICtail/PICtail Plus Daughter Board, in Table 1-1: “Compatible PICtail™ Daughter Boards” • Added a new bullet in 3.3 “Demo Setup”, 4.2.
8-Bit Wireless Development Kit User’s Guide DS70654B-page 10 Preliminary © 2011-2012 Microchip Technology Inc.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Chapter 1. Overview 1.1 INTRODUCTION This chapter introduces the 8-Bit Wireless Development Kit features and its requirements. The topics discussed in this chapter include: • 8-Bit Wireless Development Kit Contents • Wireless Daughter Boards • 8-Bit Wireless Development Kit 1.2 8-BIT WIRELESS DEVELOPMENT KIT CONTENTS The 8-Bit Wireless Development Kit contains the following items: • • • • • • 1.
8-Bit Wireless Development Kit User’s Guide The PIC18 Wireless Development Board provides PICtail connectivity, which is compatible with the existing and future radio and sensor daughter boards from Microchip. For more information on compatibility, refer to the Microchip website http://www.microchip.com/wireless Note: 1.4 Individual Wireless PICtail Daughter Boards require .hex files for the specific RF transceiver.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Chapter 2. PIC18 Wireless Development Board 2.1 BOARD LAYOUT AND FEATURES This chapter describes the PIC18 Wireless Development Board hardware. It also features the components shown in Figure 2-1. FIGURE 2-1: PIC18 WIRELESS DEVELOPMENT BOARD © 2011-2012 Microchip Technology Inc.
8-Bit Wireless Development Kit User’s Guide The PIC18 Wireless Development Board supports the XLP microcontroller options such as PIC18F46J11, PIC18F46J50, PIC18F46K20 and PIC18LF45K22. The default microcontroller option is PIC18F46J50. Different microcontroller options require different components to populate on the PIC18 Wireless Development Board. Note 1: Missing components on the PIC18 Wireless Development Board does not indicate a defect.
PIC18 Wireless Development Board 2.1.3 PICtail Port PICtail Port is a 28-pin interface port that supports Microchip’s RF based daughter cards. PICtail Port provides the following interfaces to the daughter cards: • Power supply • SPI interface • Interrupt request lines Note: 2.1.4 User must be careful about the PICtail port pins that share different functions of the board. The user needs to check the schematics before assigning functions for any port pins.
8-Bit Wireless Development Kit User’s Guide 2.1.8 Power Supply The board can be powered from any one of these sources: • 2xAA onboard battery pack is available at the bottom of the PIC18 Wireless Development Board • USB port • External 9-16V charger power supply through the standard coaxial power connector • External 3.0-3.6V power source through test points TP301 and TP302 USB Port and external coaxial port power are stabilized by MCP1703, 250 mA, 3.3V, low quiescent current LDO regulator.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Chapter 3. Getting Started 3.1 INTRODUCTION This chapter provides a tutorial to familiarize users with the 8-bit Wireless Development Kit. It also explains how to run the pre-programmed demo. The source code for the demo is available along with the MiWiTM stack.
8-Bit Wireless Development Kit User’s Guide 5. 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 I2C mode and not in SPI mode. The 8-bit WDK Demo program uses the LCD Serial Accessory board in I2C mode. 6. Wireless demo board can be powered using any of these options: • Two AA Batteries • 9V External Power Supply • USB port • External 3.0-3.6V power source through test points TP301and TP302 7.
Getting Started FIGURE 3-2: 8-BIT WIRELESS DEVELOPMENT KIT DEMO PROGRAM Power Up Display 8-bit Wireless Development Kit A3 Display RB0: Create NWK RB2: Join NWK Is RB0 pressed? A1 No Is RB2 pressed? No Yes Yes Display Created network successfully Scan for networks A2 Display Local Temp MAC Address: 21C/70F No If networks were found? Display 0 Network Found RB2: Re-Scan Yes If RB0 Pressed? Yes Read temperature sensor and broadcast information over the network No If RB2 Pressed? No No Dis
8-Bit Wireless Development Kit User’s Guide For more information on MiWi networking concepts, such as PAN Coordinator, Coordinator and RFD or End Device, refer to the application note, AN1066 “Microchip MiWi Wireless Networking Protocol Stack” (DS01066B). This demo highlights the following features: • • • • Creating a MiWi Network MCP9700A Temperature Sensor MAC Address EEPROM on the Radio Daughter Boards LCD Serial Accessory Board 3.4.1 Creating a MiWi Network 3.4.1.
Getting Started 3. Press RB2 push button to display the remote temperature (PAN Coordinator): • Remote Temp • 010203: 21°C/ 70°F 3.4.2 MCP9700A Temperature Sensor This demo uses the on-board MCP9700A Temperature Sensor. The readings are noted every 30 seconds and the information is broadcasted in the network. Both the nodes store the local and remote temperature data and display it on the LCD. To re-measure the temperature value, press RB0 push button on the PIC18 Wireless Development Board.
8-Bit Wireless Development Kit User’s Guide NOTES: DS70654B-page 20 Preliminary © 2011-2012 Microchip Technology Inc.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Chapter 4. Additional Tutorials 4.1 INTRODUCTION This chapter covers the additional tutorial programs for the 8-bit Wireless Development Kit. Note: To run few tutorials in this chapter, users must program the PIC18 Wireless Development Board with new .hex files. To program the PIC18 Wireless Development board, use either ICD3 or REAL ICE or PICKit™ 3 programmers. If using MPLAB® ICD3 or MPLAB REAL ICE, use AC164110 adapter board.
8-Bit Wireless Development Kit User’s Guide The following are the connection settings for terminal program: • • • • • Baud Rate: 19200 kbps Data Bits: 8 Parity: None Stop Bits: 1 Flow Control: None 4.2.1 Set up Follow these steps to set up the extended 8-bit Wireless Development Kit demo: 1. Connect the LCD Serial Accessory Board J1 port to the J2 or J3 I2C port of the RS232 Serial Accessory Board (see Figure 4-1). 2.
Additional Tutorials FIGURE 4-1: 4.2.2 CONNECTING RS232 SERIAL ACCESSORY BOARD Tutorial Operation To use the demo program, set up the nodes as described in Section 3.4 “Pre-programmed Tutorial Operation”. 4.2.2.1 USING THE HYPER-TERMINAL PROGRAM: Follow these steps to use the hyper-terminal program: 1. Press ‘Esc’ key from the hyper-terminal program to switch to an interactive mode.
8-Bit Wireless Development Kit User’s Guide The following hardwares are required to run this tutorial: • • • • Two pre-programmed PIC18 Wireless Development Boards Two Radio Daughter Boards Two LCD Serial Accessory Boards Four fresh AA batteries or Two 9V External Power Supply or two USB cables This tutorial also highlights the 256 Kbit EEPROM that is available on the PIC18 Wireless Development Board. The Network Freezer mode uses the on-board EEPROM to store the network setup information.
Additional Tutorials 4.3.2 Tutorial Operation To use the demo program, follow these steps: 1. Create a MiWi network as described in Section 3.4.1 “Creating a MiWi Network”. 2. Simulate Network Freezer mode by pressing and holding the MCLR and RB2 push button, then release the MCLR and wait for 10 seconds before releasing the RB2 button. 3. LCD display will prompt the following message: • Network Freezer? • Yes[RB0]/No[RB2] 4.
8-Bit Wireless Development Kit User’s Guide FIGURE 4-2: RFD FLOW CHART Power Up Display 8-bit Wireless Development Kit Display RFD Demo RB2: Join NWK No Is RB2 pressed? Yes Scan for networks If networks were found? Display 0 Network Found RB2: Re-Scan No Yes Yes If RB2 is pressed? Display RB0: (PC) MAC Address RB2: Additional NW - 0 Display next node information if available No If RB0 is pressed? No If RB2 is pressed? Yes Yes Connect to the NW Display Join status (Success/Failure) If Join s
Additional Tutorials 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.
8-Bit Wireless Development Kit User’s Guide 9. Connect a RS232 cable between the RS232 Port on the RS232 Serial Accessory Board and the PC. 10. Open two instances of the terminal programs from the PC with the previous settings. Note: 4.5.2 Windows 98 or Windows XP OS users can use the hyper-terminal program. Windows 7 or any other OS users can download other terminal software programs available from the web. Tutorial Operation The Chat Window demo program flow is described in Figure 4-3. 1.
Additional Tutorials 4.6 PING-PONG DEMO This tutorial program is used for range testing and for measuring the Received Signal Strength Indication (RSSI). In the Ping-Pong demo, as the name indicates, one node transmits data while the other node receives data. After the transmission phase is complete (10 packets) they switch their roles.
8-Bit Wireless Development Kit User’s Guide 4.6.2 Tutorial Operation The Ping-Pong demo program flow is described in Figure 4-4. 1. Power both the development kits simultaneously. This demo uses the MiWi P2P protocol, switching both the nodes simultaneously ensures that they connect with one-another. 2. After powering the demo board a welcome message “8-bit Wireless Development Kit” will be displayed on the LCD screen, and later it changes to “Connecting Peer on Channel 23”. 3.
Additional Tutorials FIGURE 4-4: PING-PONG PROGRAM DEMO Power Up Display 8-bit Wireless Development Kit Display Connecting Peer on channel 23 Display Joined Network Successfully Display Ping-Pong demo RBO (Tx) RB2 (Rx) Initiate one node in Tx mode and the other in Rx mode If RBO Pressed? Yes © 2011-2012 Microchip Technology Inc. No If RB2 Pressed? Yes Display Transmitting... Count: 1 LCD Display Receiving.. 1 RSSI(dB): -40 Display Transmitting... Count: 10 LCD Display Receiving..
8-Bit Wireless Development Kit User’s Guide 4.7 8-BIT WIRELESS DEVELOPMENT KIT WITH ADDITIONAL NODES The 8-bit Wireless Development kit demo can be expanded using additional nodes. As 8-bit Wireless Development kit demo uses MiWi protocol (see AN1066), a network that can support up to four hops can be created. Users can create either a Star Network or a Mesh Network. Figure 4-5 and Figure 4-6 illustrates the sample networks using two additional nodes.
8-BIT WIRELESS DEVELOPMENT KIT USER’S GUIDE Appendix A. PIC18 Wireless Development Board Schematic A.1 INTRODUCTION This appendix includes: • PIC18 Wireless Development Board schematics • PIC18 Wireless Development Board PCB Layout • PIC18 Wireless Development Board Bill of Materials (BOM) Component reference IDs are structured to help in finding them on the sheets of schematics. The first digit of the ID is the sheet number and the last second digits are reference IDs.
DS70654B-page 34 Preliminary 8-Bit Wireless Development Kit User’s Guide PIC18 WIRELESS DEVELOPMENT BOARD SCHEMATIC FIGURE A-1: © 2011-2012 Microchip Technology Inc.
PIC18 Wireless Development Board Schematic FIGURE A-2: PIC18 WIRELESS DEVELOPMENT BOARD SCHEMATIC FIGURE A-3: PIC18 WIRELESS DEVELOPMENT BOARD SCHEMATIC © 2011-2012 Microchip Technology Inc.
PIC18 Wireless Development Board Schematic A.3 PIC18 WIRELESS DEVELOPMENT BOARD PCB LAYOUT The PIC18 Wireless Development Board is a two-layer, FR4, 0.062 inch, plated through-hole PCB construction. Figure A-4 through Figure A-7 illustrates the PCB layout of the PIC18 Wireless Development Board. FIGURE A-4: PIC18 WIRELESS DEVELOPMENT BOARD TOP SILK-SCREEN FIGURE A-5: PIC18 WIRELESS DEVELOPMENT BOARD TOP COPPER © 2011-2012 Microchip Technology Inc.
PIC18 Wireless Development Board Schematic FIGURE A-6: PIC18 WIRELESS DEVELOPMENT BOARD BOTTOM SILK-SCREEN – MIRRORED FIGURE A-7: PIC18 WIRELESS DEVELOPMENT BOARD BOTTOM COPPER – MIRRORED © 2011-2012 Microchip Technology Inc.
PIC18 Wireless Development Board Schematic A.4 PIC18 WIRELESS DEVELOPMENT BOARD BILL OF MATERIALS TABLE A-1: Reference IDs PIC18 WIRELESS DEVELOPMENT BOARD BILL OF MATERIALS Qty Type/Value Description Manufacturer Manufacturer P/N BT301 1 3V Battery Holder, 2 cell, AA, PC Mount Keystone Electronics 2462 C104, C105 2 8 pF CAP CER 8.0PF 50V C0G 0603 Murata GRM1885C1H8R0DZ01D C101, C102, C103, C107, C201, C203, C301 7 0.
PIC18 Wireless Development Board Schematic TABLE A-1: PIC18 WIRELESS DEVELOPMENT BOARD BILL OF MATERIALS (CONTINUED) Reference IDs Qty Type/Value Description Manufacturer Manufacturer P/N SW101, SW201, SW202 3 — Switch, Pushbutton, Momentary, 6x3mm SMT C&K Components PTS635SL25SMTR LFS TP301, TP302 2 — 5016K Test Point, SMT Keystone Electronics 5016 U101 1 PIC18F46J50 -I/PT PIC18F46J50T-I/PT Microchip Technology Inc.
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.