28x2 possible sim error...or is it me?

kevrus

New Member
when reading the state of the outputs into b0 for example on a 28x1, the value will show in b0 when simulated

Code:
#picaxe 28x1



let outpins =%10101010
pause 2000
readoutputs b0
pause 2000

when trying it for 28x2, b0 remains at zero in the sim...(page 2 of the x2 product briefing shows the syntax)

Code:
 #picaxe 28x2


let dirsB = %11111111

high B.7,B.6,B.5,B.4
pause 2000
let b0=outpinsB 
pause 2000

not at home so can't try it on an actual chip at the moment...
 

hippy

Technical Support
Staff member
It works on a real 28X2 so it looks like a simulator problem. Thanks for letting us know.
 

boriz

Senior Member
"I always think i'm missing something"

The first step on the road to being a true scientist! Doubt is the keystone of science. It’s what separates the scientists from the ‘believers’. Never stop doubting.
 
Top