port C PICAXE 28X1

sub-bg

New Member
By using the command dirsc %00001111, would pins 11 - 14 now be defined as outputs and if so how would they be correctly defined.

Any help will be appreciated.
 

sub-bg

New Member
Also is it possible to use Port C pins 11 and 12 to send and recieve serial data, using the commands serin and serout.
 

westaust55

Moderator
By using the command dirsc %00001111, would pins 11 - 14 now be defined as outputs and if so how would they be correctly defined.

Any help will be appreciated.

Yes you are correct.

let dirsc = %00001111 will make the 28X1's physical legs 11 - 14 outputs.
 

westaust55

Moderator
Also is it possible to use Port C pins 11 and 12 to send and recieve serial data, using the commands serin and serout.
With the 28X1, Port C pins are the normal inputs as used for commands like:
SERIN pinx . . .
READADC pinx . . .
READTEMP pinx . . .

But when used as output, you are limited to simple statements like:
HIGH portc 1
LOW portc 5

Have a look at the PICAXE Manual 1 page 83/84
 
Last edited:
Top