Port identifier

Technical questions regarding the XTC tools and programming with XMOS.
Paco
Member
Posts: 8
Joined: Thu Apr 11, 2013 7:25 pm

Port identifier

Post by Paco »

Hello,

I'm trying to output a signal on a Slice GPIO pin (GP05). I connected the Slice Card to the square slot. In the manual is written that the GP05 for the square Slote is connected to 4B3 -> XS1_PORT_4B.

In my code i read out an Array of 8 bit by "oled @ time <: >> byte;". Apparently i just nedd the third bit of the 4Bit Port but just get a 1 or 0 from my bitewise shift operation. I think i need to send the port 0b0100, right?
How can i solve that problem?

Would be thankful for help

Greez


User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Sorry, im not quite sure what you are trying to achieve. Perhaps you could post a bit more of your code?
Paco
Member
Posts: 8
Joined: Thu Apr 11, 2013 7:25 pm

Post by Paco »

Thanks for your replay, but i already solve the problem by myself.
It was written in the HardwareManual of the sliceKit GPIO.

greez