Menu

OERR1 and CREN1 variable missing in 16F1709.dat file

2015-04-25
2015-10-03
  • Jacques Nilo

    Jacques Nilo - 2015-04-25

    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:

    594 OERR,RC1STA,1
    595 OERR1,RC1STA,1
    596 FERR,RC1STA,2
    597 ADDEN,RC1STA,3
    598 CREN,RC1STA,4
    599 CREN1,RC1STA,4
    

    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
    • Anobium

      Anobium - 2015-10-03

      Resolved in version 0.95 of Great Cow Basic.

       

      Last edit: Anobium 2015-10-03
  • Anobium

    Anobium - 2015-04-25

    @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?

     
  • William Roth

    William Roth - 2015-04-26

    The following DAT files are affected. These have RCREG1 bet are missing entries for OERR1 CREN1.

    16F1704
    16F1705
    16F1708
    16F1709

     
  • Anobium

    Anobium - 2015-08-05

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.