Strange I2C and serial behaviour.......


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    South Wales (UK)
    Posts
    62


    Did you find this post helpful? Yes | No

    Default Re: Strange I2C and serial behaviour.......

    Edit: PIC18F2620 not 2820!

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Strange I2C and serial behaviour.......

    Try
    Code:
    hserout [13,10,hex accx," ",hex accx2," ",hex accy," ",hex accy2," "]
    PAUSE 10
    hserout [13,10,hex accx]
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2009
    Location
    South Wales (UK)
    Posts
    62


    Did you find this post helpful? Yes | No

    Default Re: Strange I2C and serial behaviour.......

    Hi Dave,

    It's the line with the different variables that's the issue. I essentially just want to use one HSEROUT and output all the variables in one shot and then call the I2C bus and get more, ad infinitum. But the serial output goes crap if I ask it to output more than one or two variables.

    I had tried what you suggested to no avail. It would also go screwy if I changed the pause value directly after the I2CREAD (just before the HSEROUT) from 10us to something like 1ms... ?!

    Made no sense to me whatsoever!

    Cheers

    Jimbo

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Strange I2C and serial behaviour.......

    Try SEROUT2 . Might be something about a buffer I am not able to remember...
    Or DEBUG ???

    Sorry, but I can not think what it is and I am not able to test on hardware at the moment.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Strange IT behaviour
    By MikeBZH in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th February 2012, 09:00
  2. Strange behaviour
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th October 2009, 22:35
  3. Strange behaviour of my PBP code.
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th August 2009, 20:20
  4. Strange ADC behaviour
    By ruijc in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 12th December 2007, 20:03
  5. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts