WRITE not working


Results 1 to 32 of 32

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    One thing i don't understand here... It's working @4MHz. I'm not really much familiar with timer but...


    Original code:
    • 1. Prescaler 1:8
      2. interrupt on Timer overflow
      3. Must interrupt each and every : (1/(4MHZ / 4))*8*256 = 2 mSec
    BUT i read 3 pause 7 in your interrupt routine... longer than interrupt itself... this is why i don't understand why it was working without at least disable interrupts.

    DISABLE or INTCON=0 at the begining of your interrupt routine may do something.


    By the way, let's say you have 20Mhz:
    • 1. prescaler 1:256
      2. Interrupt on Timer overflow
      3. Must interrupt each and every : (1/(20Mhz/4))*256*256 =13 mSec.

    reduce your PAUSE to... let's say 3 or 4 and post what's happen now.
    Last edited by mister_e; - 22nd December 2004 at 23:40.
    Steve

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

Similar Threads

  1. READ WRITE not working consistantly on 12f675
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th September 2009, 16:15
  2. WRITE: One more PBP 2.60 Surprise ...
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 26th August 2009, 09:10
  3. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  4. Storing Strings using the Write command
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st November 2005, 11:31
  5. WRITE isn't working anymore ... HELP !
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th September 2005, 13:12

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