Page 9 of datasheet mentions
2.4 Data interface
SZ05-ZigBee Wireless Module has standard interface of RS232, RS485 or TTL in the hardware. Serial
RS232 includes TX2, RX2 and GND. RS485 contains TX2(A+), RX2(B-). TTL interface is TX1 and RX1,
and the level of TTL is 3.3V
TTL TX1 and RS1 are the 3.3V TTL pins. It has to be cross connected to PIC UART Rx and Tx pins. Zigbee RS1 to PIC Tx and Zigbee TX1 to PIC Rx. You can't directly connect it to PIC as PIC is 5V TTL device. See if you can power the PIC with a 3.3V power supply. If yes, you can then use the above connection else if PIC doesn't run at 5V then you need a voltage level translator between Zigbee 3.3V TTL pins and PICs 5V TTL pins.
Another method is to use Zigbees RS232 pins (TX2, RX2) to connect to PIC UART pins. For this A MAX232 is needed. MAX232 circuit is provided in MAX232 datasheet. If you don't want to use MAX232 you can use RS232 to TTL Converter. Connect the RS232 side of converter to Zigbee RS232 port and TTL side to PIC. Whether you use RS232 ot TTL the GND pin of Zigbee should be connected to PIC circuit ground.
Have you configured Zigbee properly?
Pins TX2 and RX2 of Zigbee are RS232 pins. You have to use MAX232 between these pins and 5V TTL UART pins Rx and Tx of PIC. You can use RS232 to TTL converter between PIC and Zigbee.
**broken link removed**
Are you reading the right COMx port in putty ?
hello,
If you want connet the PIC to Zigbee, TX1 and RS1 are the correct pins
TTL level,but if zigbee power supply is 3,3V and PIC supply is 5V
you must use level converter
PIC output TX 5V level ---resistor 1K -- RS1 Zigbee Rx input
PIC Input RX 5V level <------------------ TX1 Zigbee TX output
And use a MAX 3222 instead of MAX232 for the PC Link
The MAX3222/MAX3232/MAX3237/MAX3241 transceivers
have a proprietary low-dropout transmitter output
stage enabling true RS-232 performance from a
3.0V to 5.5V supply with a dual charge pump. The
devices require only four small 0.1μF external chargepump
capacitors. The MAX3222, MAX3232, and
MAX3241 are guaranteed to run at data rates of
120kbps while maintaining RS-232 output levels
Interconnection with 3V and 5V Logic
The MAX3222/MAX3232/MAX3237/MAX3241 can
directly interface with various 5V logic families, including
ACT and HCT CMOS. See Table 3 for more information
on possible combinations of interconnections
Have you configured the baudrate of Zigbee and also your PC COMx port of USB (Virtual COMx) port to the same baudrate as set in MCU code ?
hello
We don't know if SND (Gnd for RS232) is internally linked to Gnd
so try to connect SND (pin24 ?) to GnD
Gnd Zigbee must be the same Gnd as for PIC !
On Zigbee doc
TX2 RX2 pins are noted RS232/RS485 !
we suppose you have RS232 modele , not RS485 !
Try also to change capacitor 10µF by 1µF ! on Max232
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?