Hserin and Timer0


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    Where Can I found a good Assembler Interrupt example ?
    you could take a look at Darrel Taylors instant interrupts routines, http://darreltaylor.com/DT_INTS-18/home.html
    if you are using 18F's
    They have made interrupts so much easier, especially for me.

    HTH

    Duncan

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi

    I have try Darrels Instant Interrups ,but all the time show the Error 108.

    Warning[207] C:\PICHEX\USBWIZ.ASM 1849 : Found label after column 1. (warning)
    Error[108] C:\PICHEX\USBWIZ.ASM 1849 : Illegal character (")


    I can not found the Errors!

    Rgards Pesti

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Hi
    I have try Darrels Instant Interrups ,but all the time show the Error 108.
    Warning[207] C:\PICHEX\USBWIZ.ASM 1849 : Found label after column 1. (warning)
    Error[108] C:\PICHEX\USBWIZ.ASM 1849 : Illegal character (")
    I can not found the Errors!
    Rgards Pesti
    Do you have an extra ' <- yes, that character right there, the little extra tick
    in between a couple of quotation marks. They hide very well. Or maybe an extra quote mark somewhere?

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Pesti,
    I get errors like those if I have spaces where they do not belong, I am sure you are using MPASM 'cause I think you have to for 18F parts, but Darrel's Instant Interrupts also require them. One more thing is Darrel has different DT_Instant interrupts for 16f and 18F series.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi

    Thank you ,Yes I must take a look .
    I found another way to use Interrupts.

    I use just little pause intervals,my problem was that I use Debugin,Hserin Interrupt and the Timer0 Interrupt.

    Now is OK but I think that i will learn another Programming Language while PBP dont work very good with interrupts,I need for my Company something efficient.

    Regards Pesti

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Now is OK but I think that i will learn another Programming Language while PBP dont work very good with interrupts,I need for my Company something efficient.
    Regards Pesti
    PBP works great with interrupts, at least as well as anything else you'll find out there.
    Yes, DT_INT's work better than ON INTERRUPT, but only because they work in a different way. I've used DT_INT's, I like them, outstanding piece of software to add to a program...But...I still use ON INTERRUPT only because I know how to handle it and to keep it out of my way.

    It's all about the keyboard and who is banging on it to define whether or not the program you are writing is responding to those interrupts as you want.
    I think I can say with a high degree of confidence that you won't be able to change compilers/assemblers and magically get good interrupt performance without first improving programming skills.

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Hi

    Thank you ,Yes I must take a look .
    I found another way to use Interrupts.

    I use just little pause intervals,my problem was that I use Debugin,Hserin Interrupt and the Timer0 Interrupt.

    Now is OK but I think that i will learn another Programming Language while PBP dont work very good with interrupts,I need for my Company something efficient.

    Regards Pesti
    Look Pesti,
    You have 2 1/2 years invested into your learning experience here, how inefficient is starting over going to be? What you learn here translates pretty nicely into C, Assembly, and others.
    Stay the course, learn how to do it here and the learning curve will be considerably shorter later, interrupts are one place you could invest the time, learn how to put assembly interrupts into your PBP program, and kill 2 birds with a single stone.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Look Pesti,
    You have 2 1/2 years invested into your learning experience here,
    I'm reminded of a story...
    Something about a man, a bicycle, a tire pump, a shop...
    Oh I don't know what I'm thinking...

Similar Threads

  1. HSERIN2 not working on PIC18F97J60 ???
    By mikebar in forum Serial
    Replies: 8
    Last Post: - 4th May 2008, 15:20

Members who have read this thread : 0

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

Posting Permissions

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