Menu

GCASM Symbol TRISC has not been defined C505

Help
2008-04-18
2013-05-30
  • Nobody/Anonymous

    #CHIP 16C505, 4
    #INCLUDE <P16c505.inc>

    dir PORTC  out

    ;pin 10 RC0 =  ULN2003 pin 1 >> 16 Boiler filling Valve "BFV"
    ;pin 9 RC1 =  ULN2003 pin 2 >> 15 Boiler Drain Valve  "BDV"
    ;pin 8 RC2 =  ULN2003 pin 3 >> 14 Essance Pump  "EP"
    ;pin 7 RC3 =  ULN2003 pin 4 >> 13 Fan "FAN"
    ;pin 6 RC4 =  ULN2003 pin 5 >> 12 Heater Unit "HU"
    ;pin 5 RC5 =  ULN2003 pin 5 >> 11 Lights  "LIGHT"

    #define BFV PORTC.0
    #define BDV PORTC.1
    #define EP PORTC.2
    #define FAN PORTC.3
    #define HU PORTC.4
    #define LIGHT PORTC.5

    #define FlashDelay 125 ms

    start:
    set BDV ON
    wait FlashDelay
    set BDV OFF
    set BFV ON
    wait FlashDelay
    set BFV OFF
    set EP ON
    wait FlashDelay
    set EP OFF
    set FAN ON
    wait FlashDelay
      set FAN OFF
    set HU ON
    wait FlashDelay
    set HU OFF
    set LIGHT ON
    wait FlashDelay
    set LIGHT OFF
    goto start

     
    • Nobody/Anonymous

      Sorry, premature send!

      I am using the latest version of GCBASIC and GCIDE 1.3

      The title is the error code I get. I have tried several ways to overcome but alas, no good.

      Any suggestions accepted.

      The purpose of the code is to substitute an existing pre-programmed chip with some board testing routines as a ATE; (Automatic Test Environment).

      Don.

       
    • Don Oakes

      Don Oakes - 2008-04-18

      All fixed with the update as linked below.

      http://gcbasic.sourceforge.net/newfiles/update.zip

      Thanks for your patience.

      Don

       

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.