Professional Documents
Culture Documents
(16DSB007)
_________________________________________________________________________
2. (a) There are 10 errors in the C18 C code file listing shown in Fig Q2a. 9 of them are syntax
errors and 1 logical error. Please circle and number the errors, describe them and explain how to
rectify each one [20 marks]
Fig Q2a
(a) What is a Schmitt trigger and why are they are useful? With the help of a circuit diagram, explain
the operation of a non-inverting Schmitt trigger. Sketch its hysteresis curve (12 Marks)
(b) Determine the voltage output voltage Vout of the circuits in figures A and B below.
Circuit A Circuit B