Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

characteristics and apps: PIC16F870

Status
Not open for further replies.
How I limit the current in the op-amp, I have no idea, Using a resistor as if it was a transistor, between Voltage source and collector.

Sorry, I do not have in mind how the preset has to be. If it is a negative DC voltage a capacitor can stop it?

What does a series resistor do between the output and the input to the PIC.


Thanks a lot for the comment!
 
sardineta said:
How I limit the current in the op-amp, I have no idea, Using a resistor as if it was a transistor, between Voltage source and collector.

You a resistor feeding to the PIC, as below.

Sorry, I do not have in mind how the preset has to be. If it is a negative DC voltage a capacitor can stop it?

Assuming your opamps don't have DC offset inputs?, you can fit a potentiometer between +/-9V, with a resistor feeding to one of the first opamp input pins - try something like a 100K resistor.

What does a series resistor do between the output and the input to the PIC.

It limits the current you can feed into the PIC input pin. The datasheet for the PIC gives a value for the minimum source impedance, you should use a value close to that. If you look at my PIC tutorials the analogue hardware shows you what I mean - I actually used 2K7 resistors.
 
The pot should be like this:
Yes, the om amp does not have offset

what op-amp you recommend me to connect.
Ux es some of the U1, U2, U3 or U4 (figure above) and to what input + or - ?
 

Attachments

  • pot.jpg
    pot.jpg
    3.8 KB · Views: 962
Ok, I think the DC level I got was due to I didn't connect + terminal to ground in the Full Wave Rectifier stage.

:!:
 
Does anyone know how to avoid bounces?

I have a switch I check if it is open or close by RB0, it activates an interrupt, but I think between the transition I have more than one event, so I would like to know a way to avoid bounces.

I have a resistor of 10k one leg is to 5v, and the other to RB0, the switch is connected to RB0 and the other leg of the switch to gnd. so when closed RB0 sees gnd, (interrupt high to low)

:?:

is there a way to stop the overflow of the T0IE when TMR0 is configured to internal clock, while a delay is occurring and then to make it run again conserving the actual value of TMR0. I don't want a interrupt event from T0IF while a delay is occurring.
 
switch debouncing is a very common techniques used to introduce a little delay in reading a switch. there are different techniques for different types of switches. for an SPST switch a RC network can be used or a delay in the software can be used. and for an SPDT switch you can use a latch.

you should look at Nigel's tutorials where he uses a debouncing technique.
 
Does anyone knows how the stack registers can be used.

how they work?
I know that the 870 has 8 stack registers but I do not know how they work
thanks
 
sardineta said:
Does anyone knows how the stack registers can be used.

how they work?
I know that the 870 has 8 stack registers but I do not know how they work
thanks

Like any stack they are automatic in use, when you perform a CALL the return adress is stored there, when you perform a RETURN the return address is taken off and the program jumps to that address.

You shouldn't generally mess about with them yourself, particularly on a PIC where you only have a very small stack.
 
Regulator

I havent seen that my 5v ergulator gets warm, I do not know if it is possible, there are just 3 components the regulator feeds: the microcontroler 16F870, which two pins from port C turn on two leds, permanently; the series of 10k to the 100 ohm to avoid the reset.
and another array of resistor 10k + a forward diode + 1 Mohm to ground

the device is the L7805CV

Thanks in advanced
 
almost finished

I have already done a home-made circuit board, however I found that some noise is inserted trhough the ground path, so The ADC catch a bad read an then opens the interruptor, I read the signal by RA0/AN0 pin from the PIC16F870

What you recommend me to do in order to stop this transient voltage in the ground path?

does a varistor and a ceramic capacitor of .1uF both of them connected in parallel in the AC main line will correct this kind of noise?

this transient voltages appear when I turn on/off an electronic device or a flourescent lamp?

I checked the ground paths but they still appear
here is the printed circuit board, and all diagrams are in this topic

Thank in advanced!, Happy new year!
 

Attachments

  • prototype.jpg
    prototype.jpg
    174.1 KB · Views: 287
This is the noise I see using the oscilloscope
in the RA0/AN0 pin of the PIC16F870
 

Attachments

  • noise_188.jpg
    noise_188.jpg
    10.7 KB · Views: 262
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top