Search Results - MEL PICBASIC Forum



THE BOOK of DT's INTERRUPTS is an organization of interrupt service routines and other works written by Darrel Taylor, RIP.

Interrupt routines are arranged per Darrel's original list. Darrel Taylor's Instant Interrupts are an extension of the work of Tim Box whom in October of 2002 wrote INT_CTRL.pbp

Many of the forum members felt this is a long overdue project.

THE BOOK of DT's INTERRUPTS
will be a valuable resource and a tribute to Darrel Taylor the "Fanatical Contributor".

THE BOOK of DT's INTERRUPTS is located at http://dt.picbasic.co.uk/

Search:

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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. 1 microsecond rising edge pulse detection

    Can anyone think of how to detect a TTL 1 microsecond pulse using just a PIC? I'm not measuring the width - just the rising edge. I dont think I can do it using a 16f616. I'm afraid I'll have to use...
  2. Replies
    3
    Views
    579

    Re: Simple TTL input pin coding.

    Read the data sheet - love that answer.. First of all I wouldn't even think to look at the analog portion of the documentation since I'm not using analog inputs. The fact is the pins are defined as...
  3. Replies
    3
    Views
    579

    Simple TTL input pin coding.

    New to PIC basic - programming a 16F15324 - a substitute of the 16F616. I'm setting up pin 2 of the IC to be a simple 0 or 1 detector w 5V.

    It will not detect a 1 or a zero unless I make the pin...
  4. Replies
    6
    Views
    9,225

    Re: 12F683 PWM output not remembering.

    Mixed results on that help. it doesn't remember every time I cycle power - 1 out 10 times it fails to remember
  5. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    My ADCON0 register looks like this 10010011. Now I have to figure out why it worked.

    starting from left

    1 = Right justified, needed for 10 bit
    0 = reference is VDD
    0010 = using AN2
    1 = not...
  6. Replies
    6
    Views
    9,225

    Re: 12F683 PWM output not remembering.

    I will try -thankyou...
  7. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    Your answer is appreciated, you took awhile to answer and you're right - read. Most people would just reply with - hey idiot - read the docs for petes sake.
    I've read the docs about 25 times, but...
  8. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    I'm using Analog port 2 on 16F616 - 4Mhz.. VDD as reference. Any help would be great. I didn't have to set the ADCON registers for 8 bit. Why is 10 bit different? Was I lucky?
  9. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    I dont know what I'm doing.. I dont know what to set ADCON1 to.
  10. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    Its working - but crazy numbers now - 32k instead of 1024 uggg...
  11. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    I've been reading other posts - so I tried this to see if light would turn green - fail


    DEFINE ADC_BITS 10
    DEFINE ADC_CLOCK 3
    DEFINE ADC_SAMPLEUS 50

    ADCON1=%10000010

    OUTPUT PORTA.1 ...
  12. Replies
    10
    Views
    18,608

    Re: ADC resolution for 16F616

    Note: - I'm not doing anything as far as CCP1CON, CM1CON0,CM2CON0, CM2CON1, ADCON1.

    Yes I'm new...
  13. Replies
    10
    Views
    18,608

    ADC resolution for 16F616

    I'm using a 16F616 analog input with a ADCIN routine. My resolution is 5V / 256 = about .19 mv. I'm using a voltage divider for the input with .1% tolerance resistors. Is there a better way to...
  14. Replies
    6
    Views
    9,225

    12F683 PWM output not remembering.

    I have a circuit using a 12F683. It uses a PWM output that controls LED brightness. When the user turns off the circuit and turns it back on - it needs to remain at the same brightness as when was...
  15. Replies
    7
    Views
    4,389

    Timer SubRoutine

    I'm using a 16f616 - but can be changed. I need to do 2 things at same time. I need a timer that has 2 stages - 1 minute on, 5 minutes off (controlling a relay). At the same time I need to monitor an...
  16. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    update - you were right - I had to remove the cap (base to ground on npn) altogether for the PWM to even work. I was using a .1uf - seems it was filtering off the signal. I didn't look too much into...
  17. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    Schematic...
  18. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    Moral of the story is - things sometimes appear more complicated than they really are. Simply 2 or 3 lines of code solved this problem when to me for awhile it seemed like I had to address memory...
  19. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    pic of board - 2 layer board with a 5v reg connected to a 12f683 - fet driving output pin with ground activating the changing of PWM duty cycle. I'm doing a bit of conditioning of the pwm out of pin...
  20. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    thanks Dwight - do the commands above the main only happen once? - I thought once it hits main and we loop on main that it doesn't occur again - we read then the value only once.

    Obvious answer...
  21. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    1/2 my lab in basement - pick and place in foreground.. work area and test on right.
  22. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    Jerson - I notice you have code on top of main: - the read and if - is that meant to be in the main? It actually compiled - and I have no endif for the if Duty > 128 statement... I dont understand...
  23. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    I was in a rush this morning - I'm getting it.. I admit I panicked.. I do read - I work 80- hours a week - 40 hours at a real good job and 40 my own business... I try to save time sometimes...
  24. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    ok I'm a bit slow - I'm old... the 683 has an EEPROM - I'll read after my day job how to do it - thanks guys...

    any advice on the code I already have would be nice...
  25. Replies
    33
    Views
    14,609

    Re: PWM and MEMORY

    thats the spirit.... thanks for the ps..
Results 1 to 25 of 39
Page 1 of 2 1 2