lm34 and Ad590 with PIC16f877


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    J_Brittian's Avatar
    J_Brittian Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Peter,
    Unfortunately this post doesn't have your answer, but I do have a couple of questions. How are you connected to your computer? What program are you using to receive the data? Have you set up the baud rate parameters in the program? Why are you using Debug instead of Serout?
    You also mentioned that your not sure if the program is running. The best thing to do then is make the PIC perform an output just before it loops. If you have an LED and a current limiting resistor then have the pic toggle the led each loop.

  2. #2
    wlp01's Avatar
    wlp01 Guest


    Did you find this post helpful? Yes | No

    Default

    hey thank you for replying.

    FYI, i didn't wrote that code. It came from the website. I have connected to the PC through the serial cable with pin5 of DB9 to GND, and pin 2 connect to 1koHm --> portC.6. To receive the data, i used a free PicBasic MicroCode Studio editor RS-232 terminal program, and also tested with hyper terminal at 9600baudrate-8bits-N-1. I think the function of debug and serout is the same.
    About your suggestions for debugging. Do you mean to add a serout line test before looping to test the PIC? Then connect a LED to a certain output port and add "toggle LED" inside the loop to test the crystal oscillator? Im sorry man, i'm very new at this. Anyway, thank you very much.

    Peter

  3. #3
    wlp01's Avatar
    wlp01 Guest


    Did you find this post helpful? Yes | No

    Default hyperterminal shows receive signal, but...

    It turns out that i wasn't using the right type of cap(disk type). Now i got hyperterminal to show something(see attache image), but it's all garbage. I have tested the program at baud rate of 2400, 4800, an 9600. I have also change the font to Corrier New, no luck either. Can anyone help me with this please..

    thanks, Peter
    Attached Images Attached Images  

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts