Blink Programme for 16F876


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    banjaxxed's Avatar
    banjaxxed Guest

    Question Blink Programme for 16F876

    My first project.

    PicBasic Pro + Microcode Studio Plus v2.1.0.8 + Epic Plus Programmer + Prototype Board + XT 4Mhz

    Tried first setup with C508 and BLINK.BAS programme no problem.

    Selected different processor and successfully loaded programme into F876.

    Can turn outputs ON at any pin position, but when i use the PAUSE instruction and any time setting within the programme nothing runs at all.

    What am doing wrong?

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    banjaxxed

    see: here
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    1. Read the Datasheet.

    2. You will discover the F876 has ADC's (and Comparators I believe in the case of the A version). By default, PortA comes up in Analogue mode. You must set the pins to Digital. See the sections for A/D Convertor Module (and Comparator Module section if it has one) to see how to do this.

    I really am trying to force people to read the Datasheets (the solution is very simple) before asking for answers on the forum.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    read the Datasheets
    And if it still doesn't work -- take a peek at the "errata sheet"....;o]
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    And by the time you've done that, you'll discover the part has been obsoleted by the 'A' version!

  6. #6
    banjaxxed's Avatar
    banjaxxed Guest


    Did you find this post helpful? Yes | No

    Default

    after spending a fortune, getting no answers or support from my suppliers... only more questions - in getting this thing going...... i'll be obsolete myself before it's over

    (should have spent my hundreads of pounds on a decent micro plc)

Similar Threads

  1. Trouble with most basic BLINK on PIC 16F819
    By confusedperson in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 16th April 2009, 21:46
  2. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  3. Can't get blink circuit to work :(
    By Techbuilder in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 31st January 2008, 13:00
  4. Execution time in programme
    By Adrian in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th November 2007, 22:29
  5. I Just Can't Get it to Blink - 16F628
    By Spindle in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st May 2005, 15:54

Members who have read this thread : 1

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