Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: richard; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    not sure , for the 16f1788 the microchip ipe with pk4 warns , 5.00 v recommended (not sure where the ldo comes into play)



    as i don't , i have never seen or heard of a pic having an adverse...
  2. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    your not trying to run chip at less than 5v ? decouple caps etc [i'm using none]
    reset is pulled high ?
    enc and sw pins are pulled high with suitable r

    i cannot get mine to fail no matter hard i...
  3. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    would seem that way , although his dt_ints may be altered.
    only changes i made

    latc.6 = 1 ' reversed polarity tty
    serout2 PORTC.6,84,[13,10,"I'm Alive",13,10,10]
  4. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    not to mention that mine ,same code same chip does not reboot
  5. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    the reason i ask is that if your programmer is still connected and the programmer is used to power your proto board .
    some leave the icspclk pin on the programmer as a high output , if your RE...
  6. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    one thing you can eliminate is a code problem [assuming code as posted] mine is has run for 24 hours+ without resetting

    describe your setup including whether you leave the programmer attached...
  7. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    mine has been running for 4 hours now , nill resets
  8. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    i breadboarded a 1788 and using the code as posted in reply 8 with one slight change in that serout2 is set to T9600 it
    1. fails to count properly as predicted
    2. shows no signs of resets...
  9. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    if you look at the expected b5,b6 pin values at each interrupt
    for neg edge trigger only

    ints occur on orange lines
    9010
    under ideal conditions you get for say cw rotation...
  10. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    all you have to do is post the code for your attempt and i will have a look


    hints

    serout2 PORTC.6,16468,[13,10,"RE_val ",dec5 RotEnc1_val] once in an isr is bad twice is just asking for...
  11. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    oneway to count detents divide the absolute raw cnt value by the number of edges/detent ,then restore the sign
    eg
    sb= cnt.15
    detents = abs(cnt)<<2; four edges
    if sb then detents= ~detents+1
    ...
  12. Replies
    33
    Views
    26,980

    Re: Rotary encoder with DT interrupts

    for mechanical encoder with button i use something like this
Results 1 to 12 of 12