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

    Maybe Bruce set this up to test how reliable the connection is? If it can do two before the interrupt time out then the connection is solid.
    Yes, could well be.

    Well I've learnt a lot from going through the TX / RX program code.

    There were a lot of new terms which I hadn't come across (very clever in what they did / do though) which all adds to the knowledge base.

    So to summarise:

    The TX is an Interrupt_On_Change program which sleeps to save power until a button press is received.

    The RX is a Timer(65ms) Interrupt_loop, which resets if no Data_In is received within the time period.

    Just to be clear in my own mind here, there are two ways to reset the RX Interrupt Timer. One in Main:

    Code:
     T1CON.0 = 0    ' Stop Timer1 once we've received data
        TMR1L = 0      ' Clear low byte
        TMR1H = 0      ' Clear high byte
    Which does it when Data is received (TMR1L/H will have a value of less that 65536 before reset).

    The other in the Interrupt_Handler 'RESET_VT' which the program would jump to on a Time_Out.

    If the above is accurate and makes sense, then in the time honoured tradition:

    What's next?

    Dave
    Last edited by LEDave; - 25th November 2010 at 18:43.

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