16F88 - CCPMX strange fuse setting for HWPM


Results 1 to 6 of 6

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    You would think that "ON" means a 1 in that bit position.
    But not in this case.

    If you look in the M16f88.inc file in the INC folder under PBP, you'll see these two lines for the CCPMX config bit.
    Code:
    CCPMX_ON        equ     2FFF0000h       ; X0 XXXX XXXX XXXX
    CCPMX_OFF       equ     2FFF1000h       ; X1 XXXX XXXX XXXX
    There you can see that 1 is OFF, and 0 is ON.

    Therefore CCPMX_OFF = RB0, and CCPMX_ON = RB3.

    Added: The default is 1, so you shouldn't need to do anything to have the CCP on RB0.
    But you will need to set the CCP DEFINES, since PBP's default is PORTB.3 for the HPWM command on a 18F88.
    Code:
    DEFINE CCP1_REG PORTB
    DEFINE CCP1_BIT 0
    HTH,
    Last edited by Darrel Taylor; - 5th April 2007 at 22:12. Reason: default
    DT

Similar Threads

  1. PICKit2 - warning about configuration words
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 4th August 2009, 14:01
  2. RA6 & RA7 I/O setting on the 16F88
    By PICante in forum mel PIC BASIC Pro
    Replies: 35
    Last Post: - 23rd August 2008, 19:32

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