PPS constants wrong for P18F67K40

General discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

PPS constants wrong for P18F67K40

#1 Post by Dany » 25 Nov 2023 16:23

Hi,

When using PPS_Mapping(RPPin, _output, _function) there is a problem with the PPS library for the PIC18F67K40:

According to the mChip datasheet the values of the _CCP1.._CCP5 functions are wrong in the mE library. Instead of functionvalues 5..9 the values $12..$16 are used. So there is a problem if you want to assign the CCP outputs to a certain pin with the PPS library functions

Thanks in advance for looking into this.

Code: Select all

var xxx: array[5] of byte;

begin
  { Main program }
  xxx[0] := _CCP1;
  xxx[1] := _CCP2;
  xxx[2] := _CCP3;
  xxx[3] := _CCP4;
  xxx[4] := _CCP5;
Attachments
Schermafbeelding 2023-11-25 162152.png
Schermafbeelding 2023-11-25 162152.png (13.45 KiB) Viewed 216 times
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroPascal PRO for PIC General”