what cheapest and simplest MCU can I use for this purpose?
A rectifier diode to get the half wave and a zener diode to clamp the output.
If you don't want the output pulse to be the full period of the wave (although you say you want a square wave but only show a pulse)
No no, the double 555 stuff is where I started, but it had too many components and I want to fit a small case.then something like a 555 can be used to set the pulse width.
I need to generate shown waveform so I can drive other device.Of source this answers the question that you asked directly. However I suspect that you may have asked the question for some solution that you have thought about for quite a different problem (https://xyproblem.info/). Perhaps if you tell us what you are wanting to achieve then we can help you.
Hi,
In post#4 you talk about "pulse width".
You want to adujst it? With the microcontroller?
***
In your picture the square wave goes low before the sine goes low. Do you need this? What timing?
Klaus
// forever in loop
// is sine rise detected?
if(sine start)
{
PORTA = 1;
delay = Read_From_Pot();
Wait(delay);
PORTA = 0;
}
I've been around since the days of the original SSI TTL components (i.e. 54/74 series parts from TI) and they worked on 5V. I don't think I've ever seen digital logic part that was expected to run on a nominal voltage that was higher than 5V. I think you need to think about using a voltage regulator.1. Which DIP8 MCU can I use? Is there any that works on 12V?
E.g. PIC12F675. As said, plan 5V supply and a voltage regulator.Which DIP8 MCU can I use?
It doesn't use a 12V supply as the OP seems to want.Look for ATTINY13. I never used it, but it seems to fit.
It doesn't use a 12V supply as the OP seems to want.
• Voltage range:
- PIC12F609/615: 2.0V to 5.5V
- PIC12HV609/615: 2.0V to user defined
maximum (see note)
What do you think about this chip? Can it really run on 12V? Is there any "basic connection" example?
Not necessarily 200 ohm. As previously said, the device provides a shunt regulator, the current through the resistor with minimal input voltage must be larger than the processor supply current plus current consumptions of driven peripherals.
.A/D Converter:
- 10-bit resolution and 4 channels, samples
internal voltage references
Yes.PIC12HV615 has 4 ADCs so I can connect up to 4 potentiometers?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?