18F4620 - Trying to modify CONFIG 3H


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    Southern California
    Posts
    17

    Default 18F4620 - Trying to modify CONFIG 3H

    I need the CCP2MX bit in CONFIG 3H turned OFF, allowing CCP2 to be assigned to port B. There's got to be a way to set it and forget it in the INCLUDE file. I'm sure this is simple, but all the obvious ways I've tried still haven't worked.

    Any help would be appreciated!
    Robert

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


    Did you find this post helpful? Yes | No

    Default

    Hi Robert,
    Try this line this way:Red added:
    __CONFIG _CONFIG3H, _PBADEN_OFF_3H <font color = red>& _CCP2MX_PORTBE_3H</font color>

    Look in MPASM SUITE for the P18F4620.inc file, there you will find all the configs for this chip
    Code:
    ;----- CONFIG3H Options --------------------------------------------------
    _MCLRE_OFF_3H        EQU  H'7F'    ; Disabled
    _MCLRE_ON_3H         EQU  H'FF'    ; Enabled
    
    _LPT1OSC_OFF_3H      EQU  H'FB'    ; Disabled
    _LPT1OSC_ON_3H       EQU  H'FF'    ; Enabled
    
    _PBADEN_OFF_3H       EQU  H'FD'    ; PORTB<4:0> digital on Reset
    _PBADEN_ON_3H        EQU  H'FF'    ; PORTB<4:0> analog on Reset
    
    _CCP2MX_PORTBE_3H    EQU  H'FE'    ; Multiplexed with RB3
    _CCP2MX_PORTC_3H     EQU  H'FF'    ; Multiplexed with RC1
    ;----- CONFIG5L Options --------------------------------------------------
    _CP0_ON_5L           EQU  H'FE'    ; Enabled
    _CP0_OFF_5L          EQU  H'FF'    ; Disabled
    
    _CP1_ON_5L           EQU  H'FD'    ; Enabled
    _CP1_OFF_5L          EQU  H'FF'    ; Disabled
    
    _CP2_ON_5L           EQU  H'FB'    ; Enabled
    <font color=red>_CP2_OFF_5L          EQU  H'FF'    ; Disabled</font color>
    
    _CP3_ON_5L           EQU  H'F7'    ; Enabled
    _CP3_OFF_5L          EQU  H'FF'    ; Disabled
    Last edited by Archangel; - 3rd March 2009 at 08:29.
    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.

  3. #3
    Join Date
    Oct 2008
    Location
    Southern California
    Posts
    17


    Did you find this post helpful? Yes | No

    Wink Thanks

    Joe,

    Thanks for not only providing the answer, but the reference as well. Now I won't ever ask that, or even a similar question, ever again! Great forum!

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


    Did you find this post helpful? Yes | No

    Default

    You are welcome Robert!<br>
    and as a bonus, every newbie who sees this post while searching
    for this problem will be served as well, so thank you for the question.<br> And Welcome to the forum.
    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.

Similar Threads

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

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