Project by: David Carne
* Top.v * capture_block.v * freq_count.v * cons.ucf - Constraint file. This will only make sense if you're deploying to a startan 3 starter kit. * cam_code.psm - assembler source for the program rom. use picoblaze compiler. * kcpsm3.v - NOT INCLUDED * uart_tx.v - NOT INCLUDED * kcuart_tx.v - NOT INCLUDED * bbfifo_16x8.v - NOT INCLUDED * uart_rx.v - NOT INCLUDED * kcuart_tx.v - NOT INCLUDED * bbfifo_16x7.v - NOT INCLUDED * cam_code.v - NOT INCLUDED, program rom. Generated file may not be able to distribute as it contains boundary scan code under xilinx license. I'll make a stripped versiosn shortly - or just build from source file. attachment:cam_sources.zip source zip file
All the missing files can be downloaded from Xilinx picoblaze lounge. Registration and click through license are required. I'm currently working on porting the code to an open source reimplementation of the picoblaze, so you also could just wait for that to happen.
NOTE - only valid if you use my cons.ucf on a spartan 3 starter kit [not 3e]
|ENB||Pullup via 1k||VCC|
|RST||Pullup via 1k||VCC|
|VSYNC||Vertical Sync||PortB-Pin 5|
|HSYNC||Horizontal Sync||PortB-Pin 6|
|VCLK||Verticle Clock||PortB-Pin 4|
|MCLK||2.8V PtP 4 Mhz clock|
* Y7 is the lsb * Y0 is the MSB * VCC = 2.8-3V * VDD = 5V * S3SK PortB Pin 1 - to GND - to increase grounding connection * S3SK PortA Pin 1 - to GND - to increase grounding connection * RST pull low after powerup(short to ground once at power on) * VCC decouple with a small cap, if possible also use a ferrite bead * MCLK needs to be a 2.8V Peak-To-Peak 4 Mhz clock - I used an avr as an oscillator and ran it through a voltage divider. * BEFORE POWERING UP DESIGN - PROGRAM THE FPGA. Either power up while holding the prog button - and then download via jtag, or preprogram it. If you don't, some of those lines will be outputs!
Power: If you're going to power the S3SK from a 5V bench supply, DO NOT CONNECT THE STANDARD POWER ADAPTER, and connect S3SK PortA Pin 2 to 5V. Otherwise just use the standard adapter and leave this connection off.
When all is properly connected, you'll see about 10-20ma on the 2.8v rail to the camera, and 150ma on the 5V rail to the fpga + avr.