pic18f252 hserout some times is incomplete


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    You don't show it in your example, but do you have DISABLE before the
    loopdata interrupt sub-routine?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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

    Default

    Another thing you can't really tell from the partial program, is if the program can "Fall into" the interrupt handler without an interrupt. As shown, it would.

    That might cause stack underflow problems.

    .
    DT

  3. #3
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    17

    Default

    Ciao.

    Yes, I have DISABLE before the loopdata interrupt sub-routine.

    My code run for nothing in dummy:, when receive an character from PC run the interupt and read data from EEPROM end send it to PC with HSEROUT.
    I dont think can "Fall into" the interrupt handler without an interrupt.

    Some times (verry rare) my code works without problem, but most of times I have this random error.
    The same code with PIC16F876 works fine.

    Thanks.
    I wait any way other ideas.

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 17:44
  2. HSEROUT and Commas, What? Help Me Understand
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2009, 19:12
  3. Is HSEROUT corrupting bit 7 ?????
    By Robert Wells in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2008, 16:26
  4. pic18f252 hserout problem
    By edysan in forum Serial
    Replies: 4
    Last Post: - 16th June 2006, 20:46
  5. Strange HSEROUT execution times
    By SteveB in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st May 2006, 18:34

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