Hserin and Timer0


Closed Thread
Results 1 to 13 of 13

Hybrid View

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

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

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    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...
    That was a prophesy, was it?
    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.

  4. #4
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    Pesti,

    In your program you have the following line;
    HSerin 10000,Main_RFID,[Menupunkt]
    This command tells PicBasic to wait ten seconds (10000 milliseconds,)for input from the hardware serial port, before it moves on. The OnInterrupt command doesn't really interrupt, it just sets a flag, and waits the ten seconds before it moves on. In your second example you have shortened this to 1000, which means that it will only wait one second instead of ten. However, if you start using Darrel Taylor's Instant Interrupts (THANKS AGAIN DARREL!) it will interrupt instantly! Also, with Darrel's tool it is pretty easy to have different interrupts for different events, so you can have one interrupt handler for Timer0 and a different one for serial input, and another one for something else.

    At the end of this line;
    Lcdout $fe,$C0," ",DEC2 Stunde[0],":",DEC2 Minute[0],":",DEC2 Sekunde[0]," "
    You have a space at the end? I don't think that you need it, and this might be causing your Error108 problem.
    I can promise you that you will not find an easier language to learn than PicBasic, but it does take time. I suggest that you try the examples on Darrel's webpage, start with the Blinky program and work your way through them all until you understand how they go together, and remember, this is supposed to be fun!
    Good Luck!

    Jerry
    If your oscilloscope costs more than your car...

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thank You People for the examples and Answers and critique :-) !

    Yes I k'now that Picbasic is easy I must have more pacience.

    I will try without spaces

    Regards Pesti

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