DT Ints on 18F (First time user problem)


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,690


    Did you find this post helpful? Yes | No

    Default Re: DT Ints on 18F (First time user problem)

    try without
    INCLUDE "ReEnterPBP-18LP.bas

    your not using a lp int anyway

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: DT Ints on 18F (First time user problem)

    Hi,
    There are two WHILE 1 statements but only one WEND:
    Code:
    WHILE 1
    A:		' CHECK IF MODEM IS WORKING OK AND SET ECHO OFF
    			HSEROUT2 ["SENDING AT",13,10]
    			HSEROUT ["AT",13,10]
    			GoSub GetResponse			
    
    			HSEROUT ["ATE0",13,10]
    			GoSub GetResponse	
    			HSEROUT2 ["ATE0 RESULT=OK",STR MESS\500,13,10]
    
    WHILE 1
    			HSEROUT2 ["SEND COMMAND",13,10]
    			HSERIN2 [STR MESS\500\13]
    			HSEROUT2 ["SENDING-",STR MESS,13,10]
    			HSEROUT [STR MESS,13,10]
    			GoSub GetResponse
    WEND
    Although compiling your code as it was did NOT give the error message you show removing one of the WHILE 1 makes it compile without errors. Make sure you're compiling for the correct device.
    Finally, you generally don't want to have the reset flag option set to YES for the EUSART interrupt because the flag is cleared automatically by the hardware when the RX buffer is read.

    /Henrik.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: DT Ints on 18F (First time user problem)

    Thanks. A few confirmations
    • Device is 18LF45K22 and it is compiled for the same device
    • Include 18LP file is commented
    • First while1 is commented in my file, must be a mistake while copying/pasting/editing
    Error is still there. Not sure if something needs changing in ReEnter file or DT_INT file?
    ___________________
    WHY things get boring when they work just fine?

Similar Threads

  1. User Position, Velocity & Time II (D1h)
    By dj.lambert in forum GPS
    Replies: 2
    Last Post: - 31st July 2009, 10:21
  2. Problem with Dt Ints Interrupts
    By Quin in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th July 2008, 20:21
  3. Some initial help for a first time PBP user
    By jtburnham in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th April 2006, 08:32
  4. First time with 18F pic...
    By gabrielg74 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th December 2005, 08:04
  5. need help first time user of picmicro
    By tekdavid in forum mel PIC BASIC
    Replies: 2
    Last Post: - 29th March 2005, 05:39

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