12f675_fuse_about_to_blow!


Results 1 to 40 of 929

Threaded View

  1. #33
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Here's my take on what's going on. From the top:

    Code:
    T1CON = %00000000
    Pre-scale Bits 4 & 5 set at zero for 65536 count - TMR1ON bit zero set to zero (not on).

    Code:
    TMR1IE = 1
    But: TMR1IE = PIE1.0 so PIE1.0 = 1

    Code:
    INTCON = %11000000
    bits 6 & 7 Peripheral & global interrupt bits set.

    MAIN:
    ' Fire up Timer1 before entry to serial input routine
    T1CON.0 = 1
    So Timer1 bit.0 = 1 Timer1 turned on and count starts........

    If the count reaches 65536ms then the Interrupt flag TMR1IF PIR.0 goes to 1 then the program jumps to:

    Code:
    DEFINE INTHAND RESET_VT
    I think this a kind of GOTO ASM in 65.5ms (Timer1) if no data comes in. If data had come in the program would have continued.

    Not very well explained I'm afraid, how did I do..........?.....Gulp.

    Dave
    Last edited by LEDave; - 21st November 2010 at 00:41.

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