Menu

Possible error in GCBASIC 9.3.0.

Help
2007-02-26
2013-05-30
  • Nobody/Anonymous

    Congratulations for the new GCBASIC ver 9.3.0. its better than ever!

    but ...
    when I work with PIC 12F675 with GCBASIC ver 9.2.9.

    This line:      dir gpio b'00000101' works fine

    the same line with ver 9.3.0. gives an SysWaitTempMS not defined error!
    if you change gpio for porta then compile and download well but this way is like to be a little unconventional for this PIC.

    I'm sure that this is a minor problem and you will correct it in a snap.

    Also I would to know program example for a new  commands of GCBASIC ver. 9.3.0.,
    included in ... GCBASIC\Include\Lowlevel\Remote.h

    Thank again for a fine work.    PCS

     
    • Hugh Considine

      Hugh Considine - 2007-02-27

      There was a problem with the variable handling code, which I have fixed in http://gcbasic.sourceforge.net/newfiles/update.zip

      I haven't yet prepared any documentation or examples for remote.h, as the routines themselves have not been tested. As soon as I can I will post some example code and updated routines here, but this could take a month or so depending on how busy I am.

       
    • Nobody/Anonymous

      Hi,
      I'm just giving this nice compiler a try for the first time (usually I don't use
      PICs...) and run into problems after the first few lines.
      Using a 16C57, I' want to set the Ports to their IO-functions.
      Tried all possible ways to to it :

      DIR GPIO b'00000011'
      or
      DIR GPIO IN
      or
      DIR PORTB.0 IN    ' Speed
      or
      dir PORTA b'00000011'
      etc.
      Everything compiles fine and without any error apart from the DIR commands:
      Error: Invalid pin direction, expected In or Out
      1153pic.txt (42): Error: Cannot set direction of individual pins on 12 bit core chips
      1153pic.txt (42): Error: PORTI.O is not a valid I/O pin or port
      1153pic.txt (42): Error: Syntax Error
      1153pic.txt (51): Error: PORTA is not a valid I/O pin or port
      1153pic.txt (58): Error: PORTC is not a valid I/O pin or port

      So, what is the correct way to set the Ports to their IO-functions ?
      And, if GPIO is used, which of the ports is configured ? A, B or C ?
      Version used is :
      Program compiled by Great Cow BASIC (0.9 4/12/2007)

      regards,
           Reelf

       

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.