+ Reply to Thread
Page 5 of 6
First 1 2 3 4 5 6 Last
Results 61 to 75 of 77

Thread: characteristics and apps: PIC16F870

  1. #61
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    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!


  2. #62
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,783

    Default

    Quote Originally Posted by sardineta
    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.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  3. #63
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    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 - ?
    Attached Images

  4. #64
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    Ok, I think the DC level I got was due to I didn't connect + terminal to ground in the Full Wave Rectifier stage.

    :!:

  5. #65
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    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.

  6. #66
    samcheetah Newbie
    Join Date
    Dec 2003
    Location
    Pakistan
    Posts
    874

    Default

    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.

    http://www.winpicprog.co.uk/pic_tutorial9.htm

  7. #67
    williB Good williB Good
    Join Date
    Aug 2004
    Location
    New Jersey
    Posts
    2,226

    Default

    here ya go..

    http://www.embedded.com/showArticle....cleID=18902552
    Attached Images

  8. #68
    williB Good williB Good
    Join Date
    Aug 2004
    Location
    New Jersey
    Posts
    2,226

    Default

    i personally like the SR debouncer..
    but it requires a different type of switch..

  9. #69
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    Thanks a lot for the comment!!!

  10. #70
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    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

  11. #71
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,783

    Default

    Quote Originally Posted by sardineta
    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.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  12. #72
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default 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

  13. #73
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,783

    Default

    Do you have the two required capacitors as close as possible to the 7805?.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  14. #74
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default

    yes, the two capacitors, this the diagram
    http://www.electro-tech-online.com/v...highlight=half
    C2 is changed by 470uF at 10V

    I am using a transformer 127 to 24Vac with central tap in order to get +12v/-12v/+5v

    probably this is a short electrolitic capacitor isn't it?
    because at the input I have more that 10 V

  15. #75
    sardineta Newbie
    Join Date
    Sep 2004
    Location
    Cuernavaca Morelos
    Posts
    131

    Default circuit

    sdfs
    Attached Images

+ Reply to Thread
Page 5 of 6
First 1 2 3 4 5 6 Last

Tags for this Thread