Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    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) ???

  4. #4
    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

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Same observation for 16F84(a)
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Default

    Yeah, no kidding.

    Everyone uses those F84's for examples, probably because there's nothing else to confuse you like, USARTs, CCP's, A/D's or SSP's. But man, who'd actually want to use one.

    I've had 2 of them for a couple years. But they're still Virgins. Never been plugged into anything.
    <br>
    DT

  7. #7
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Could it simply be that a lot of the information on the net for PIC newbies is for projects using the 16C84 and for simple programmers that program them.

    I certainly started with the 16C84 but I wouldnt use one now. For small stuff I use the 16F628 on my existing projects and 16F88 on the new projects because of the bootloader.

    Larger projects are using the 16F877 or 18F452 again with bootloaders.

    Somewhere I have some 508's including a couple of JW's that were bought and never used along with a UV eraser that has never even ben plugged in and probably never will now !!!!

    As far as I am concerned, Flash + Bootloader + PBP + MCS rules
    Keith

    www.diyha.co.uk
    www.kat5.tv

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 : 9

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