
Originally Posted by
Mus.me
im using 16f84 but when i change ldata var byte to ldata var bit it complier but it doesnt work it keeps blinkin leds,i think the problem in the code and scrolling, and pic16f84 it takes 1024 words i think but i see just between 258 to 300 word, it works when i change to var bit but it doesnt scroll it shows LEDs blinkin and all off them on ????
AND I WANT TO USE DATA EPPROM INSTEAD THE VARIABLE ldata IF SOMEONE CAN HELP ME
Hi Mus.Me,
OK the 16F84 does not have enough code space to do that, it will fit into a 16F628A, BUT ah say BUT, you will have to reorder the listing of the variables to avoid a bank error from PBP, and no it is not the crossing boundries error either. So I did like so:
Code:
ldata VAR BYTE[59] 'when i change to bit it shows all leds on?
column var byte
dchange var byte
scan var byte
scroll var byte
EEprom is not so hard to do . . .why not use a lookup table ?
Code:
for index = 0 to 19
'ldata 0 1 2 3 4 5 6 7 8 9 10 11 12 . . . . .
lookup index,[31,31,31,31,31,8,10,10,31,0,27,0,31,1,26,1,31,6,2,12]ldata
Portb = ldata
next index
Bookmarks