Embedded-Systems

This is the continuation of the earlier post. Part of 80C39 based Process Controller. In this schematic you can see the Watchdog and D/A Converter.

80C39 and MCS48 based Process Controller is the main circuit that has the LED 7 segment display for output and push keys for input. The old form of Human Machine Interface – HMI.

Digital to Analog Converter with uC Watchdog

My first observation of a very complex watchdog in action was an Agilent(hp) Benchtop Multimeter based on this 8048 family of 1st generation microcontrollers that did not even have a UART among many things.

At that time CMOS was just making an entry and FLASH memory was unheard of. The UV Eprom was the way firmware was set on these systems. These consumed a lot of power. 80C39 was the CMOS one.

The  4040 counter derives a slow clock from the 7555 timer. The counter has to be reset by firmware by periodically sending a reset pulse on port pin P2.7 to say “Alls Well”.

If the firmware or uC “hangs” or due to EMI or Spikes the uC gets into an endless loop. Then the “Alls Well” pulses stop coming. The 4040 keeps counting till Q10 output goes high and resets the uC or can we say Wakes it up rudely.

The D/A converter was used to get the 1-5 V to obtain 4-20 mA control Signal to operate the Actuators like a Motor Drive or Heaters in a Industrial Process control System.

This is a 9V power supply which will work even on power failure. It uses a rechargeable battery and regulators. A transformer with 15-0-15 AC volts output is required.

From my Power Electronic Circuits

Battery Backup Supply

In the first regulator U1 the output is lifted up by 1.4V and in the second regulator U2 by a resistor divider. In the second regulator the voltage across resistor R3 is 5V, so the current is 5V / 1K = 5mA this adds to the quiescent current of 5mA from the regulators ground terminal and flows into the resistors R1 and R2 in parallel which form 404 ohms, 10mA thru 404 ohms is 4V. So the output will be 5 + 4 = 9V. Note that the charge and discharge paths of the battery are separated with diodes.

The gain of U1 can be controlled by a digital binary 1248 nibble at ABC. The gain at digital 000 is unity or 1 and the gain at various stages are set by 4051.

Precision Attenuator with Digital Control – delabs

There are eight different gains as the steps of gain resistor network is chosen by 4051. The on resistance of 4051 channel around 100E gets added to U1 pin 2 internal impedance.

Digital gain control of Opamp

Auto ranging 4-1/2 Digit Digital Voltmeter – delabs

You can use separate resistor networks with trimpots for each channel if you require but keep the networks total burden on U1 pin 6 to around 10K, not less than than. You can use this to set the gain of a amplifier with the help of a microcontroller.

You must have read all the circuits and explanation on the other pages at delabs to understand this, as i cannot repeat the same thing as i have done it more than once already.

The circuit is a 555 monostable, The push-switch is to trigger and generate a reset pulse for uC. The diode is for OR’ ing later. The High will go thru the diode but the Low of 555 cannot drink any current as diode blocks.

555 based Reset Generator

The bottom part of the Circuit is the CD4093 Schmitt nand based flipflop. See more at 555 Timer based Circuits

What is the Schmitt then ?, It is better to visit the links below to learn. It can make a sine or triangle or any shape waveform to square. It can help square a very messy waveform.

Two nand gates are connected to form a flip-flop toggle switch. When 555 gives out a pulse, the pulse is delayed by a R-C which results in a ramp, the third nand-Schmitt gives out delayed low trigger to toggle nand-flipflop-switch. The Nand-toggle-switch is rest at any time with the lower pushbutton. The fourth nand output gate is not really required. But the 4093 is quad nand, so unused nand inputs should not float , pull-up or pull-down. So it has just been added in circuit so that he can fit some role, or else he will be bored.

Now you can figure out how such blocks can be used like Lego blocks in your own amazing designs.