• AVR Freaks

Hot!Why no NCO in any of the 16-bit PIC MCUs?

Author
ReverseEMF
Starting Member
  • Total Posts : 45
  • Reward points : 0
  • Joined: 2012/03/14 17:30:40
  • Location: 0
  • Status: offline
2020/08/11 15:14:02 (permalink)
5 (1)

Why no NCO in any of the 16-bit PIC MCUs?

The title pretty much covers it.  I have various applications for the NCO, but I appear to be limited to 8-bit PICs -- I would much rather be programming a 16-bit PIC!

Or, WTH, if there's a [formerly] ATMEL MCU solution, I might be wiling to switch to that platform.

The Electrons Flow Round and Round...
#1

7 Replies Related Threads

    mpgmike
    Super Member
    • Total Posts : 473
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: online
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/11 15:27:56 (permalink)
    4 (1)
    I think you may find that the 16-bit Output Compare (OC) function is able to accomplish what the NCO function in the 8-bit varieties do.  I too am a fan of NCO, and have been able to do NCO type tight frequency control with the 16-bit OC equivalent.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #2
    ReverseEMF
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2012/03/14 17:30:40
    • Location: 0
    • Status: offline
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/12 11:19:21 (permalink)
    0
    mpgmike
    I think you may find that the 16-bit Output Compare (OC) function is able to accomplish what the NCO function in the 8-bit varieties do.<snip>



    Awesome!  Thank you for your reply!!
     
    But, now I'm having another problem:
    The "Section 16. Output Compare" document [#DS39706A], lists OCxCON as one of the associated Registers, and the Microchip Parametric Search tool [https://www.microchip.com...art.aspx?branchID=8181], when set to 3 Output Compare Resisters, includes the PIC24F08KL302 [one of my earlier choices for a project I'm working on -- chosen before I knew about NCO--I was planning on using PWM to generate frequencies for a Music Synthesizer VCO -- or actually, Midi-Controlled Osc].  So, I was elated!  BUT, I can't find any mention of any OCxCON registers, in the PIC24F16KL402 FAMILY datasheet!  
     
    Could this same functionality have different terminology in the Datasheet? [though, I didn't even see anything that even looked like it could achieve a comparable NCO effect.]

    The Electrons Flow Round and Round...
    #3
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11982
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/12 13:28:08 (permalink)
    4 (2)
    The PIC24K parts are sort of weird hybrids with 8-bit peripherals.  Look at a different PIC24 family.
    #4
    mpgmike
    Super Member
    • Total Posts : 473
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: online
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/12 17:46:59 (permalink)
    0
    Also, when you do your search, if you need 3 OCs, select 3, 4, 5, 6... that way the search results will show all selections with AT LEAST 3.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #5
    ReverseEMF
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2012/03/14 17:30:40
    • Location: 0
    • Status: offline
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/12 22:27:24 (permalink)
    0
    mpgmike
    Also, when you do your search, if you need 3 OCs, select 3, 4, 5, 6... that way the search results will show all selections with AT LEAST 3.


    Yup!  Did that.  I got my hopes up, because the PIC24F08KL302 is already selected, and the PCBs manufactured!  Bummer if truly the Parametric search tool is wrong!

    The Electrons Flow Round and Round...
    #6
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11982
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/12 22:42:34 (permalink)
    4 (2)
    MAPS considers the CCP/PWM from the 8-bit family to be an "output compare".  It is, but it is completely different from the output compare in the rest of the PIC24 line.
    #7
    ric
    Super Member
    • Total Posts : 28378
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Why no NCO in any of the 16-bit PIC MCUs? 2020/08/12 23:46:58 (permalink)
    4 (2)
    Could be a hard lesson. Always check the datasheet, not just a simplistic tool like MAPS.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #8
    Jump to:
    © 2020 APG vNext Commercial Version 4.5