18F4620 - Trying to modify CONFIG 3H


Results 1 to 4 of 4

Threaded View

  1. #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 09: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.

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 : 2

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