o.k. for sure you can do it with an array or if your PIC has an internal EEPROM you can use it with WRITE/READ statement
Code:
MyArray VAR byte[35]
MyArray[0]=1
MyArray[1]=2
MyArray[2]=3
MyArray[3]=4
MyArray[4]=5
'.....
MyArray[34]=35
Start:
For i = 0 to 34
PORTC=MyArray[i]+z1
Next
With internal EEPROM
Code:
Mydata var byte
data @0,1,2,3,4,5,6...............35
Start:
For i = 0 to 34
READ i,MyData
PORTC=MyData+z1
Next
both will do the same result. The last one will eat less of your code space. Hope this help you
Bookmarks