16f946


Closed Thread
Results 1 to 21 of 21

Thread: 16f946

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Well, I am wrong, again! The INCLUDE file compiles, but the main program doesn't display the number "1" in the first position when i use the INCLUDE file. When I move the contents of the INCLUDE file to the main program, it works. I have tried this with other combinations of files and file names, but it just won't work! Any ideas?

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


    Did you find this post helpful? Yes | No

    Default

    Total guess.
    Violation of INCLUDE rule #1.

    Execution of the program must not be allowed to "Fall into" a Subroutine.

    Place a GOTO before, to a place AFTER any subroutines in the Include file.
    <br>
    DT

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I guess this isn't going to work then, because there are 300 subroutines in the INCLUDE file.

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


    Did you find this post helpful? Yes | No

    Default

    Oops, I guess it could have sounded that way. Didn't mean to GOTO around every subroutine individually.

    Just one GOTO at the TOP of the Include file, that jumps over all the subroutines in that file.

    Every Include file should jump over it's own subroutines.
    DT

Similar Threads

  1. 16F946 pcb footprint (64 tqfp)
    By nomad in forum Schematics
    Replies: 2
    Last Post: - 8th September 2009, 12:14
  2. Replies: 4
    Last Post: - 17th April 2009, 09:56
  3. 16F946 Instant Interrupts problem
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th April 2009, 23:20
  4. Problem with Bank 3 in 16F946
    By karlosguay in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2006, 01:19

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