PDA

View Full Version : commands for portA / portC on 40X



avner
31-01-2006, 15:49
I want to high pin c1 and c0 on the 40X
what syntax should i use to do that ?
I tried:
high c1
but no success...

Thanks for helping

hippy
31-01-2006, 16:24
HIGH PORTC 1

In the Programming Editor, Help -> PICAXE Manual 2 is where you'll find a list of commands.

notwhoyouthink
31-01-2006, 16:25
Try
<code><pre><font size=2>let pinsc = %000000xx &amp; %00000011 </font></pre></code>
Should do the trick


Edited by - notwhoyouthink on 1/31/2006 3:27:21 PM

avner
31-01-2006, 16:30
and for checking pin a0 ? or a1 ?
(like 'if pin1 = 0 then jump')

hippy
31-01-2006, 17:21
IF PORTA pin1 = 0 THEN jump

Also in that manual mentioned earlier :-)

avner
31-01-2006, 18:45
thanks again

unfortunately it is not it manual 2....

try to do a search for 'porta' it won't find anything

hippy
31-01-2006, 18:54
You're right, and I'll take slapped wrist for having not checked it was before saying it was, and for my unfair inference. Ouch.

It's page 57/59 of Manual 1. It really ought to also be in Manual 2

avner
31-01-2006, 21:15
no, it's really OK
but all these commands about PORTA and PORTC for IFs and outputs, how do you know them ?

I've been reading almost all of the PDF files at the manuals section, and i don't remember writing about these commands....

anyways i will ask if i have more problems.

BTW, I finally succeeded !!!!!!!!
I wired the 08M with IR receiver to the MASTER 40X, now, the 08M gets the IR command, then waits the master will tell &quot;ready&quot; then it sends the data....

i could get it work very well ! now same for output 08Ms :)