Hot!CCP1CON<5:4>

Author
DUET
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2013/07/10 18:23:18
  • Location: 0
  • Status: offline
2018/10/29 08:16:46 (permalink)
0

CCP1CON<5:4>

The PWM duty cycle is specified by writing to the CCPR1L register and to the CCP1CON<5:4> bits. Up to 10-bit resolution is available. The CCPR1L contains the eight MSbs and the CCP1CON<5:4> contains the two LSbs. This 10-bit value is represented by CCPR1L:CCP1CON<5:4>.

CCP1CON= Capture Compare PWM 1 Control resister. 

1. Is my elaboration correct?
2. What does the red part says?
 
 
#1

5 Replies Related Threads

    1and0
    Access is Denied
    • Total Posts : 8740
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: CCP1CON<5:4> 2018/10/29 09:29:40 (permalink)
    +2 (2)
    A1: Yes.
     
    A2: Bits 5 and 4 of the CCP1CON register.
     
    #2
    DUET
    Starting Member
    • Total Posts : 49
    • Reward points : 0
    • Joined: 2013/07/10 18:23:18
    • Location: 0
    • Status: offline
    Re: CCP1CON<5:4> 2019/01/10 08:56:29 (permalink)
    0
    But it seems to me that in the above picture "<3:0>" means bits from 3 to 0. 

    If I am correct then <5:4> means bits from 3 to 0. Am I correct?
    #3
    1and0
    Access is Denied
    • Total Posts : 8740
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: CCP1CON<5:4> 2019/01/10 09:12:55 (permalink)
    0
    DUET
    If I am correct then <5:4> means bits from 3 to 0. Am I correct?

    NO!  <5:4> is two bits, while bits 3 to 0 is four bits.  Which PIC device?
     
    #4
    1and0
    Access is Denied
    • Total Posts : 8740
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: CCP1CON<5:4> 2019/01/10 09:31:43 (permalink)
    0
    Furthermore, <5:4> in the original post refers to bits in a PWM module register, while ACQT<3:0> refers to bits in an A/D module register. These are two different peripherals. pink: pink
    #5
    qhb
    Superb Member
    • Total Posts : 9196
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: CCP1CON<5:4> 2019/01/10 12:38:21 (permalink)
    0
    As stated, the OP seems to have confused the CCPCON register with one of the ADC control registers.
    This OP has a history of presenting tables without saying where they came from, or what PIC they are using.
     
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5