On Mon, Jul 2, 2012 at 6:36 AM, Jos Dreesen <jdr_use at bluewin.ch> wrote:
On 07/02/2012 12:06 AM, Chuck Guzis wrote:
On 1 Jul 2012 at 20:45, Tony Duell wrote:
And now let me see you access a Philips SAA5243
teletext IC (alos
useful for a 40*25 text video display) using SPI at any speed :-)
Do you want me to send you the Verilog for the CPLD in the middle?
--Chuck
Yes please.
Jos
/****************************************************************************************
* SPI to I2C interface
* January 2007.
*****************************************************************************************/
/* Top module */
module SPI_to_I2C (SPI_sclk, SPI_cs, SPI_miso, SPI_mosi, I2C_sda, I2C_scl );
inout I2C_sda; // Bidirectional SDA line
inout I2C_scl; // Bidirectional SCL line
input SPI_sclk; // SPI clock
input SPI_cs; // SPI chip select
input SPI_mosi; // Master out slave in
output SPI_miso; // Master in slave out
//........
endmodule
/*********************************************END************************************************/
Didn't want to post the whiole thing here, but you should take a look at:
-
http://www.altera.com/literature/an/an486.pdf
-
http://www.altera.com/literature/an/an486_design_example.zip
Cheers,
Camiel.