PIC16F886 not running.


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: PIC16F886 not running.

    Let us see what you have got, and we will help YOU make it work.

    read data sheet re:ANSEL ANSELH ADCON0 ADCON1
    PICs typically default to analog ports and YOU MUST tell them to do digital.
    Last edited by Archangel; - 4th January 2015 at 19:30.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Jan 2015
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Re: PIC16F886 not running.

    Im not very good at pics yet, but im learning

    This is what I have. I just want the PIC to light up. I have the LED connected to PORTB.0

    I have tried a lot of different examples, but none works.

    __________________________________________________ _
    TRISB = %11111111
    TRISC = %00000000
    ANSEL = %00000000 ' Make AN0-AN7 digital
    ANSELH= %00000000 ' Make AN8-AN13 digital
    PORTB = 1


    main:
    portb=1
    pause 100
    goto main
    __________________________________________________ ___

    This works in GCB, but I think that compiler does a lot in the background for me.

Similar Threads

  1. Replies: 8
    Last Post: - 28th January 2014, 14:21
  2. Config problem PIC16F886
    By Bosse in forum mel PIC BASIC Pro
    Replies: 55
    Last Post: - 2nd January 2014, 06:24
  3. pic16f886
    By NURULHAIZA in forum General
    Replies: 5
    Last Post: - 21st May 2010, 08:09
  4. PIC16F886 Register Settings
    By aherrera in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th July 2009, 17:52
  5. Pic16f886
    By Larry in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th October 2008, 22:40

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