Hi there,
I'm really stuck with my first GC-Project. How on earth can I set the IO-Ports
of the 16C57 to Input or Output ?
I tried all possible ways to do it :
DIR GPIO b'00000011'
or
DIR GPIO IN
or
DIR GPIO.0 IN
or
DIR PORTB.0 IN ' Speed
or
dir PORTA b'00000011'
etc.
BTW, which Port would "GPIO" specify ? A, B or C ?
All I get are compiler erros, saying that it is not possible to set the IO-Pin or the this port does not exist.
May anyone can point me in the right direction ? Otherwise, GCBASIC seems to be great !
regards and a happy new year,
Reelf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If in doubt about the registers you can look at the GCBasic chipdata folder, then the device file in question. You would not use GPIO, but PortA, B, or C, so:
Dir PortB.0 in
Dir PortB.1 in
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm really stuck with my first GC-Project. How on earth can I set the IO-Ports
of the 16C57 to Input or Output ?
I tried all possible ways to do it :
DIR GPIO b'00000011'
or
DIR GPIO IN
or
DIR GPIO.0 IN
or
DIR PORTB.0 IN ' Speed
or
dir PORTA b'00000011'
etc.
BTW, which Port would "GPIO" specify ? A, B or C ?
All I get are compiler erros, saying that it is not possible to set the IO-Pin or the this port does not exist.
May anyone can point me in the right direction ? Otherwise, GCBASIC seems to be great !
regards and a happy new year,
Reelf
If in doubt about the registers you can look at the GCBasic chipdata folder, then the device file in question. You would not use GPIO, but PortA, B, or C, so:
Dir PortB.0 in
Dir PortB.1 in
Sorry, got the same warnings you had, so scratch that previous post. I can see I am not familiar with the 16CX series.
Thank you anyway for the reply. Nobody here every used or tried the 16C5x or knows how to set the IO-Ports ???