Detect Xbee Versus Xbee-Pro; Special Instructions For Using The Jtag Interface - Digi XBee-PRO S2C Zigbee User Manual

Rf module
Hide thumbs Also See for XBee-PRO S2C Zigbee:
Table of Contents

Advertisement

Module support

Detect XBee versus XBee-PRO

For some applications, you may need to determine if the code is running on an XBee or an XBee-PRO
device.
1. Use the PC7 pin on the EM357 to identify the device type.
2. Connect PC7 to ground on the XBee module.
3. Use the following code to determine if a device is an XBee or an XBee-PRO:
GPIO_PCSET = 0x80; // Enable pullup resistor
GPIO_PCCFGH &= 0x0fff; // Clear PC7 config
GPIO_PCCFGH |= 0x8000;// Set PC7 as input with pullup/pulldown
if (GPIO_PCIN & 0x80) {
ModuleIsXBeePro = true;
} else {
ModuleIsXBeePro = false;
}

Special instructions for using the JTAG interface

There are four JTAG programming pins on the XBee/XBee-PRO Zigbee RF Module through which
firmware can be loaded onto the EM357 processor. Three of these pins are also connected to a second
pin on the device and are used for separate functions. The following table indicates the JTAG signal
name, the primary connection pin on the device, the secondary connection pin, and the secondary
signal name.
CAUTION! Do not load the secondary pins with circuitry that might interfere with JTAG
programming (for example, an LED tied directly to the ASSOCIATE / DIO5 line). Any
loading circuitry should be buffered to avoid conflicts (for example, connecting
ASSOCIATE / DIO5 to the gate of a MOSFET which drives the LED).
JTAG pin name
JTCK
JTDO
JTDI
JTMS
XBee/XBee-PRO® S2C Zigbee® RF Module
Primary XBee pin
Secondary XBee pin
18
N/A
19
26
20
28
21
5
Writing custom firmware
Secondary pin name
N/A
ON / SLEEP / DIO9
ASSOCIATE / DIO5
DIO12
264

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee s2c zigbee

Table of Contents