Armando1989
Occasional Contributor
1 year agoSYNCHRONIZED RS232 DATA CORRUPTED
Hi there!!. Set up attached project, capturing rs232 1200baud data and latch each byte to leds. Project compiles and pass timing constraints wo issue. Simulation testbench also gives correct result...
- 1 year ago
I read the code so that you are sampling 1200 Baud UART input at 1200 Hz only. I'd expect oversampling with e.g. factor 8 as any usual UART does. Or did I miss code details?
There's no use of synchronizing Rx at a reduced rate, this can be done with full clock rate, e.g. 50 MHz.
Decoding of UART data at suitable oversampling rate allows to detect start bit falling edge with necessary accuracy and start to sample data bits after 1/2 bit duration.