Announcement

Collapse
No announcement yet.

18F2431 compatibillity issue with PBP3.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Darrel Taylor
    replied
    You shouldn't have any problems doing that.
    And I agree, those names should be there.

    PBP3 now uses information from Microchip to generate the .pbpinc files.
    Charles is looking into why those names aren't included.

    It's probably that those addresses already had names assigned, and nothing took into account that when using the peripheral in a different mode (QEI) it's makes more sense to use different names for those same registers. But that's just my guess at this point.

    Thanks for the heads up Henrik.

    Leave a comment:


  • Henrik Olsson
    started a topic 18F2431 compatibillity issue with PBP3.

    18F2431 compatibillity issue with PBP3.

    Hi,
    I've got code that compiles with PBP2.6c but not with PBP3.0.4.4

    I think I've tracked it down to the registers POSCNT and MAXCNT not being declared in the PIC18F2431.PBPINC file. I looked up the registers in the datasheet and found that they look to be "the same" registers as CAP2BUF and CAP3BUF respectively so I did:
    Code:
    POSCNTH VAR CAP2BUFH
    POSCNTL VAR CAP2BUFL
    MAXCNTH VAR CAP3BUFH
    MAXCNTL VAR CAP3BUFL
    And it now compiles. Any possible issues with this?

    Thanks!
    /Henrik.
Working...
X