binary1248
Senior Member
I seem to have lost my mind. I can't figure out how to write a complete 8 bit byte to port b.0 thru b.7 on a 20x2.
Spent some time going thru code reference manual and can't find it. I can read a byte from EEPROM, so how do I output that byte directly to a port (for speed)
The below code has comments where I want to write the byte to port B in a 20X2. The read from EEprom is not included yet, this snippet of code is some speed testing I want to do.
.
.
Spent some time going thru code reference manual and can't find it. I can read a byte from EEPROM, so how do I output that byte directly to a port (for speed)
The below code has comments where I want to write the byte to port B in a 20X2. The read from EEprom is not included yet, this snippet of code is some speed testing I want to do.
.
.
Code:
rem
c\users\paul\desktop\
Feb 21 2017 PEH
Make b.0 thru b.7 output byte port
#endrem
#picaxe 20X2
;setfreq m64 '64mhz, later after some debug
#no_data 'save some load time for now
'#no_table
;#terminal 4800
symbol clk0=C.0 ;pin 10 on chip, clock out
symbol var_out=b0 ' byte to recieve data from eeprom
symbol delay1=10
'
Do
var_out=%00000000 ;set output pins b.0 thru b.7
;send var_out (byte0) to b.0 thru b.7
pause 10
var_out=%00000001
;send byte0 to b.0 thru b.7
pause 10
Loop
'?========================================================================