Re: PIC USART troubles
- From: "hybrid_snyper" <wayne_tams@xxxxxxxxxxx>
- Date: 4 Mar 2007 07:46:21 -0800
Im totally baffled here, this is where im at. I have the phone and the
PIC wired as so
PIC TX <------------> PHONE RX
PIC RX <-----------> PIC TX
PIC GND <----------------> PHONE GND
I have been running the PIC somewhere between 3V and 3.3V, i have
tried some new code using the PICC compiler samples and some other
stuff ive come up with. I have tried sending the AT command AT
+CFUN=0\r byte by byte, this string should tell the phone to turn off,
the command works no bother when i use hyper-terminal.
I have now tried a new program that will send a simpler command AT
which will give the response OK, once PIC RX receives the bytes from
the phone an LED should turn on to confirm this. I have attached
links to the C code I am using as i thought this might help paint a
better picture of what is going on. I have a feeling that something is
up with the code as the TX and RX pins are constantly high and there
is never any variation in the voltages.
http://studentperks.co.uk/PIC/main.c
http://studentperks.co.uk/PIC/sci.c
http://studentperks.co.uk/PIC/sci.h
I appreciate the assistance so far, thanks.
Wayne
.
- Follow-Ups:
- Re: PIC USART troubles
- From: Anthony Fremont
- Re: PIC USART troubles
- From: hybrid_snyper
- Re: PIC USART troubles
- References:
- PIC USART troubles
- From: hybrid_snyper
- Re: PIC USART troubles
- From: jasen
- PIC USART troubles
- Prev by Date: Re: Power supply part design: AC DC convert problem
- Next by Date: Re: WTB: 7406 TTL O/C Hex Invertor DIL in UK
- Previous by thread: Re: PIC USART troubles
- Next by thread: Re: PIC USART troubles
- Index(es):
Relevant Pages
|