# How to configure the xbee api mode in UART for 3.3v logic MCUs?

**URL:** <https://forums.digi.com/t/how-to-configure-the-xbee-api-mode-in-uart-for-3-3v-logic-mcus/22736>\
**Category:** XBee & XBee Gateway\
**Tags:** xbee-pro-s3b, xbee-api-mode\
**Created:** [October 14, 2021, 10:09am UTC](https://forums.digi.com/t/how-to-configure-the-xbee-api-mode-in-uart-for-3-3v-logic-mcus/22736 "2021-10-14T10:09:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elphmatt](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@elphmatt](https://forums.digi.com/u/elphmatt)\
**Post date:** [October 14, 2021, 10:09am UTC](https://forums.digi.com/t/how-to-configure-the-xbee-api-mode-in-uart-for-3-3v-logic-mcus/22736/1 "2021-10-14T10:09:12Z")

</div>

Hi I’m programming a pi pico to send a transmit request for a simple Hello World. The frame I am using is this:  
7E 00 19 10 01 00 00 00 00 00 00 FF FF FF FE 00 00 48 65 6C 6C 6F 20 57 6F 72 6C 64 D7

Using serial.write() on the arduino uno I was able to easily send this frame to the coordinator but on the pico when I used uart\_putc() or uart\_putc\_raw() it was unable to send.

I added the ACK request and then added a uart\_getc() statement after my transmission while uart\_is\_readable() is true and it receives the same frame back. The only other way I have simulated the same thing is shorting tx and rx. This also happens when and switch the tx and rx wires on the xbee so it din and dout are internally connected.

Has anyone experienced this? Is there any specific configuration needed for 3.3v logic? I noticed there are pull up and down resistors is the default settings fine?

Any advice would be greatly apperated.

---

<div class="post-metadata">

**Author:** ![elphmatt](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@elphmatt](https://forums.digi.com/u/elphmatt)\
**Post date:** [October 19, 2021, 8:18am UTC](https://forums.digi.com/t/how-to-configure-the-xbee-api-mode-in-uart-for-3-3v-logic-mcus/22736/2 "2021-10-19T08:18:07Z")

</div>

I ended up switching to SPI and I got it to work. No idea why UART failed.
