Page 1 of 1

PPS constants wrong for P18F67K40

Posted: 25 Nov 2023 16:23
by Dany
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;