When trying to compile with the 0.94 version an HSerReceive statement with the 16F1709 chip I get an error while compiling the following part of the USART.h library code:
284 #ifdef Var(RCREG1)
285 'Get a bytes from FIFO
286 If USARTHasData Then
287 SerData = RCREG1
288 End if
289 'Clear error
290 If OERR1 Then
291 Set CREN1 Off
292 Set CREN1 On
293 End If
294 #endif
This part of the code is compiled since variable RCREG1 exists in the 16F1709.dat file. But the OERR1 and CREN1 are not defined in that file hence the compilation error.
I included them manually in the 16F1709.dat file following CREN & OERR definition:
After that I was able to compile the HSerReceive statement without any problem and it's working fine.
But I am not too sure of potential side effects of what I did to the .dat file.
Any major consequence to expect ?
Jacques
Last edit: Jacques Nilo 2015-04-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Resolved. The August 2015 Hot Release/USART.h fixes when RCREG1 bit are missing entries for OERR1 CREN1. This affected 16F1704, 16F1705, 16F1708, 16F1709 and 42 the Microchips devices.
Updated USART.H Determine if OEER1 and CREN1 were present in the dat file and now the USART handles correctly.
Last edit: Anobium 2015-09-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When trying to compile with the 0.94 version an HSerReceive statement with the 16F1709 chip I get an error while compiling the following part of the USART.h library code:
This part of the code is compiled since variable RCREG1 exists in the 16F1709.dat file. But the OERR1 and CREN1 are not defined in that file hence the compilation error.
I included them manually in the 16F1709.dat file following CREN & OERR definition:
After that I was able to compile the HSerReceive statement without any problem and it's working fine.
But I am not too sure of potential side effects of what I did to the .dat file.
Any major consequence to expect ?
Jacques
Last edit: Jacques Nilo 2015-04-25
Resolved in version 0.95 of Great Cow Basic.
Last edit: Anobium 2015-10-03
@Jacques. You should be OK. We need to correct the *.dat files in the class of chips that the 16F1709 belongs to.
@Hugh. Can you review and make the changes to the .dat tool and dataset? Then, post new .dat files?
The following DAT files are affected. These have RCREG1 bet are missing entries for OERR1 CREN1.
16F1704
16F1705
16F1708
16F1709
Resolved. The August 2015 Hot Release/USART.h fixes when RCREG1 bit are missing entries for OERR1 CREN1. This affected 16F1704, 16F1705, 16F1708, 16F1709 and 42 the Microchips devices.
Updated USART.H Determine if OEER1 and CREN1 were present in the dat file and now the USART handles correctly.
Last edit: Anobium 2015-09-24