Home/Support/Support Forum/DIO line passing between microcontrollers

DIO line passing between microcontrollers

0 votes
I am using two 802.15.4 xbees to pass DIO signals between two identical microcontrollers (uC1 and uC2). I am also passing serial data bytes between the uCs which works just fine. I have both xbees setup for AT commands.

I have connected the wiring as follows:
DIO_out -> p19 (DIO1):in
DIO_in -> p20 (DIO0):out

DIO_out -> p20(DIO0):in
DIO_in -> p19(DIO1):out

My experiment is to send via DIO_out a 1ms 3.3V pulse from uC1, receive it on uC2, and retransmit it to uC1. This will allow me to compute the precise transport delay of the round trip DIO signals. Dividing by 2 gives me the one-way transport delay.
So far, this isn't working.

I am using AT commands ...
ATID 3141=====ATID 3141
ATMY 1111=====ATMY 2222
ATDL 2222=====ATDL 1111
ATD0 0x03=====ATD0 0x04
ATD1 0x04=====ATD1 0x03
ATIC 0x03=====ATIC 0x03
ATIC sets bits 0 and 1 for change detection.
I believe, for the 802.15.4 xbee, the ATIC has only a single byte argument.

My question is:
Is this a sufficient set of AT commands for the DIO line passing? I have set ATIC for change detection, so I don't think I need the ATIR sample rate command. Also, I don't think I need the ATT0 and ATT1 timeout commands.

Suggestions welcome.
asked Nov 5, 2015 in RF Solutions and XBee by jekain314 New to the Community (5 points)
edited Nov 5, 2015 by jekain314

Please log in or register to answer this question.

1 Answer

0 votes
These are sufficient AT commands to enable Line Passing.

Connect these modules to XBIB interface board and check if Line Passing working manually with switches and LEDs of interface board.

If it works then check if DIO lines of micro-controllers have output voltage and output time duration sufficient enough to trigger change detection. These modules requires maximum 0.35* VCC for LOW and minimum 07*VCC to trigger HIGH.
answered Nov 6, 2015 by asgm Veteran of the Digi Community (1,498 points)