Hi, im a studnet who needes to create a routine/routines that take readings from 2 SPI bus sensors (pressure & temp) and the microblaze must take these readings and when the values of they're inputs reach a certain level/treshold the spartan board must activate a 12volt dc pump to spray water for a set period of time....then repeat the process.
Can anyone send me some VHDL code to get me started or explain to me how i would go about this?
Hi,
there is a complete SPI core available free here : **broken link removed** .
You may connect this core to your MB and write some C code to read your data and activate the output device.
You need to do some research to understand the core . Once you do that your project is almost ready.
If you want to implement your SPI interface yourself, you may use VHDL, but once you have your data red from your SPI devices, you need some C code to process it in your MB to drive your output.