I think this is what you intended for me to do.. I'm not sure how to advance the array location in the loop. You will see my comment in the code. Thank you again for the help!
Code:usbservice doloop: inbyte = 1 USBin 3, action, inbyte, doloop2 ' Get a char from usb port verify: IF action = 102 THEN ' Verify connection USBout 3, action, 1, verify ENDIF ' end of verify action ' IF action = 117 THEN ' Write EEPROM ' USBOUT 3, action, 1, doloop2 ' tempval = 0 tlabel2: ' USBin 3, char, inbyte, tlabel2 ' WRITE tempval, char ' USBout 3, char, 1, startloop ' tempval = tempval + 1 ' IF tempval < 255 THEN tlabel2 ' ENDIF ' end of Write action valuesout: IF action = 99 THEN ' Return last input and output USBout 3, mafout, 6, valuesout ENDIF ' end of IO action IF action = 107 THEN ' Dump EEPROM tempval = 0 Dumploop: Read tempval, epromdump[0] 'epromdump is a 256 byte array tempval = tempval + 1 'advance to the next eeprom location 'not sure how to advance places in the array for the new eeprom value USBout 3, epromdump, 256, dumploop




Bookmarks