I'm trying to interface an L1-64 to a chrontel DVO chip to possibly get an dvi/tv out going.
To do that I need two sychronus clock signals, one of them is the invert of the other.
I've been trying it this way:
Code: Select all
out port XCLK = XS1_PORT_1M;
out port XCLKI = XS1_PORT_1N;
int main() {
configure_clock_rate( clk , 100 , 2); // 27/1 = 27 Mhz
configure_port_clock_output( XCLK , clk );
set_port_inv(XCLKI);
configure_port_clock_output( XCLKI , clk );
start_clock(clk);
return 0;
}
Any ideas or insights ?
Thanks
Tobias