Codiode

Break Condition Detector

HardLogic CircuitBuild

Out-of-band signaling allows UART receivers to detect fatal errors or reset commands without relying on standard data frames. A break condition occurs when the transmission line is driven low for an extended duration that violates the standard protocol framing.

The circuit must monitor the rx line on each clock cycle. If rx remains at logic 0 for 12 consecutive clock cycles, assert break_flag to 1. If rx evaluates to logic 1 at any time, the internal count must reset and break_flag must immediately evaluate to 0. An active-high rst signal synchronously clears the internal state.

Constraints

  • Use synchronous logic.
  • The rst signal must be synchronous and active-high.
  • The internal counter must not overflow and clear break_flag if rx remains 0 indefinitely.

Topics

countersstate-machineuart

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Part of Interface and Communication Circuits

Problem 55 of 79 in the Interface and Communication Circuits track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.