PIC16F887 Config problem


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Cambridge UK
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    1) what doesn't work?
    When I run the debug I can see the registers with either FF or 0 depending where the pot is, the output on portc is the same value as these viewed registers. The program acts like a comparator been left enabled on the a2d pin.

    2) Expected to work on Internal or external OSC?
    I am using the internal osc, I have tried to replicate one of the sample asm demo files to make sure I understand whats happening. I can also blink the LEDs without a problem.
    This is the code
    Code:
    TRISC = %00000000
    loop: 
    
    high portd.3
    pause 250
    high portd.2
    pause 250
    low portd.3
    pause 250
    low portd.2
    pause 250
    goto loop
    end
    3) Config fuses?
    I think this may be the problem, if I set config fuses in the code I get duplicate label errors.
    I have not set any in the code or changed them in the inc files as the blinky code above works.

  2. #2
    Join Date
    Nov 2005
    Location
    Cambridge UK
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    Mister e,
    Thanks very much for the info on that work around!!!! I had only searched the forum using pic16f887. This little test program works fine now. Its only taken me three days to sort this.
    Kind regards Nick

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I see you have it working... anywho, this method is very reliable if you want to play with another way.
    http://rentron.com/PICX2.htm
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 02:48
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2008, 00:51
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 18:20
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 16:26
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 04:56

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