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

    ... I need to use the 'interrupt-on-change' capability of the 18F to detect (and hopefully count) the decoded clock output from a rotary encoder.
    Try this one from SteveB ...

    http://www.picbasic.co.uk/forum/show...5396#post25396

    There were some changes to it, so read the rest of the thread too.

    hth,
    DT

  2. #2
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Smile

    I'm on it, and thanks!

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


    Did you find this post helpful? Yes | No

    Default

    WOW!

    Kudos to Microchip Direct!!!
    Ordered them on the 5th, shipped from Thailand on the 6th, received on the 8th.
    I can't get anything from California shipped that fast.

    5 - 16F1937
    5 - 16F1936
    1 - 16F1934

    $34 with shipping (Fed-Ex).

    Everything else is on hold.
    Time to update DT_INTS-14.
    <br>
    DT

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,847


    Did you find this post helpful? Yes | No

    Default

    I can double that. My experience with Microchip Direct was wonderful.

    Either 1 pcs or 250, service is top.

    Ioannis

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Thumbs up

    Darrel,

    Want to thank you again for your Instant Interrupts. I inserted them into my huge 18F program, and the elapsed timer is working perfectly! Am going to watch your website and waiting for the "Command Reference"!!

  6. #6
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default I'll third that !!

    I find it is actually easier and quicker to deal with Microchipdirect than the local microchip office - seems to be a lot cheaper as well ! I wonder if the office just orders online and then drop ships ???

    Glad to hear you got some new toys ! Looking forward to the news.

    bill.

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


    Did you find this post helpful? Yes | No

    Default

    These chips are Amazing ....
    They've got everything you could need in a 16F.
    I think I even found a kitchen sink

    And they are backwards compatible enough that it shouldn't even take very long for the update to DT_INTS.

    At $2.52 ea. for the 40-pin jobs, I may never use another 16F.<hr>

    And for the "Command reference" ... It's been waiting a few years now.
    Everyone just kinda picked it up and went with it. So I got lazy.
    Should've, could've, would've, maybe ...
    <br>
    DT

  8. #8
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default

    I love the fact they are 5v as well - seemed a lot of the newer 18f series were moving to 3.3v only.

    I think they are my new favourite series of PICs.

    bill

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,847


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    WOW!

    5 - 16F1937
    5 - 16F1936
    1 - 16F1934
    Time to update DT_INTS-14.
    <br>
    Hi Darrel. Did you had any luck with these new chips?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    I have.
    But they haven't been tested very thoroughly..

    The update also includes every interrupt source I could find for 14-bit cores. (including F1's).

    This page shows the added sources.
    If you use the menu on the left, it will take you back to the old version. So don't.
    http://www.darreltaylor.com/DT_INTS-14/intro2.html

    Download the file at the bottom of the page. Not the one from the Download page.
    DT_INTS-14 version 1.0

    Woohoo! It's 1.0 finally.
    But consider it still beta.
    DT

  11. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,847


    Did you find this post helpful? Yes | No

    Default

    I like smiling faces!

    Amazing! Thanks.

    I have to test them on the new PICs. Wonder whenthey are coming...

    Ioannis

  12. #12
    Join Date
    Jun 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Trying to reach Darrel...

    Hey Darrel--

    I've been trying to reach you re: the consulting I'd hired you to do. I've sent three emails with no response. If you need more money, I'm happy to pay it, and you also have $2200 of my company's equipment... won't you please reply to me?

    Thanks--

    --Alan McFarland
    www.nila.tv

  13. #13
    Join Date
    Mar 2010
    Posts
    15


    Did you find this post helpful? Yes | No

    Question Diolan Bootloader, 18F4550, DT_INTS-18

    I have a small test board that has an ICSP and a USB connection to a pic 18f4550. I have a reset button on the MCLR and a second button on portb.1. An led is connected to portb.0

    The ICSP is used to program a bootloader onto the chip. Then USB is used to add the user program.

    I have loaded the Diolan bootloader onto this chip and it is working.

    I can make a test program in PBP 2.6 that flashes the LED on port b.0
    like this: The Bootloader required code to start at 0x800

    Code:
    DEFINE OSC 48
    DEFINE RESET_ORG 0x800
    ' Example program to blink an LED connected to PORTB.0 about 
    ' once a second
    
    Main:   
       High 0          ' Turn on LED connected to PORTB.0
       Pause 500       ' Delay for .5 seconds
    
       Low 0           ' Turn off LED connected to PORTB.0
       Pause 500       ' Delay for .5 seconds
    
       Goto Main       ' Go back to loop and blink LED forever
       End
    The above program works as expected. So the next step was to try the DT_INTS-18 with the bootloader...the code appears to load into the PIC fine, but after reset there is a pause of about 5 seconds then the chip shows up as an un-recognized USB device but does not enter the bootloader mode. To enter bootloader mode the PB on portb.1 is held down during power-on/reset. OR the user application can branch to 0x0016.

    It appears the program is branching somewhere to restart the bootloader code since the pic shows up as an unrecognized USB device. It should not show up at all after the code is loaded since I don't have any usb code in the user app listed below.

    Here is my test program with the DT_INTS-18 that is not working...
    Code:
        DEFINE OSC 20          
        DEFINE RESET_ORG 0x800  
                              
    INCLUDE "DT_INTS-18.bas"     ' Base Interrupt System
    INCLUDE "ReEnterPBP-18.bas"     ' Include if using PBP interrupts
    
    LED1   VAR  PORTB.0
    
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   TMR1_INT,  _ToggleLED1,   PBP,  yes
        endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    
    T1CON = $31                ; Prescaler = 8, TMR1ON
    @ INT_ENABLE  TMR1_INT     ; enable Timer 1 interrupts
    
    Main:
      PAUSE 1
    GOTO Main
    
    '---[TMR1 - interrupt handler]--------------------------------------------------
    ToggleLED1:
         TOGGLE LED1
    @ INT_RETURN

    Any thoughts on why it's not blinking the led using the DT_INTS-18 code and running off into la la land?

    ADDED: I am using the MPASM assembler as well.

    Thanks
    Tom
    Last edited by vamtbrider; - 25th March 2010 at 19:28. Reason: Added Assembler info

  14. #14
    Join Date
    Feb 2010
    Posts
    3


    Did you find this post helpful? Yes | No

    Default DT site down...

    Hi,

    I´m not being able to access Darrell´s website to download DT_INTS-14 (I already use INTS-18, which is great, but I´m working on a project which runs on a 16F628A this time). Can someone please attach the latest version of both INTS-14 and INTS-18 to this thread, so people can download even if the site is down?

    Thanks!

  15. #15
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Here is the latest version 1.00 of DT_INTS-14. The link is to is site, which is back up. http://www.darreltaylor.com/DT_INTS-14/NEW_DT_INTS.zip

    More info on above:http://darreltaylor.com/DT_INTS-14/intro2.html
    Older version of above:http://darreltaylor.com/DT_INTS-14/intro.html

    and here is the latest version of DT_INTS-18 http://www.picbasic.co.uk/forum/showthread.php?p=82871
    More info on DTS_INTS-18: http://darreltaylor.com/DT_INTS-18/home.html

    Besides the webpages above, this post contains info about the time re-enter takes, which I did not see details of on Darrel's site.
    http://www.picbasic.co.uk/forum/show...7587#post17587
    Last edited by ScaleRobotics; - 6th February 2010 at 15:40.

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

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