I am trying to build an interface for my computer that sets the outputs of a 28X-1 chip to a Byte sent from the computer the byte will vary between 0 and 255 and the out puts should be set accordingly i.e. 0 = 00000000, 1 = 00000001, and 255 = 11111111 but with the code I have all it does is set the pins wrong, the error is in my code for the picaxe and not the rest of the system as I have checked the code with the built in terminal in the programming editor
The code I have wrote is
I have been working on this for some months now and now I just have no clue I am sure there is a simple solution but since I can't see it any help will be greatly appreciated
The code I have wrote is
Code:
init: let b0 = 0
main: serrxd [1000, timeout], b0
timeout: let pins = b0
debug b0
goto main
Last edited by a moderator: