Search found 7 matches
- Sat Sep 24, 2011 3:22 pm
- Forum: Development Tools and Programming
- Topic: How to disable a strobed port
- Replies: 1
- Views: 2543
How to disable a strobed port
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, str...
- Fri Sep 23, 2011 7:08 am
- Forum: Development Tools and Programming
- Topic: How to change clock polarity and phase
- Replies: 4
- Views: 4276
Re: How to change clock polarity and phase
Hi matrix,
Thank you very much for your reply. The functions u specified are not suitable to change clock polarity and phase.
Is XMOS SPI Reference Code is hardwired to SPI Mode 3 (CPOL = 1, CPHA = 1)??
I think not so.
Can u explain ??
Thankyou
Yugandhar
Thank you very much for your reply. The functions u specified are not suitable to change clock polarity and phase.
Is XMOS SPI Reference Code is hardwired to SPI Mode 3 (CPOL = 1, CPHA = 1)??
I think not so.
Can u explain ??
Thankyou
Yugandhar
- Thu Sep 22, 2011 2:21 pm
- Forum: Development Tools and Programming
- Topic: How to change clock polarity and phase
- Replies: 4
- Views: 4276
How to change clock polarity and phase
Hai all, I want to use XS1-L1 as SPI master. I had problems with clock polarity and phase. For Output ports :: Initially clock polarity is 0 data to be driven on falling edge of clock. If i use set_port_inv() , clock polarity became 1 and data to be driven on rising edge. I want clock polarity = 0 a...
- Thu Sep 22, 2011 10:11 am
- Forum: Development Tools and Programming
- Topic: Buffered port
- Replies: 4
- Views: 4733
Re: Buffered port
Thankyou for ur reply. I had a problem with stop_port. out buffered port:8 X = XS1_PORT_1A; out port CK = XS1_PORT_1C; out port ready = XS1_PORT_1B; clock clk = XS1_CLKBLK_1; int main() { ready <: 0; configure_clock_rate(clk, 100, 4); configure_port_clock_output(CK, clk); configure_out_port_strobed_...
- Thu Sep 22, 2011 6:51 am
- Forum: Development Tools and Programming
- Topic: Buffered port
- Replies: 4
- Views: 4733
Buffered port
Hai all, I am using XK-1A development board. I written following code in my XC program. out buffered port:8 data = XS1_PORT_1A; out port clk = XS1_PORT_1B; clock CLK = XS1_CLKBLK_1; char DAT[10]; int main(void) { configure_clock_rate(CLK, 100, 100); configure_port_clock_output(clk, CLK); configure_o...
- Fri Sep 02, 2011 9:01 am
- Forum: Groups
- Topic: XK-1 User Group
- Replies: 5
- Views: 19196
Re: XK-1 User Group
<t>Hi everybody,<br/> <br/> I am using XK-1A development board to trace data between SDIO Host and Device. I configured CLK and CMD pins as follows.<br/> <br/> in port SDIO_CMD = XS1_PORT_1F ;<br/> in port SDIO_CLK = XS1_PORT_1H ;<br/> clock Clk_Src = XS1_CLKBLK_1;<br/> <br/> void SDIO_Trace_Init (v...
- Wed Aug 31, 2011 9:31 am
- Forum: Groups
- Topic: XCORE INDIA
- Replies: 2
- Views: 15680
Re: XCORE INDIA
<t>hai all,<br/> I am using the following segment of code<br/> <br/> in port SDIO_CMD = XS1_PORT_1F ;<br/> in port SDIO_CLK = XS1_PORT_1H ;<br/> clock Clk_Src = XS1_CLKBLK_1;<br/> <br/> configure_clock_src(Clk_Src, SDIO_CLK);<br/> start_clock(Clk_Src);<br/> configure_in_port(SDIO_CMD, Clk_Src);<br/>...