Maybe it is better to define the output register more convenitional.
Try
TRISIO = 0
DIO VAR GPIO.1
CLK VAR GPIO.2
and report back how is doing.
Ioannis
Maybe it is better to define the output register more convenitional.
Try
TRISIO = 0
DIO VAR GPIO.1
CLK VAR GPIO.2
and report back how is doing.
Ioannis
Hi,
I'm trying to understand and learn:
What might be the consequences if I set my ports as follows:
Dio var GPIO.0
or
Symbol Dio = GPIO.0
Does this make a difference to the way the program is processed?
Thanks
Originally the problem I think was this syntax:
'*** In/Out pins ..................................................
Output 1 : _DIO var GPIO.1
Output 2 : _CLK var GPIO.2
I do not see how this can compile.
Ioannis
Hello,
And yet the compiler didn't give any errors!?
I'm going to keep your suggested syntax anyway.
Concerning my problem with the Shiftout command, I note that a problem existed with this command for the Picaxe 08M2 (which is in fact a PIC12F1840).
The Shiftout command was not possible for this Picaxe and it was necessary to create a small routine explained in the Picaxe manual.
Before continuing my tests, I wondered if such a problem could also be encountered with my Pic12F675... ?
In PBP I never encountered any problems with SHIFTout or SHIFTin commands.
I pressume you will not have too.
Ioannis
Last edited by Ioannis; - 25th July 2023 at 13:16.
Yes but you defined wrong. For example _DIO var GPIO.1 is not the same as DIO var GPIO.1
Ioannis
Bookmarks