i know its just the basics of what is happening at parallel port,,i have just found some pseudo code for i2c programming...looks very simple...now the only key im missing is how to get the programmer i built to do the pseudo code spec's like change sda to 0 or 1..ect.ect..once i find that step out ill be one step closer...
Code: Select all
dim as byte a,b,c,d
'accessing data line is like this************
'set port to 00000000
'OUT 888, 0
'set port to 10000000
'OUT 888, 1
'set port to 01000000
'OUT 888, 2
'set port to 00100000
'OUT 888, 4
'set port to 00010000
'OUT 888, 8
'sets more than one port at a time'set port to 10110000
OUT 888,0
'OUT 888, 255' 8 outputs
'out 890,1111''''what will these actually do with i2c programmer!!!!!4 lines
a=inp(888)'data lines---- 8 of them for output ..reads current out ports.
b=inp(889)' status lines----5 of them input ..reads current in ports
c=inp(890)' control lines----4 of them ---highest value 15
print a,bin(a),hex(a)
print b,bin(b),hex(b)
print c,bin(c),hex(c)
' why does out 890,63 result with 11111111
print:print
for a=1 to 15
out 890,(a)
print inp(890),bin(inp(890))
next
sleep
end