I'm looking for a litle help with a project I'm building.
I repair/setup industrial CNC equipment for a living. There are times I need to check the timing of signals on this equipment. The frequency of me doing this does not warrant purchasing a commercial data logger.
I am building a simple one, using a 4 x 20 LCD display to show the data. I would like to display up to 5 pages of info on the LCD. I don't need to save the data in case of power loss, but if EEPROM is the best way let me know. I'm using a PIC 16f876a.
What I want to do is sample PORTA at pre determined intervals (from .1 to .01 seconds depending on the value in TMR1). I then would like to save PORTA and put it in file1. On the next read I want the value to go into file2, etc., up to file100 Once file100 has been reached the program will loop back to file1. This will continue until a button is pressed or and external trigger is seen. I will then display the info on the LCD.
What I'm looking for is an elegant way to put the info into one file and then incrementing to the next file on the next read. I'm also looking for a way of reading the files in succesion ( to be displayed on the LCD).
Maybe I'm missing something painfully obvious. I'm not a total noob but some days I feel like it.
I'm not looking for someone to write the code but rather a nudge in the best direction.
I'm using assembly. Any suggestions would be appreciated.
Thanks
Dan
I repair/setup industrial CNC equipment for a living. There are times I need to check the timing of signals on this equipment. The frequency of me doing this does not warrant purchasing a commercial data logger.
I am building a simple one, using a 4 x 20 LCD display to show the data. I would like to display up to 5 pages of info on the LCD. I don't need to save the data in case of power loss, but if EEPROM is the best way let me know. I'm using a PIC 16f876a.
What I want to do is sample PORTA at pre determined intervals (from .1 to .01 seconds depending on the value in TMR1). I then would like to save PORTA and put it in file1. On the next read I want the value to go into file2, etc., up to file100 Once file100 has been reached the program will loop back to file1. This will continue until a button is pressed or and external trigger is seen. I will then display the info on the LCD.
What I'm looking for is an elegant way to put the info into one file and then incrementing to the next file on the next read. I'm also looking for a way of reading the files in succesion ( to be displayed on the LCD).
Maybe I'm missing something painfully obvious. I'm not a total noob but some days I feel like it.
I'm not looking for someone to write the code but rather a nudge in the best direction.
I'm using assembly. Any suggestions would be appreciated.
Thanks
Dan