Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIE DBYDNV
== ISO/TS16949==
•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. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, K
PICSTART, PIC
and UNI/O are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MTP, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O,
Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA
and Z-Scale are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
GestIC and ULPP are registered trademarks of Microchip
Technology Germany II GmbH & Co. & KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
DS50002147A-page 2 2013 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
Page 3
WI-FI® G DEMO BOARD
Object of Declaration:
Wi-Fi G Demo Board
USER’S GUIDE
DS50002147A-page 3 2013 Microchip Technology Inc.
Page 4
Wi-Fi G Demo Board User’s Guide
NOTES:
DS50002147A-page 4 2013 Microchip Technology Inc.
Worldwide Sales and Service .....................................................................................49
DS50002147A-page 6 2013 Microchip Technology Inc.
Page 7
Wi-Fi G DEMO BOARD
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. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
®
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
IDE online help.
This chapter contains general information that will be useful to know before using the
Wi-Fi G Demo Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the Wi-Fi G Demo Board to create a Wi-Fi network
and control the demo board functions from the client device web browser.
The manual layout is as follows:
• Chapter 1. “Overview” – This chapter provides a brief overview of the demo
board, highlighting its features and uses.
• Chapter 2. “Hardware” – This chapter provides the hardware description of the
Wi-Fi G Demo Board.
• Chapter 3. “Getting Started” – This chapter describes what you need to know to
start using the Wi-Fi G Demo Board.
• Chapter 4. “Description of Modes of Operation”– This chapter provides the
modes of operation description of the Wi-Fi G Demo Board.
• Chapter 5. “Programming” – This chapter describes what you need and how to
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 the Wi-Fi G Demo Board. The following
Microchip documents are available from the Microchip web site (www.microchip.com),
and are recommended as supplemental resources.
MRF24WG0MA/MRF24WG0MB Data Sheet (DS70686)
Microchip MRF24W Getting Started Quick Guide for MRF24WB0MA/B,
MRF24WG0MA/B for MLA v5 (DS52108)
PIC32MX5XX/6XX/7XX Family Data Sheet (DS61156)
TCPIP Stack Help.chm (This is bundled together with the TCIP/IP source code
releases.)
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
DS50002147A-page 10 2013 Microchip Technology Inc.
Page 11
Preface
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail 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.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB C compilers; all MPLAB
assemblers (including MPASM™ assembler); all MPLAB linkers (including
MPLINK™ object linker); and all MPLAB librarians (including MPLIB™ object
librarian).
• Emulators – The latest information on Microchip in-circuit emulators. This
includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators.
• In-circuit Debuggers – The latest information on the Microchip in-circuit debug-
gers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit™ 3 debug
express.
®
• MPLAB
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and
MPLAB SIM simulator, as well as general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB
ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included
are nonproduction development programmers such as PICSTART
PICkit 2 and 3.
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
Plus and
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at:
DS50002147A-page 12 2013 Microchip Technology Inc.
Page 13
Chapter 1. Overview
1.1INTRODUCTION
Thank you for purchasing the Microchip Technology’s Wi-Fi G Demonstration kit. The
Wi-Fi G Demo Board provides a low-cost and portable development system for
Microchip’s MRF24WG0MA IEEE 802.11b/g Wi-Fi Transceiver Module.
The Wi-Fi G Demo Board is preloaded with a demo software for the user to explore the
features of the MRF24WG0MA Wi-Fi module. It is also expandable through an 8-pin
expansion interface, which enables the user to extend its functionality by adding
various sensor expansion boards.
The topics discussed in this chapter include:
• Wi-Fi G Demonstration Kit Contents
• Functionality and Features
1.2Wi-Fi G DEMONSTRATION KIT CONTENTS
The Wi-Fi G Demonstration Kit contains the following:
• Wi-Fi G Demo Board
• 2 AAA Batteries
• Male 1x6 Connector Header HDR-2.54 (J14)
• Wi-Fi G Demo Board Information Sheet (DS52107A)
Wi-Fi G DEMO BOARD
USER’S GUIDE
1.3FUNCTIONALITY AND FEATURES
The Wi-Fi G Demo Board supports the following network types:
• Infrastructure (client)
• Ad hoc
• Wi-Fi Direct (peer-to-peer as group client)
•SoftAP
The security modes supported are:
• Open
• WEP-40, WEP-104 (Wired Equivalent Privacy)
• WPA (Wi-Fi Protected Access)
• WPA2 (Wi-Fi Protected Access)
For ease of setup and usability, the following connection methods are also supported.
Note:For Demo Version 1.02, only SoftAP, infrastructure and ad hoc network
support are offered. SoftAP supports only open and WEP security at this
time. All security modes are supported in other network types. Future
versions of the Demo software will include the additional functions noted
above.
A representation of the layout for the Wi-Fi G Demo Board is shown in Figure 1-1.
FIGURE 1-1:Wi-Fi
®
G DEMO BOARD LAYOUT
DS50002147A-page 14 2013 Microchip Technology Inc.
Page 15
Overview
The Wi-Fi G Demo Board has the following key features:
The MRF24WG0MA IEEE 802.11 b/g Wi-Fi Transceiver Module provides wireless connectivity to the demo board. Host communication is through SPI2 of the PIC processor
on the board.
2.1.2Processor Support
The Wi-Fi G Demo Board is designed with a permanently mounted (soldered)
PIC32MX695F512H processor.
Wi-Fi G DEMO BOARD
USER’S GUIDE
2.1.3Power Supply
The board is powered by 2 AAA batteries. If required, the battery voltage is monitored
and boosted by the MCP1642 Synchronous Boost Regulator.
2.1.4LEDs
The LEDs: LED0 (GREEN), LED1 (YELLOW) and LED2 (RED) are connected to
PORTE and PORTF of the PIC32MX695F512H processor. To turn the LEDs ON, the
port pins are set high.
2.1.5Switches
The Wi-Fi G Demo Board has the following switches:
• S1 – Controls the main power to the board. To turn on the board, move S1 slider
to the ON position.
• SW0 – It is an active low push-button switch, connected to RD9 of the processor.
When idle, the switch is pulled high (+3.3V) and when pressed, it is grounded.
2.1.6Programming/Debug Port
Connector J14 provides easy access to the PIC32MX695F512H processor’s debug
pins. This is used to program or reflash the demo board with new firmware.
2.1.7Expansion Port
Connector J15 provides access to six of the processor’s spare I/O pins. These pins can
function as general purpose I/O ports or as an SPI, I2C or UART interface to an external
circuit design.
MRF24WG0MA MAC (SN): 001EC001F102
SSID: MCHP_G_F102
3.1OVERVIEW
The Wi-Fi G Demo application uses a network provisioning mechanism called
EasyConfig to enable configuration of an embedded device on a wireless network.
EasyConfig utilizes the web server of the TCP/IP stack and a wireless network to
enable the user to input the desired network information from a client browser, and then
reset the device to connect to the desired network.
3.2RUNNING THE Wi-Fi G DEMO APPLICATION
This section describes how to connect to the Wi-Fi G Demo Board to control the on
board LEDs and view the status of the SW0 switch from a web browser. It also
describes how to connect the Wi-Fi G Demo board to an existing network.
1. After turning the power on, the Wi-Fi G Demo Board broadcasts a SoftAP network with an SSID, MCHP_G_xxxx, where, xxxx is the last four digits of the
MRF24WG0MA IEEE 802.11 b/g Wi-Fi Transceiver Module’s MAC address (See
Note:SoftAP is required to transmit beacons within each beacon interval. This
increases the transmit power consumption and therefore shorten the
battery life.
Page 20
Wi-Fi G Demo Board User’s Guide
2. Connect a client device (e.g., laptop, smart devices) to the MCHP_G_xxxx
SoftAP network.
3. When the client device is connected, use a standard web browser and enter the
IP address of the Wi-Fi G Demo Board. The default IP address is
http://192.168.1.3. Another alternative is to enter “mchpboard.local” into the web
browser. See figure Figure 3-2.
FIGURE 3-2:ACCESSING WEB BROWSER
4. The following web pages from the web server that is running on the Wi-Fi G
Demo Board are displayed.
a) The index.htm web page displays the additional information about the Wi-Fi G
Demo Board application. It also displays the continually updating status of the
three LEDs (LED0, LED1 and LED2) and push-button on the Wi-Fi G Demo
Board, see Figure 3-3. To control the LEDs, click on the LED icon on the web
page. To see the status of the push-button, press SW0 on the Wi-Fi G Demo
Board.
DS50002147A-page 20 2013 Microchip Technology Inc.
Page 21
FIGURE 3-3:SAMPLE INDEX.HTM WEB PAGE
Getting Started
b) The mrf24wg0ma.htm web page highlights the features of the MRF24WG0MA
IEEE 802.11 b/g Wi-Fi Transceiver Module and the supporting development
tools. See Figure 3-4.
c) The configure.htm web page enables the user to scan for nearby networks
and connect to the selected network to start up as a group client in Wi-Fi Direct
network, or as an ad hoc, or as a SoftAP and to select WPS-PBC or WPS-PIN.
See Figure 3-5.
DS50002147A-page 22 2013 Microchip Technology Inc.
Page 23
Getting Started
FIGURE 3-5:SAMPLE CONFIGURE.HTM WEB PAGE
5. To connect the Wi-Fi G Demo board to an existing network, click Display Scan
Results on the configure.htm web page. See Figure 3-6.
FIGURE 3-6:DISPLAY SCAN RESULTS WEB PAGE
6. When a new network is selected, the Wi-Fi G Demo Board resets automatically
using the parameters (SSID, security key) of the new network to reconnect to this
new network. See Figure 3-7.
7. To continue using the demo, the client device must be reconnected to the same
network where Wi-Fi G Demo Board is redirected to.
Note:This is not applicable for initial release Demo Version 1.02. The demo board
always attempts to connect to the last known network. If the user wants to
reset the demo board to factory default conditions (startup in SoftAP mode)
again, then simply press SW0 for 4 seconds. Do NOT press SW0 immediately on power up, as this initiates a self-test and does not reset the demo
board to default factory conditions.
DS50002147A-page 24 2013 Microchip Technology Inc.
Page 25
Chapter 4. Description of Modes of Operation
4.1SoftAP NETWORK
On starting the demo, the factory default conditions has the product start up as a
SoftAP without security. This means that all the network information that is being configured on the device is going over-the-air in the open. For most applications, unless
another user is specifically attempting to listen in on this network, the potential security
impact is minor. However, for applications that require baseline level of security, WEP
can be employed on the network.
SoftAP is the centralized coordinator for the network. With MRF24WG0MA IEEE
802.11 b/g Wi-Fi Transceiver Module firmware version 0x3107 and future releases, it
supports Wired Equivalent Privacy (WEP) (40-bit/104-bit) security.
4.2AD HOC NETWORKS
Ad Hoc networks are peer-to-peer networks with no centralized coordinator for the network. All the devices share the responsibilities of keeping the network running. According to 802.11 specifications, ad hoc network only supports 802.11b rates of 1 Mbps, 2
Mbps, 5.5 Mbps and 11 Mbps.
One downfall of ad hoc networks is that typically security is not employed on them.
The MRF24WG0MA IEEE 802.11 b/g Wi-Fi Transceiver Module can secure an ad hoc
network with Wired Equivalent Privacy (WEP) (40-bit/104-bit) security, like most of the
laptops and ad hoc devices. Very few devices in the market can secure an ad hoc network with Wi-Fi Protected Access (WPA) level security due to tremendous overhead.
For most applications, unless another user is specifically attempting to listen in on this
network, the potential security impact is minor. However, for applications that require
baseline level of security, WEP can be employed on the network.
Most Android devices do not support ad hoc networks.
Wi-Fi G DEMO BOARD
USER’S GUIDE
4.3Wi-Fi DIRECT NETWORKS
Wi-Fi Direct network is a peer-to-peer (P2P) network. It enables the user to configure
a secured wireless network between several devices, such as smart devices, laptops
or computers with wireless network adapters, without using an access point (AP).
Wi-Fi Direct supports Wi-Fi Protected Setup (WPS) connection method, which is
known as the WSC (Wi-Fi Simple Configuration) Config Methods in the Wi-Fi
Peer-to-Peer (P2P) Technical Specifications, in particular WPS Push Button method
with WPA2.
From the negotiation process, each device determines which devices become group
owner (GO) or group client (GC). The GroupOwnerIntent field in the P2P information
element (IE) indicates the level of desire to become the GO. The higher the value, the
higher the desire to be the GO.
MRF24WG0MA IEEE 802.11 b/g Wi-Fi Transceiver Module only supports the role of
GC.
Zero Configuration (Zeroconf) provides a mechanism to simplify the device configuration on a network. The term Zeroconf is titled from the names Bonjour (Apple) and
Avahi (Linux), and is an Internet Engineering Task Force (IETF) standard. Zeroconf
provides simplified naming conventions, instead of relying on the IP addresses alone.
The Zeroconf is built on the following three core technologies:
4.4.1Link Local
The first component of Zeroconf is the ability to self-assign an IP address to each member of a network. Usually, a Dynamic Host Configuration Protocol (DHCP) server handles such situations. However, when no DHCP server exists, Zeroconf-enabled
devices negotiate the unique IP address amongst themselves.
4.4.2Multicast DNS
The second component of Zeroconf is the ability to self-assign the host names. Multicast Domain Name System (mDNS) provides the local network with the ability to have
the features of a DNS server. User can use the host names to access the devices on
the network. When devices select to use the same host name, as in the IP address resolution, each of the devices has the ability to self-assign the Auto-negotiate New
Names, usually appending a number at the end of the name.
4.4.3Service Discovery
The last component of Zeroconf is service discovery. All Zeroconf devices can broadcast what services they provide. For instance, a printer can broadcast about available
printing services. A thermostat can broadcast that it has an HVAC control service. For
a specific service, the user can see the list of devices that provide the service, and
connect to it. This eliminates the need to know whether something exists on a network
(and what its IP or host name is). The user can query the network to see if a certain
service exists or not, and easily connect to it.
4.4.4Zero Configuration & mDNS demonstration
An iPhone and an apps supporting Zero Configuration is used in the demonstration.
DS50002147A-page 26 2013 Microchip Technology Inc.
Page 27
Description of Modes of Operation
FIGURE 4-1:ZERO CONFIGURATION DOMAIN
Click on the local domain and determine available services. See Figure 4-2.
FIGURE 4-2:SERVICE DISCOVERY
Click on the service offered, in this case, DemoWebServer. A web browser opens and
displays the Wi-Fi G Demo Board web pages. See Figure 4-3.
When the Wi-Fi G Demo is in an unconfigured state (i.e, serving the default
MCHP_G_xxxx SSID in SoftAP mode), the GREEN LED (LED0) blinks twice per second to indicate that it is not configured. After the network is configured, the LED blinks
once per second.
Note:When the Wi-Fi G Demo Board is moved to a different network, a new IP
address is assigned to it. As the new Wi-Fi G Demo Board does not display
the new IP address, the user must obtain the new IP address from the
server that assigned it. Refer to your server’s documentation for the necessary steps required to obtain the new IP address.
DS50002147A-page 28 2013 Microchip Technology Inc.
Page 29
Description of Modes of Operation
4.6DETERMINING NEW IP ADDRESS ASSIGNED
There are two methods to determine the new IP address assigned:
a) Zero Configuration / mDNS
From the zero configuration apps, once this apps redirects and opens up the web
browser, the Wi-Fi G Demo web page shows the new assigned IP address. See
Figure 4-3.
b) AP DHCP ClientTable
Refer to your AP’s documentation for the necessary steps required to obtain the new
IP address. As an example, for certain APs, by selecting <Status> and then <Local Network>, an option <DHCP Client Table> is offered. This DHCP Client Table lists the IP
address that is assigned to the Wi-Fi G Demo Board. See Figure 4-4.
DS50002147A-page 30 2013 Microchip Technology Inc.
Page 31
5.1SOFTWARE
The required software to program Wi-Fi G Demo Board include:
• Microchip MPLAB
• Microchip MPLAB XC32 Compiler
Wi-Fi G Demo Board is based on the Microchip TCPIP stack software. You can download the latest software version from the Microchip web site, as this contains the latest
bug fixes and the best support for current versions of the compilers.
Initial release is based on the Microchip TCPIP v5 stack software. Future plan is to add
this to Microchip TCPIP V6 stack software. Software updates are available on the
Microchip web site.
The initial release will only demo SoftAP with the capability to scan before connection,
enabling scan results to be available. From the scan results, another network can be
chosen to be redirected to.
Future releases will add more features such as Wi-Fi Protected Setup (WPS), etc.
Refer to the release notes for more information.
Wi-Fi G DEMO BOARD
Chapter 5. Programming
®
X IDE
USER’S GUIDE
5.2HARDWARE
The following hardware is required to program the Wi-Fi G Demo Board:
• In-circuit debuggers, emulators or programmers such as the PICkit™ 3, MPLAB
ICD 3 and MPLAB REAL ICE™ In-Circuit emulator.
In Figure 5-1, the MPLAB ICD 3 is used.
In Figure 5-3, the PICkit 3 debugger is used.
• ICD 2 to ICSP Adaptor (Part number AC164110) is needed if the MPLAB ICD 3 or
MPLAB REAL ICE In-Circuit Emulator is used.
• Wi-Fi G Demo Board
• Power supply requirements:
- If programming using PICkit 3 or MPLAB ICD 3, power supply can be supplied
- If using batteries during programming, note that multiple programming may
- +3.3V DC power supply may be needed if MPLAB X IDE is in debugging
The required hardware interconnections include:
• ICD 2 to ICSP Adaptor (Part number AC164110)
- Connect Wi-Fi G Demo Board J14 pin 1 to ICD 2 to ICSP Adaptor J2 pin1.
• PICkit 3
- Connect Wi-Fi G Demo Board J14 pin 1 to PICKit3 header pin 1. See
DS50002147A-page 32 2013 Microchip Technology Inc.
Page 33
Programming
FIGURE 5-3:Wi-Fi® G DEMO BOARD – PICkit™ 3 HARDWARE
INTERFACE
5.3PROGRAMMING SEQUENCES – PROJECT
1. Open MPLAB X IDE.
2. Click on F
Wi-Fi G Demo Board. See Figure 5-4.
FIGURE 5-4:OPEN Wi-Fi
ile>Open Project. Browse to Wi-Fi G Demo Board directory and open
®
G DEMO BOARD PROJECT
3. Check the appropriate in-circuit debugger is selected. Click on <Project Properties>. See Figure 5-5. Ensure that right in-circuit debugger is selected. See
6. Power supply is supplied to Wi-Fi G Demo Board from the in-circuit debugger.
Under <Project Properties> and selected in-circuit debugger, click on Ocategories>Power. Enable option to <Power target circuit from PICkit 3> or
<Power target circuit from MPLAB ICD 3>. See Figure 5-13 and Figure 5-14.
FIGURE 5-13:PICkit™ 3 POWER CONFIGURATION
ption
DS50002147A-page 38 2013 Microchip Technology Inc.
Page 39
Programming
FIGURE 5-14:MPLAB® ICD 3 POWER CONFIGURATION
7. Click on <Make and Program Device>. See Figure 5-15.
FIGURE 5-15:MAKE AND PROGRAM DEVICE
8. Once programming is completed, the output panel displays programming completed status. See Figure 5-16.
DS50002147A-page 40 2013 Microchip Technology Inc.
Page 41
Chapter 6. Advanced Features
6.1CHANGE TRANSMIT POWER
Wi-Fi APIs are available in source file WFTxPower.c to read and write MRF24WG0MA
transmit power. MRF24WG0MA has a transmit power range of 0 dBm to 18 dBm.
Invoke function prototype WF_TxPowerGetMax to read back MRF24WG0MA transmit
power. Invoke function prototype WF_TxPowerSetMax to set MRF24WG0MA transmit
power. No conversion of units is needed as input parameter to WF_TxPowerSetMax is
in dBm.