• AVR Freaks

Hot!Q43 "Quirks"

Author
mpgmike
Super Member
  • Total Posts : 365
  • Reward points : 0
  • Joined: 2014/01/23 17:27:06
  • Location: NJ
  • Status: offline
2020/02/13 18:59:48 (permalink)
0

Q43 "Quirks"

Started playing with the new PIC18F47Q43.  I couldn't help but notice a few oddities:
 
- No PMD2 (jumps from PMD1 to PMD3)
- To use DMA and CLC Registers, you first must configure DMASELECT/CLCSELECT Registers;
  *  Once a DMA/CLC Register is SELECTed, you then configure DMAnXXX / CLCnXXX Registers
 
I'm not complaining, but it is something new in the 8-bit PIC world.  Anybody else see something unusual?

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

14 Replies Related Threads

    JPortici
    Super Member
    • Total Posts : 896
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 00:19:26 (permalink)
    +2 (2)
    You forgot the shitty datasheet where everything was ruined because a bunch of idiots that have clearly never read a technical document or a textbook are in charge (the reason why i will never EVER use the Q43 or the upcoming Q83, despite being the ideal parts for a few projects. Unusable documentation, unusable part.)
     
    PMD2 may be missing because in the "generic" description for the MCU family all the bits in PMD2 are for peripherals that are not implemented. Nothing new, they do it all the time in the 16/32 bit families.
    Other quirks in the past were needing to enable the peripheral before being able to set it up in some families, while other with apparently identical peripherals did not require that
    #2
    Jerry Messina
    Super Member
    • Total Posts : 461
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 03:25:34 (permalink)
    +1 (1)
    Not really a quirk, but I noticed the Q43 "fixes" the issue introduced in the K42 where you had to use the three-word MOVFFL instruction to access SFR registers since they were outside the 4K region addressed with MOVFF.
    The SFR registers are now located at the beginning of RAM (from bank 0), so the "usable ram" now starts in bank 5, along with the lower access bank.
     
    I agree about the new datasheet format. I find it much harder to locate what I'm looking for.
    #3
    mpgmike
    Super Member
    • Total Posts : 365
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 04:38:40 (permalink)
    0
    Oh, and take a look at the .inc.  Which Bank did you say TMR0 was in???

    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.
    #4
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3678
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 05:23:35 (permalink)
    +1 (1)
    It's got color.
    Good register layout on this new design.
     
    I use Firefox for pdf docs, ctrl' F to find.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #5
    1and0
    Access is Denied
    • Total Posts : 10356
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 08:09:04 (permalink)
    +2 (2)
    Color is nice, but bring back the double-column datasheet format!
     
    #6
    AMAK
    Super Member
    • Total Posts : 56
    • Reward points : 0
    • Joined: 2014/08/05 10:45:57
    • Location: 0
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 10:21:40 (permalink)
    0 (2)
    Hi JPortici,
     
    What did you not like about the data sheet other than it not being in a two-column format? Why do you think the Q43 is unusable? Is it missing features or does it have too many features? 
     
    The new format was chosen because it now allows us to have the data sheets available online for easier access to the customers via tools like MPLABX. 
     
    Looking forward to your constructive feedback.
    post edited by AMAK - 2020/02/14 12:00:01
    #7
    1and0
    Access is Denied
    • Total Posts : 10356
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 10:39:23 (permalink)
    +2 (2)
    Ashish_Makthal
    The new format was chosen because it now allows us to have the data sheets available online for easier access to the customers via tools like MPLABX. 

    ... and you cannot do that with the old format !?
    #8
    NorthGuy
    Super Member
    • Total Posts : 5920
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 11:11:26 (permalink)
    0
    The memory mapping has been re-done quite a bit. SFRs are in the beginning. ACCESS now draws from bank 5, not 0 (unless you use XINST). All the important registers, such as WREG are in bank 4. I like that better. Looks like PIC18 gets finally liberated of contrived memory model which was suffocating from the beginning. Slowly. but surely :)
     
    The CLCSELECT and DMASELECT are like mini-banking for the SFRs. Saves a lot of SFR space. Also, now the same code can work with different object - just change the SELECT register. This is a nice feature too.
    #9
    mpgmike
    Super Member
    • Total Posts : 365
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 13:17:04 (permalink)
    0
    I suppose it didn't take a whole lot to get used to; it's just different than the familiar.  I think I know why the sales sheet on the Q10 looked virtually identical to the K42.  I believe they tried to utilize the new Qxx format on an existing platform, changing only Kxx -> Qxx platform ("change one thing at a time" concept).

    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.
    #10
    mpgmike
    Super Member
    • Total Posts : 365
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 13:17:17 (permalink)
    0
    [Duplicate post]
    post edited by mpgmike - 2020/02/26 08:44:59

    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.
    #11
    Jerry Messina
    Super Member
    • Total Posts : 461
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 17:31:33 (permalink)
    0
    mpgmike
    Oh, and take a look at the .inc.  Which Bank did you say TMR0 was in???



    In bank 3 with the rest of the timers? Am I missing something?
     
    #12
    1and0
    Access is Denied
    • Total Posts : 10356
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Q43 "Quirks" 2020/02/14 19:14:47 (permalink)
    0
    The only thing I see wrong with TMR0 is it's a "volatile unsigned char", instead of "volatile unsigned int". ;)
     
    Edit: I was looking at the .h file.  There is no TMR0 in the pic18f47q43.inc file; there are TMR0L and TMR0H.
     
    post edited by 1and0 - 2020/02/14 19:20:44
    #13
    Jerry Messina
    Super Member
    • Total Posts : 461
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Q43 "Quirks" 2020/02/15 06:38:58 (permalink)
    0
    There is no TMR0 in the pic18f47q43.inc file; there are TMR0L and TMR0H.

     
    Ah, I see. I was looking in the MPASMX p18f47q43.inc file where you find:

    TMR0             EQU  H'0318'
    TMR0L            EQU  H'0318'
    PR0              EQU  H'0319'
    TMR0H            EQU  H'0319'

     
    In the register summary of the datasheet it doesn't list a "16-bit TMR0" register, just TMR0L/TMR0H.
    Oddly enough, for the other timers (TMR1, TMR3, etc) it doesn't list a L/H register pair, just a single "16-bit" register.
    #14
    Howard Long
    Super Member
    • Total Posts : 784
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: Q43 "Quirks" 2020/02/26 08:41:19 (permalink)
    0
    As far as I can tell from the accompanying sheet that came from my Digikey order, there is only ICD4 and PK4 support for this chip family at the moment at least under MPLAB 5.30. I tried, but can't get these devices to work on a Curiosity HPC PKOB3 for example. I can use them in an Curiosity HPC successfully when using a PK4 (didn't try the ICD4).
     
    If I look at the pkobskde.platformTool.xml file inside com-microchip-mplab-mdbcore-pkobskde.jar, it seems that the family might be supported on PKOB3 in the future.
    #15
    Jump to:
    © 2020 APG vNext Commercial Version 4.5