Re: PIC USART troubles



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


.



Relevant Pages

  • TIP #185: Null Handling
    ... nulls, and command modifications for manipulating them. ... Tcl deals with strings, the universal medium for representing data. ... is know and it is an empty string, but if a respondent forgets to give ...
    (comp.lang.tcl)
  • Re: Determine how Word was launched
    ... inspect the command line used to launch Word. ... Private Declare Function GetCommandLineA Lib "kernel32" As Long ... Public Function GetCommandLineAs String ... Dim lngCmdLinePtr As Long ...
    (microsoft.public.office.developer.vba)
  • Re: Class.getMethod in classs static initializer block
    ... I just wanted to add that I had some similar code for a "command line server" project. ... static private final boolean DEBUG = true; ... {public ReturnCode runCommand(String s) ... public ReturnCode parseLine(String line) ...
    (comp.lang.java.programmer)
  • Re: New "base document" available
    ... How to go about retrieving command line parameters? ... the command line arguments (and environment variables) ... Keyword and positional parameters can be mixed in the same command line. ... clp-name points to a string containing "P1" ...
    (comp.lang.cobol)
  • A plan for handling command line options
    ... Getopt is meant to be used by calling it once for each command ... In each case the first argument is an option string and the ... provide an error handling interface that the user can access. ...
    (comp.programming)