Forum Discussion
Altera_Forum
Honored Contributor
13 years agousing GPIO on DE2 board
hi, currently i'm doing a project using a sensor which has pwm output. i'm already done the coding to read the pwm output. i would like to connect the pwm output from the sensor ti de2 board as input...
Altera_Forum
Honored Contributor
13 years agothe sensor operating voltage is between 2.5 to 5.5V, so i want to use VCC5V from the GPIO to power up the sensor and assign one of the GPIO pin as the input and connect to the pwm output of the sensor. i'm using fpga internal clock 50Mhz . the pwm output is 147us per inch, using the 50MHz clock on the FPGA, 147us / 20ns = 7350 counts per inch.
do i need to use synchronizer? how to add one? thanks,