pic24 communicating with WI232 DTS transciever

Started by fadi83 August 27, 2008
hello all,

before i start i have to stay that i'm still a beginner in working
with pics, so take it easy on me :).

i'm currently working with explorer 16 Dev. board using
pic24FJ128GA010. i'm trying to communicate with a transciever that i
just acquired which is Wi232DTS from radiotronix. i've configured the
uart in the pic, and i tested it by using a hyperterminal. according
to my understanding with the wi232DTS transciever, you only have to
send characters to the transcievers (uart interface), and it will do
the whole job for you by sending the characters wirelessly. but
ofcourse life is not that simple, it didn't work this way. so now i'm
kind of bangin my head trying to configure the transciver via my pic.

so here comes my inquiry, i've read the manual for the transciever
there is a uart configuration for it. simply they are, CTS, CMD, RXD
and RXD. for me what i care about is the CMD. what it does it tell it
whether to be on command mode where the pin should be low( set the
registers) or not where i can just send characters and it will send
it to the RF word.

so my question is, how can i configure the CMD pin from my PIC. i'm
using both RF13 (output) and RF12 (input) pins in my pic uart
configuration.

so please i would really apprecaite it if someone can help me on this.

thanks in advance
The uarts in 24 series pics include hardware handshake, so that takes care
of tx, rx, rts, and cts. The CMD pin is not part of the RS232 standard,
but sometimes the DTR (data terminal ready) or DSR (data set ready) pin
can be used for this purpose. I'd figure out what pin the radio is
expecting the CMD line on, then allocate an unused PIC pin for that and
run it through an RS232 driver. Your code can then set that pin high or
low as needed.

Harold
--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

Thanks alot,

but the question is how can i run it through the RS232 driver, coz
according to my understanding it the UART transmission is automatic,
what i mean is that i don't evne have to worry about the transmission
or recieving. Do you have sample c code that might help me.

Thanks alot, sorry if i'm bothering.
--- In p..., "Harold Hallikainen"
wrote:
>
> The uarts in 24 series pics include hardware handshake, so that
takes care
> of tx, rx, rts, and cts. The CMD pin is not part of the RS232
standard,
> but sometimes the DTR (data terminal ready) or DSR (data set ready)
pin
> can be used for this purpose. I'd figure out what pin the radio is
> expecting the CMD line on, then allocate an unused PIC pin for that
and
> run it through an RS232 driver. Your code can then set that pin
high or
> low as needed.
>
> Harold
> --
> FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
> opportunities available!
>