How to disable a strobed port

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
yugandhar
Junior Member
Posts: 7
Joined: Wed Aug 31, 2011 9:13 am

How to disable a strobed port

Post by yugandhar »

Hi all,


out port strobe = XS1_PORT_1A;
out buffered port:8 data = XS1_PORT_1B;
out port clk = XS1_PORT_1C;
clock CLK_SRC = XS1_CLKBLK_1;

set_port_inv(strobe);
strobe <: 0;
configure_clock_rate (CLK_SRC, 100 , 8);
configure_port_clock_output (clk, CLK_SRC);
configure_out_port_strobed_master(data, strobe, CLK_SRC, 1);

data <: 0x73;
start_clock(CLK_SRC);
sync(data);
stop_clock(CLK_SRC);

strobe <: 1;
strobe <: 0;



In above code i am not getting output for last 2 statements. I made strobe port as strobed signal for data port. How can i disable the strobing of a port ??

Thankyou
Yugandhar


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

Post by Ross »

What about configure_out_port()? (see xs1.h)

Or stop_port() then start_port()?