Hi Filip, I included pps.jal in a program for the 16f18323 but did not encounter any problems.
I do see that you are using an old version of the compiler and so I assume an old version of JAL libraries. Could you try it again after having installed the latest JAL release? It is recommended to switch to the latest release because more libraries are fixed (like the one I had sent you today). Or you give it a try with the PPS library from the latest release. I attached it to this e-mail. Just put it in the same directory as your main program and recompile it. Kind regards, Rob P.S. About your other post. There was an error in the first version that I sent you yesterday and was fixed in the one I had sent you today. So your problem with the floating pin did not cause the problem. ________________________________ Van: [email protected] <[email protected]> namens flyway38 <[email protected]> Verzonden: zaterdag 14 mei 2022 16:52 Aan: jallib <[email protected]> Onderwerp: [jallib] Help about pps library for the 16F18313 Hello all, Need help about this library using this PIC16F18313. Using directly pps Library gives me many errors, listed below. It seems this PIC target library don't use some of pps library variables. I need to re-direct TX pin for use with serial_hardware library. Have been using serial_software successfully until now. Now I need this RS232 (5V) comms more reactive to external inputs... That's why migrating to serial_hardware (I hope). Compilation started at :14/05/2022 15:50:31 jal jalv24q3 (compiled Sep 27 2014) [Error] (lib/pps.jal) [Line 54] "ppscon" not defined [Warning] (lib/pps.jal) [Line 54] BANK used without an associated value [Error] (lib/pps.jal) [Line 54] '=' expected (got 'eecon2') [Error] (lib/pps.jal) [Line 55] "eecon2" not defined [Error] (lib/pps.jal) [Line 55] 'end' expected (got 'eecon2') [Error] (lib/pps.jal) [Line 55] {IF starts at C:\JALLIB~1\lib/pps.jal:53} [Error] (lib/pps.jal) [Line 55] "eecon2" not defined [Error] (lib/pps.jal) [Line 55] 'end' expected (got 'eecon2') [Error] (lib/pps.jal) [Line 55] {procedure starts at C:\JALLIB~1\lib/pps.jal:51} [Error] (lib/pps.jal) [Line 55] "eecon2" not defined [Error] (lib/pps.jal) [Line 55] unexpected token: "eecon2" [Error] (DMT-TechLogger_v1.10.jal) [Line 163] "pps_ra1" not defined [Error] (DMT-TechLogger_v1.10.jal) [Line 163] '=' expected (got 'pps_control_lock') [Warning] (lib/pps.jal) [Line 54] BANK used without an associated value Compiler CommandLine: C:\JALLIB~1\compiler\jalv2.exe "C:\Users\Gonçalo\Desktop\DMTM\PIC\DMT-TechLogger_v1.10.jal" -s "C:\JALLIB~1\lib" -no-variable-reuse Errors :12 Warnings :1 Here's my code. Configurations: -- PPS Setup include pps pps_control_lock(FALSE) -- unlock PPS module RA0PPS = PPS_TX -- pin_A0 is TX RXPPS = PPS_RA1 -- RX is on pin_A1 pps_control_lock(TRUE) -- lock PPS module Didn't write any "run time" code yet. Thank you very much. Kind regards Filipe Santos -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1fb16608-1403-4c41-a067-dbc578fa7303n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/1fb16608-1403-4c41-a067-dbc578fa7303n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB163772B97A4B0FB28F496D00E6CD9%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.
pps.jal
Description: pps.jal
