16F877a Interupt driven Hserin


Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I doubt that a tight loop and a register polling method will work. try working around the example 2 of this one
    http://www.picbasic.co.uk/forum/show...1&postcount=11
    In the ISR you may set a flag to tell the main to read the ADCs. To avoid waste of time and void some interrupts, i would recommend to set/read the ADCs register instead of using ADCIN. A short asm Delay loop, or use internal timer, OR a tight PAUSEUS x loop for your acquisition time.

    The use of instant interrupts OR asm, could be the best and smarter choice. Rule #1, never waste your time in ISR... this is what 'Wait' do ?.

    Let us know what's happen now.
    Last edited by mister_e; - 2nd November 2006 at 17:54.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Help! My 'interupt', erhm ...only interupts the one time?!!!
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd November 2009, 12:49
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. 16F877A HSERIN problem
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2006, 02:51
  4. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 18:52
  5. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42

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