I did the necessary changes but I am still not able to get the results I wanted. I tried a different approach to set the delay. My microcontroller's int is 32bits. When I compile it now it does it well but still doesn't display the distance it found from the ultrasonic range finder onto the...
When I try debug the program I get errors at the following codes:
#define HEADERINPUTS_BASE+0x07
delay = 12000000 //alt_timestamp_start(); //clock starts
count = alt_timestamp(); //records clock value
ts = IORD_ALTERA_AVALON_PIO_DATA(HEADERINPUTS_0x01); //reads from the first input pin of DE0...
Hi everyone can anyone help me in my code. I am trying to program a altera DE0 board to measure distance using a SRF05(ultrasonic range finder). I have written a code but now I am stuck.
#include "sys/alt_stdio.h" //for the alt_putstr function below. Outputs to Eclipse console...
I am not so sure about the answer but I would recommend that you use a software called ISIS proteus. It helps a lot with real time simulations. I made basic circuits with it.