thank you very much joe for reply . i didnt inderstand good that code but if you dont mind please i want to know how to use the variable for read ..,b2
i want to read from 1 to 10 addresses to b2 every 1000 mlscnd 1 byte from data to b2 so the shiftout has pause 1000 then it will count from 0 to 9 on 1 digit so i will understandhow to (vary) between epprom data and b2 example
this is my last code i wrote now i can read from data to b2 and send it out to the digit but i need to count from 0 to 9 and pause between numbers please thank you so much
define _HS_OSC & _LVP_OFF & _WDT_OFF & _CP_OFF
define _BODEN_OFF & _MCLRE_ON & _PWRTE_ON
DEFINE OSC 4
Include "modedefs.bas"
B2 var byte
SDO VAR PortB.0
SCLK var PortB.1
TRISB = 0
TRISA = 1
Read 3,b2
main:
SHiftOUT SDO,SCLK,0,[B2\8]
pause 1000
goto main
end
data @ 0,252,96,218,242,102,182,190,224,254,246
all what i want is to know how to use variables like this so i will inderstand and i can carry on .
Bookmarks