Question: PICs with two configuration words versus one, e.g., 16F88 versus 12F683


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Question: PICs with two configuration words versus one, e.g., 16F88 versus 12F683

    Tracecom, Either way is acceptable, There are 2 configuration words for the F88 processor. There are even more for some of the higher end processors. I don't understand the question?
    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Jan 2013
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: Question: PICs with two configuration words versus one, e.g., 16F88 versus 12F683

    Quote Originally Posted by Dave View Post
    Tracecom, Either way is acceptable, There are 2 configuration words for the F88 processor. There are even more for some of the higher end processors. I don't understand the question?
    Thanks for the response. I know that both ways work, but I want to use the same style layout for the 16F88 as for the 12F683. I have tried several times to rearrange the 16F88 configuration in a vertical list instead of a long horizontal string, but can't get it to compile.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Question: PICs with two configuration words versus one, e.g., 16F88 versus 12F683

    Code:
    #CONFIG
    cfg1 = _INTRC_IO               ; Internal Oscillator
    cfg1&= _CP_OFF                 ; Code protection OFF
    cfg1&= _CCP1_RB0               ; CCP1 function on RB0
    cfg1&= _DEBUG_OFF              ; In-Circuit Debugger Disabled
    cfg1&= _WRT_PROTECT_OFF        ; Flash Program Memory Write Enable bits
    cfg1&= _CPD_OFF                ; Data EE Memory Code Protection Disabled
    cfg1&= _LVP_OFF                ; Low Voltage Programming Disabled
    cfg1&= _BODEN_OFF              ; Brown-out Reset Enable bit
    cfg1&= _MCLR_OFF               ; Master Clear Reset Disabled
    cfg1&= _PWRTE_ON               ; Power-up Timer Enabled
    cfg1&= _WDT_OFF                ; Watch-Dog Timer Disabled
       __CONFIG    _CONFIG1, cfg1  ; -- Set config word 1
    
    cfg2 = _IESO_OFF               ; Internal External Switchover Disabled
    cfg2&= _FCMEN_OFF              ; Fail-Safe Clock Monitor Disabled
       __CONFIG    _CONFIG2, cfg2  ; -- Set config word 2 
    #ENDCONFIG
    DT

  4. #4
    Join Date
    Jan 2013
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: Question: PICs with two configuration words versus one, e.g., 16F88 versus 12F683

    Thank you, Darrel.

Similar Threads

  1. SPI configuration PIC versus Atmel
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2007, 20:17
  2. A/D versus Digital I/O
    By dallennn in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th November 2006, 05:31
  3. lcdout versus serout2
    By Fred in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 28th September 2006, 14:14
  4. Pulsin versus While Wend
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th March 2006, 21:08
  5. PM assembler versus MPAsm
    By bwarb in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th August 2005, 17:14

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