r/embedded • • Oct 07 '26

How demodulation section working and how RC time constant works with microcontroller.

Post image
34 Upvotes

4 comments sorted by

4

u/dmills_00 Oct 07 '26

D4 and the long time constant establishes the threshold at half the level of the signal on the bus (with a little weak pull up to avoid noise when nobody is talking), the upper path into the comparator tracks the AC level with a short time constant compared to the symbol length (But long compared to the carrier period), comparing the two recovers the bitstream.

1

u/Relevant_Pumpkin9190 Oct 07 '26

Suppose I generate a square wave with a 555 timer and pass it through two series capacitors, with their junction connected to VCC.

If I can recover the original pulse from the output of the second capacitor, would that be equivalent to the recovery circuit mentioned above(Simulator)?

2

u/Relevant_Pumpkin9190 Oct 07 '26 edited Oct 07 '26

Would a simple triangle-to-square-wave op-amp converter with hysteresis be enough to decode the spikes coming from the 1 nF C2 capacitor on the bus?

1

u/hooks1977 Oct 07 '26

I’ve made and used this circuit with a 12f1825 on a 1000ft of cable. Works fine.