I2C Communication between PIC18F4550 and AS5600


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: I2C Communication between PIC18F4550 and AS5600

    Both of you are absolutely right, but I was referring to the Variables definition, that were always defined wrong. Now it got it right.

    I am convinced that it is getting better every time and maybe after a few months, it will correct those mistakes too.

    And in general does not define the various FSR's unless you strictly ask it to do so.

    Ioannis

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: I2C Communication between PIC18F4550 and AS5600

    I am convinced that it is getting better every time
    not at all , when you see fundamental errors like this

    Code:
        ' Read the high byte of the angle register
        I2CREAD AS5600_ADDR, AS5600_ANGLE_H, [angleH]
        PAUSE 10
    
    
        ' Read the low byte of the angle register
        I2CREAD AS5600_ADDR, AS5600_ANGLE_L, [angleL]
        PAUSE 10
    if the read angle moves by 1 bit count in-between the reads then the read position error could up to +- 45 degrees [256 counts]

    pbp i2c is glacially slow a 10ms pause in between reads wtf!, its just nonsense
    Warning I'm not a teacher

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: I2C Communication between PIC18F4550 and AS5600

    Definetly will not take the job of software engineers in the near future. But it is getting better. And I suspect the free version is not that good for obvious reasons.

    But paid AI does incredible job in other fields, like voice, image and video processing, that by definition is more complex than a I2C transaction. That is why I believe it can do much better that this PAUSE 10...!!!

    Don't forget also that we are all beta testers and at the same time teachers of this beast...

    Ioannis

Similar Threads

  1. Replies: 18
    Last Post: - 4th July 2017, 14:26
  2. PIC18F I2C Communication with Arduino
    By picmilan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 14th July 2016, 21:38
  3. Replies: 0
    Last Post: - 26th May 2012, 13:57
  4. EEprom and MCP9801 I2C communication problems
    By aajgss in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 3rd September 2011, 21:45
  5. Replies: 2
    Last Post: - 10th June 2005, 02:34

Members who have read this thread : 1

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