cannot find the reason for such a strange behavior


Results 1 to 18 of 18

Threaded View

  1. #6
    Join Date
    Jun 2016
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: cannot find the reason for such a strange behavior

    Thank you Richard for the time taken to help me.
    Yes the problem definetly was outside the subroutine. A stupid thing that I do very often, but this time I could not find it without somebody else telling me the problems was elsewhere! I did define byte variable Pulse as : "Pulse Var byte [75]" and wanted to load the 76th byte!

    As far as not using the simpler code "Pulse[75] =~w0", it comes from having had several trouble in the past trying to tranfer the value "1" from a byte variable into a bit variable that I came to the conclusion that it was better working with bit to bit ; byte to byte and word to word.

    So, "DMY = W0//256" was extacting the low byte from the word variable W0 into the byte variable "DMY"


    Tested Pulse[75] =~w0 and found it working! so very likely the problem is only with bit variable!

    Again, Tank you very much for the precious help received.

    Alberto
    Last edited by Alberto; - 2nd November 2016 at 11:20.

Similar Threads

  1. Strange behavior on PORTB on a PIC18F26K20
    By Dosbomber in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th September 2016, 23:31
  2. Strange Behavior 12F1822
    By nobner in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 3rd February 2012, 08:11
  3. Strange LCD Behavior
    By chips123 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st November 2009, 00:48
  4. Strange behavior - PORTG.2, 18F8720
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th January 2009, 23:30
  5. Strange electrical behavior with PIC16F684
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 28th March 2008, 06:58

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