Interrupt & device setup for a PIC16F628A in Microcode Studio Plus


Results 1 to 12 of 12

Threaded View

  1. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Picatchu

    nice code template ... easy to read !

    some tricks :

    Code:
      if (PORTB.0 = rb0old) then goto changetest ' If there is no change then test again
    change for :

    Code:
    While (PORTB.0 = rb0old)
    Wend
    this will loop till a change occurs ... ( much faster ! )

    Note here I did not understand why use the "change" feature : from your explanations ... if "back" signal detected, it simply turns PortB.0 input ON ( ... or OFF depending Hardware)

    Code:
        dummy = (time((6 * temp)+ 3300))    ' calculate part of the full calculation
    to me ( I can fail ...)
    it might be :

    Code:
        dummy = (time*((6 * temp)+ 3300))    ' calculate part of the full calculation
    By the Way : Speed of sound in air = SQR ( 13 * 287* (273.15 + Temp) /10 )

    ... @ sea level ...

    ...

    Alain

    PS: May be you could try a "samples" request here ...

    http://www.midascomponents.co.uk/
    Last edited by Acetronics2; - 3rd May 2008 at 13:47.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  2. Microcode studio - PIC16F877A Interrupts
    By mcbeasleyjr in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th January 2009, 06:10
  3. CDlite to MicroCode Studio
    By grounded in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th January 2007, 15:46
  4. MicroCode Studio Plus ICD
    By mwhatley in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th August 2006, 20:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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