Reading analogs with 16F877


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1

    Default

    thanks Joe s i did it but still nothing, I am now running a new PIC with LED's on the TX and RX lines just to elimenate any hardware problems here is the current code


    DEFINE OSC 20 ' Define crystal as 20Mhz

    '*Serial port Setup 9600 8N1*
    DEFINE HSER_BAUD 9600 ; 9600 Baud
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_CLROERR 1 ; Clear overflow automatically
    DEFINE HSER_SPBRG 129

    TRISC = %10000000 'RC7 as RX(input) rest as output

    Main:
    HSEROUT ["hallo"]
    goto main
    end

  2. #2

    Talking

    Thank you JOE S i found the problem, i went back to a led and a button when that did not wanted to work i went back to the hardware and found i used the wrong caps on the oscilator fixing it solved all the problems. again thank you for all the help

Similar Threads

  1. 16f877 and ps/2 keyboard error???
    By boraciner in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th July 2009, 09:14
  2. Replies: 8
    Last Post: - 5th May 2009, 21:10
  3. DS18B20 error reading
    By Gaetano in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th August 2007, 17:21
  4. Pot reading jumping like crazy!!!
    By champion in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 20th November 2006, 22:24
  5. 4 Quadrant dc drive with 16F877
    By mns45 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 23rd February 2006, 14:05

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