Menu

Will this work and why do i get errors?

Help
2009-08-05
2013-05-30
  • Nobody/Anonymous

    #chip 16F916, 4 'mhz
    #config OSC=INTOSC, MCLRE=off, WDT=off
    #mem 256 'Chip has 128 bytes
    EEADRH = 1

    lcdcon = 0
    dim temp as byte
    dim temp2 as byte
    dir portc.0 in 'serial
    #define RecAHigh portc.0 on
    #define RecAlow portc.0 off
    Initser 1,r2400, 1+waitforstart, 8, 1, none, normal

    main:
    SerReceive 1, temp
    SerReceive 1, temp2
    EPWrite(temp,temp2)
    goto main

    I get symbol not defined eeadr, eedata?
    Will this work? I want to send serial from bytes to it from my pc and have them put them into the eeprom for later use.

     
    • Edward LaBudde

      Edward LaBudde - 2009-08-05

      I think this will help

      main:
      SerReceive 1, temp
      SerReceive 1, temp2
      EPWrite 0, temp
      EPWrite 1, temp2
      goto main

      Regards, Ed.

       
    • Nobody/Anonymous

      I need the first byte to set the location (temp) and the second byte to be the value (temp2), there will be many locations used and changed out of order also

       
    • Nobody/Anonymous

      Try:
      EPWrite temp, temp2

       
    • Nobody/Anonymous

      still gets the errors

       
    • Hugh Considine

      Hugh Considine - 2009-08-08

      Are you using the latest update from http://gcbasic.sourceforge.net/newfiles/update.zip ?

       

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.