Hi Kiste, I managed to get both the standard serial and interrupt serial driver working for the 18F26k42 but when I was working on the interrupt driven version I also got the data error you mentioned. By lowering the buffer sizes I got rid of it but it seems to be a compiler issue. I also had this issue before with another PIC.
It took me quite some time to get the interrupt version working since apparently Microchip has introduced vectored interrupts which is by default on. After I found this problem I switched it off in the main program by pragma target MVECEN DISABLED. I contacted Kyle for the data error problem and I will see if I can find out what causes it. I noticed that the data error problem results in the program not working correctly so it is indeed an error. Kind regards, Rob ________________________________ Van: 'Oliver Seitz' via jallib <[email protected]> Verzonden: maandag 1 juli 2019 18:10 Aan: [email protected] Onderwerp: Re: [jallib] Re: PIC18F27K42, probably PPS problem Hi Rob, thank you for having a look :-) I thought it might be best to think about a completely new backend for the uarts, as they have new possibilities, but are very different indeed from the older versions. However, as I did not suffice to get neither serial nor PWM signals out of that chip, I would first want to check if the compiler produces the right bytes, it is the first 8-bit-chip ever with 64 memory banks. I had lots of "data check errors" when compiling. Greets, Kiste Am Montag, 1. Juli 2019, 12:49:38 MESZ hat Rob CJ <[email protected]> Folgendes geschrieben: Hi Kiste, I had a look at this issue and I noticed that it is not sufficient to only add the INTCON alias. The problem is that there are more changes needed and I wonder if we can cover this all with aliases as to be able to cover all other PICs. For example the library serial_hw_int_cts.jal checks in its interrupt routine PIR1_RCIF == TRUE but this flag is not available for the 18f27k42. There you should use PIR3_U1RXIF so there you need another alias. Suggestions are welcome. Kind regards, Rob ________________________________ Van: 'Oliver Seitz' via jallib <[email protected]> Verzonden: woensdag 12 juni 2019 18:01 Aan: [email protected] Onderwerp: Re: [jallib] Re: PIC18F27K42, probably PPS problem Hi Rob! I would have suggested it that way, if Am Montag, 10. Juni 2019, 13:18:20 UTC hat Rob Hamerling <[email protected]> Folgendes geschrieben: Sorry, I should have used 'Reply List' (in Thunderbird) -------- Forwarded Message -------- Subject: Re: [jallib] Re: PIC18F27K42, probably PPS problem Date: Mon, 10 Jun 2019 15:15:59 +0200 From: Rob Hamerling <[email protected]><mailto:[email protected]> To: Rob CJ <[email protected]><mailto:[email protected]> Hi Rob! I would have backed your suggestion... If there was something like "all INTCON_xxx bitfields". Unfortunately, the bitfields of INTCON and INTCON0 do differ: e.g. 18f26k22 var volatile bit INTCON_RBIF at INTCON : 0 var volatile bit INTCON_INT0IF at INTCON : 1 var volatile bit INTCON_TMR0IF at INTCON : 2 var volatile bit INTCON_RBIE at INTCON : 3 var volatile bit INTCON_INT0IE at INTCON : 4 var volatile bit INTCON_TMR0IE at INTCON : 5 var volatile bit INTCON_PEIE at INTCON : 6 var volatile bit INTCON_GIE_GIEH at INTCON : 7 vs. 18f27k42 var volatile bit INTCON0_INT0EDG at INTCON0 : 0 var volatile bit INTCON0_INT1EDG at INTCON0 : 1 var volatile bit INTCON0_INT2EDG at INTCON0 : 2 var volatile bit INTCON0_IPEN at INTCON0 : 5 var volatile bit INTCON0_GIEL at INTCON0 : 6 var volatile bit INTCON0_GIE at INTCON0 : 7 Greets, Kiste On 2019/06/10 14:44, Rob CJ wrote: I could add your change to the libraries so that it is included in the next release. I think it is only sufficient to add this statement though: -- Some newer PICs have INTCON registers numbered differently if (defined(INTCON0_GIE) == true) then alias INTCON_GIE is INTCON0_GIE end if This may be helpful for the USART libraries, but what about other libraries and (sample) programs which use INTCON? It looks better to me to add this alias and aliases for INTCON0 itself and aliases for all INTCON_xxx bitfields in the device file. Regards, Rob. -- Rob Hamerling, Vianen, NL -- 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 post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at https://groups.google.com/group/jallib. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/207a0c14-d89e-4098-fb8f-461415c36f06%40gmail.com<https://groups.google.com/d/msgid/jallib/207a0c14-d89e-4098-fb8f-461415c36f06%40gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at https://groups.google.com/group/jallib. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1406706930.483595.1560355311716%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/1406706930.483595.1560355311716%40mail.yahoo.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at https://groups.google.com/group/jallib. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/AM6PR0702MB370353D7E1E5DC6DBB4FF0D5E6F90%40AM6PR0702MB3703.eurprd07.prod.outlook.com<https://groups.google.com/d/msgid/jallib/AM6PR0702MB370353D7E1E5DC6DBB4FF0D5E6F90%40AM6PR0702MB3703.eurprd07.prod.outlook.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at https://groups.google.com/group/jallib. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/639447824.1355464.1561997439288%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/639447824.1355464.1561997439288%40mail.yahoo.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/jallib. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/AM6PR0702MB3703C48A633C6ECD58B6800CE6F70%40AM6PR0702MB3703.eurprd07.prod.outlook.com. For more options, visit https://groups.google.com/d/optout.
