Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Well,

    With the example given, Sure!

    But with 16F's, if it gets more complicated, you might have problems. The problem is that when you have more than 1 interrupt source, the HSERIN will stop the others from happening while it waits for the data to come in. But if you only intend to use the one interrupt from the USART. No Problem.

    If you were using an 18F with multiple INT sources, then the HSERIN could be in a Low Priority Interrupt without any problems at all.
    <br>
    DT

  2. #2
    willem's Avatar
    willem Guest


    Did you find this post helpful? Yes | No

    Thumbs up

    Hi Darrel,

    Great you decide to spent some weekend time on it! I'll hope you did enjoy your weekend anyway..
    I will check out the new Multi_SPWM version ASAP and post the results.
    Tnx a lot for your kind help.

    Regards,
    Willem

  3. #3
    Baddzso's Avatar
    Baddzso Guest


    Did you find this post helpful? Yes | No

    Smile

    Thank you for fast reply!
    And YES, YES, YES!!!
    It works! You are my rescuer!
    Thank You!
    Last edited by Baddzso; - 3rd October 2006 at 11:46.

  4. #4
    willem's Avatar
    willem Guest


    Did you find this post helpful? Yes | No

    Smile Software PWM for DT_INTS-xx

    Dear Darrel,

    I just would like to let you know the combined DT_INTS-14 and SPWM_INT working fine!!

    I control 5 Hi power LED’s Using 5 PWM signals (100Herz, 200 step), LED selecting is done by 3 address lines and the actual control by a pulsed STEP and a UP/DOWN level input.

    STEP is causing the INT external interrupt doing the actual PWM change (controlling DutyVar1 to DutyVar5)

    Whenever I change a PWM value, it’s stored as the new default in EEprom (using WRITE command with DISABLE INTERRUPT before and ENABLE INTERRUPT after, working OK too).

    If you like to have more info on both hardware and software, let me know.
    Thank you for your help!

    Regards,
    Willem

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Thumbs up

    Excellent!

    That's great Willem. I'd love to see what you've done with it. Maybe you could post it in the "Code Examples" forum. Better as a new thread. This thread is getting so big it would only get lost in the mess.

    Or I can put it on the website, as an example for SPWM_INT if you'd like. Hopefully, with a picture of the project too?
    DT

  6. #6
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question

    Hello Darrel,
    Is there any way i can implement you instant interrupt routines on PICs which do not have the TMR0 interrupt ( like the PIC16C54A) ???

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    No,

    The 16C54A doesn't have any interrupts.

    They only have 512 words of program space, 25 bytes of RAM, and a 2-level hardware stack.

    At 4 dollars each, I can't imagine why anyone would ever use them.
    <br>
    DT

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 5

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts