Need some help converting code for a PIC16F84 to an PIC16F886 [yes ASM]


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    In case of doubt, the .INC is handy... look at the end. There you'll discover _CONFIG1 and _CONFIG2

    Try...
    Code:
    	__config _CONFIG1, _XT_OSC & _WDT_OFF & _PWRTE_ON
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default

    Hi:
    The 16f84 has not ADC neither comparators, the 16f886 has. You need the appropiate instructions to disable that functions.
    Greetings..
    Ruben de la Pena

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. Converting compiled code to unsupported PIC
    By jpadfield in forum General
    Replies: 1
    Last Post: - 20th May 2005, 19:40
  5. Converting Stamp code
    By paul.mcallister in forum General
    Replies: 1
    Last Post: - 8th February 2005, 11:48

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