The code works on the arduino and I recieve data but the same code does not work on the ML507.
I am out of ideas. The camera does not seem to even acknowledge the reset command on the FPGA.
I am attaching the code running on the FPGA at the end of this post...
What could be the reason??
This is intriguing.. Please help me out..
Thanks
#include <stdio.h>
#include "xstatus.h"
#include "xparameters.h"
#include "xuartlite_l.h"
#include "serial.h"
void SendResetCmd();
void SendTakePhotoCmd();
void SendReadDataCmd();
void StopTakePhotoCmd();
#define UARTLITE_BASEADDRESS XPAR_UARTLITE_0_BASEADDR
unsigned char reset[4] = {0x56,0x00,0x26,0x00};
unsigned char sendphoto[5] = {0x56,0x00,0x36,0x01,0x00};
unsigned char stopphoto[5] = {0x56,0x00,0x36,0x01,0x03};
unsigned char MH,ML;
int a=0x0000;
int main()
{