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

    OK, So once you try that, you'll realize that the RAMP is not linear.

    It's more a function of the LED output than the PWM routine itself.

    Changing it to 10-bit, and creating a lookup table that matches the LED brightness, seems to work. But I'm sure someone can come up with a better idea.
    <br>
    DT

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    Darrel, if all goes well I hope to be able to commercialize this project within the next 57 years. Can I have your permission to include all this nice stuff within my code?

    Hey, when I first started this project it was supposed to be nothing but a few switches and LEDs. That must have been over 2 years ago. Now I'm using a 320x240 graphic LCD, an 18F4550, two 16F628, 2 MCP23016, surface mount components, USB full speed, VB and eventually an Access database (I'm Tim The Toolman Taylor of home electronics).

    Having to learn electronics kinda put me slightly behind schedule.

    Robert
    :lol:
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    Hi Tim

    If you do it in the next 57 days (or 5.7), you can still use everything to your hearts content.

    Of course, you could add some routines to the pot.

    Help keep the Internet Free!
    <br>
    DT

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    Thank you, thank you, thank you, thank you, thank you!
    Thank you, thank you, thank you, thank you, thank you!

    You can be sure that I will post anything useful that I can contribute; like the stuff for the SED1335 graphic LCD. Last time I Googled, there were no code examples for that one.

    But I'm afraid there's not much I can add; you, Mister E and the other regulars have already covered anything I could conjure (and then some).

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    But I'm afraid there's not much I can add;
    Well, I'm no philosophy major, but I figure...

    The Day you decide you Can't, is also the Day you won't.

    Give it a try.
    Added: or should I say more tries (examples). (SED1335 320x240 graphic LCD)

    DT

    Oh, and, You're Welcome, You're Welcome, You're Welcome,
    You're Welcome, You're Welcome, You're Welcome.
    Last edited by Darrel Taylor; - 17th July 2006 at 02:57. Reason: ADDED

  6. #6
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    I'm trying to work your Instant Interrupts in to my regular code.

    When compiling, I get the following error messages:

    WARNING:Unable to fit variable RetAddrH in requested bank 16
    WARNING:Unable to fit variable RetAddrL in requested bank 16
    WARNING:Unable to fit variable INT_Flags in requested bank 16
    WARNING:Unable to fit variable HP_Vars in requested bank 0


    Since these are just warnings, do I need to be concerned?
    Is there a solution?
    Charles Linquist

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I'm the proud owner of an interupt routine in a PIC 16F628, my very first. It handles USART RX from a PIC 18F4550 wonderfully.

    As mentionned on Darrel's information, I had to switch from MP to MPASM and encountered some delays in setting up the _CONFIG switches properly. But once I got that cleaned up I was up and running, this is just awesome!

    (Charles, any chance you are using MP?)

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

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