• Tech Ads

555 based Reset Generator

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.

Crystal Oscillator – Parallel Resonant

74HCU04 is a chip that was made for this purpose, HCT may not work for such a circuit. C1 and C2 can go to upto 33pF and R2 can be increased to make R2 * C2 = t.

Crystal Oscillator - Parallel Resonant

 

Time constant much less than the period T of the crystal T = 1/F . This is to remove higher frequency components in the Oscillator.

More on Piezoelectric Crystal Oscillator

The circuit above is a parallel resonant oscillator circuit. The Crystal works by the piezoelectric principle, piezo means pressure. The electric field causes the impedance of the crystal to change. The LP Record Player needle is the reverse of this, the bumps on the spiral groove of the record applies pressure to needle which generates electricity. Both are piezo-electric effects.

Precision Attenuator for Digital uC Control

When Instruments are designed a analog front end is essential and also as most equipment have digital or microcontroller interface the analog circuit needs to have digital access. The Circuits DACT0008 and DACT0009 are both useful in building instruments which have digital control.

Precision Attenuator with Digital Control

The Circuit DACT0008 is a programmable attenuator and the digital control can be a remote dip switch, a CMOS Logic Output like the A-B-C-D outputs of a decade counter, or an I/O port of a uC like 80C31.

The heart of the circuit is the popular OP07 OpAmp with Ultra Low Offset in the inverting configuration, 4052 a CMOS analog multiplexer switch enables the gain change, the innovation of the circuit is that the on resistance ( around 100 ohms) of 4052 switch is bypassed so that no error is introduced by its use.

The resistors used R1 to R6 can be 0.1% 50ppm if you will use a 3 ½ DPM i.e. + /- 1999 counts ( approx. 11 bit ), but for 4 ½ DPM ( approx. 14 bit ) you may need to have trimpots2 in place of R3, R4, R5 & R6 gain selection resistors to properly calibrate to required accuracy but for testing or trials use 1% 100ppm MFR resistors but the errors will be around 1%.

Precision Attenuator with digital control

b. Output

Output connect to DPM 7107/7135 or any other A/D Convertor or OpAmp Stage. Use a buffer at output if output has to be loaded by a value less than 1Meg. Use an inverting buffer if input leads have to have polarity where gnd is -In. See DACT0009 for details.

c. 4052 CMOS Switch

The 4052/51/53 Analog Multiplexers have an on Resistance of around 100E the highlight of the circuit is that the CMOS on resistance comes in series with the opamp output source resistance, which produces no error at output.

Digital Control Options

A and B can be controlled by I/O port of uC, like 80C31 so that the uC can Control gain. A and B can be given to Counters like 4029/4518 to scroll gain digitally. A and B can be connected to DIP switch or thumbwheel switch.

Precision Amplifier with Digital uC Control

When Instruments are designed a analog front end is essential and also as most equipment have digital or microcontroller interface the analog circuit needs to have digital access. The Circuits DACT0008 and DACT0009 are both useful in building instruments which have digital control.
This circuit DACT0009 is similar to DACT0008 but gains of upto 100 can be realized in this configuration, this is useful for signal conditioning of low mV outputs of transducers. The gain selection resistors R3 to R6 can be selected by the user and can be anywhere from 1K to 1M and can also be trimpots for obtaining gains as required by user, the resistor values shown are for decade gains e.g. for an auto ranging DPM.

Precision Amplifier with Digital Control

R1 and C1 reduce ripple in input and also snubs transients, ZD1 and ZD2 Zeners clamp input to +/- 4.7V the input current is limited by R1 lastly C1 and C2 are decoupling capacitors. The OpAmp U3 is used to increase the input impedance so that very low mV inputs are not loaded on measurement, the user can terminate the inputs with a resistor of his choice like 10M or 1M to avoid floating of the inputs when no measurement is being made. U5 is used as an Inverting buffer to restore polarity of the input and U4 is used as a buffer on the output of 4052 because loading it by resistance of value less than 1M will cause an error. An alternative is use R7 = R8 =1M and remove U4 but this may not be ideal. Gains of greeter than 100 may not be practical because at 100 gain itself a 100uV offset will be around 10mV at the output (100uV*100) this can be trimmed using the offset null option in the OP07, connect a trimpot between 1 and 8 and connect wiper to +5.

Precision Amplifier with Digital Control

For better performance use ICL7650 ( not pin compatible ) instead of OP07 and use +/- 7.5V instead of +/-5V supply.

Eight steps for gain or attenuation can be added by using two 4051 and by using Pin 6 Inhibit on 4051/52 limitless steps can be added by cascading many 4051,52,53 as Pin 6 works like a chip select.

Some extended applications of this circuits are……. Error correction in Transducer amplifiers by correcting gain. Auto ranging in DMM. Sensor selection or Input type selection in Process control. Digitally Preset power supplies or electronic loads. Programmable Precision mV or mA sources. PC or uC or uP based instruments. Data loggers and Scanners.

Digital gain control of Opamp.

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.

Interface a uC to PC RS232 with MAX232A

This is the standard configuration on how to Interface a uC like 8051 to PC RS232 with MAX232A. The UART or Serial port was not present in 8049/8749 chips which were the ancestors of 8051/8031. Pages of code were needed to make a software UART in MCS-48. The 8051 integrated the hardware UART and short commands made it tick. The most important innovation which made uC popular was the C in 80C31. C is for CMOS. This made the chip work cooler and work on even batteries and small power supplies.

80C51, SBC, Firmware and Circuits

The 8749 and 8751 are the UV EPROM type of uC. With limited erase/write cycles. The FLASH revolution changed every thing, you could update firmware over a phone line modem. Even without Ethernet, the firmware could be updated by making every embedded device a node on the EPABX. Now TCP/IP and Wi-Fi makes it all very easy.

Interface a uC to PC RS232 with MAX232A
Read also –

555 watchdog for uC and uP systems

When the microcontroller hangs due to a spike, EMI or RFI etc. the 7555 will reset the uC, if proper power supply design is done above circuit can also give a clean power on reset, the above circuit you should modify to suit your design.

80C39-8749 MCS-48 Examples and code

Better still use a uC with watchdog built in like some atmel chips, or use the watchdog chips from maxim which can also do RAM battery management.

The circuit was developed over a old TI application note, 7555 i think fairchild may be making it, 7555 is CMOS version of 555 timer, advantage of 7555 is that it can go to higher frequency, low power consumption, the disadvantage is its output drive mA is not as good as 555. now why i put it here was that you can see how charge and discharge paths are separated with diodes.

555 watchdog for uC and uP systems

See Larger Circuit. 555 Watchdog
Edit the circuit eagle cad file del00013.zip,