Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- hello .. i want to use rs232 as input to board ,am using Quartus ii .
the rs232 is connected to a speed sensor that generate pulses ,do you have any idea how can the board read these pulses through the rs232 and count them ??(this is my senior project ........ )
--- Quote End --- 1.> what boude rate your speed sensor generate data.? 2.> is it use some start/stop , parity bit for makeing serial bit stream.? follow the same protocol at receiver end also. First you test your speed sensor weather it generate correct rs232 data by connecting this speed sensor serial bit stream to windows Hyperterninal utility ...this utility will display all the bit steram your speed senser generate. make sure while using Hyperterminal u must make a cross cable (Tx of Speed sensor connected to Rx of your Rx"PC"). Or if your speed sensor is correctly generated the serial bit stream then you straight away connect serial cable from Speed sensor to board and write application in eclips environment, for reading this port use fread and for writing use fprintf. kaushal