techElder
Well-known member
I can't figure out why I can't get A.4 to work the way it should. I must be missing something.
There's a difference between OUTPINSA & PINSA of 16 which is A.4.
There's a difference between PINSA & %11111011 of 16 which is A.4.
I don't get it.
Here's the output from hSerial (NOT sertxd). I've pulled the programming cable, and it doesn't make any difference. I've also changed the 40X2.
EDIT: I keep forgetting to say that this is all done on the AXE091 development board.
There's a difference between OUTPINSA & PINSA of 16 which is A.4.
There's a difference between PINSA & %11111011 of 16 which is A.4.
I don't get it.
Here's the output from hSerial (NOT sertxd). I've pulled the programming cable, and it doesn't make any difference. I've also changed the 40X2.
EDIT: I keep forgetting to say that this is all done on the AXE091 development board.
pinsA vs. outpinsA: 255 vs. 239
pinsA AND BIT2=0 (should be %11111011 or 251: 235
pinsA vs. outpinsA: 255 vs. 239
pinsA AND BIT2=0 (should be %11111011 or 251: 235
pinsA vs. outpinsA: 255 vs. 239
pinsA AND BIT2=0 (should be %11111011 or 251: 235
...
Code:
[color=Navy]#picaxe [/color][color=Black]40X2 [/color][color=Green]; Set the compiler mode, also the equivalent of #define xxx.[/color]
[color=Navy]#no_table [/color][color=Green]; Do not download table or EEPROM data (X1 and X2 parts only).[/color]
[color=Navy]#define [/color][color=Black]SERIALOUTPUT [/color][color=Blue]hserout [/color][color=Navy]0[/color][color=Black], [/color]
[color=Blue]Hsersetup B38400_32[/color][color=Black], [/color][color=Navy]%111[/color]
[color=Purple]dirsa [/color][color=DarkCyan]= [/color][color=Navy]%11111111[/color]
[color=Blue]do
[/color][color=Purple]pinsA [/color][color=DarkCyan]= [/color][color=Navy]%11111111
[/color][color=Blue]pause [/color][color=Navy]1000
[/color][color=Black]SERIALOUTPUT [/color][color=Blue]([/color][color=Red]"pinsA vs. outpinsA: "[/color][color=Black], #[/color][color=Purple]outpinsA[/color][color=Black], [/color][color=Red]" vs. "[/color][color=Black], #[/color][color=Purple]pinsA[/color][color=Black], [/color][color=Blue]cr[/color][color=Black],[/color][color=Blue]lf)
[/color][color=Purple]pinsA [/color][color=DarkCyan]= [/color][color=Purple]pinsA [/color][color=DarkCyan]& [/color][color=Navy]%11111011
[/color][color=Blue]pause [/color][color=Navy]1000
[/color][color=Black]SERIALOUTPUT [/color][color=Blue]([/color][color=Red]"pinsA AND BIT2=0 (should be %11111011 or 251: "[/color][color=Black], #[/color][color=Purple]pinsA[/color][color=Black], [/color][color=Blue]cr[/color][color=Black],[/color][color=Blue]lf)
loop[/color]
Last edited: