Wednesday, June 12, 2019

Analysis : Raspberry PI3 I2C Master Slave Read/Write Clock stretching Issue

Definition about Clock Stretching:
In an I2C communication, the master device determines the clock speed. Unlike RS232 the I2C bus provides an explicit clock signal which relieves master and slave from synchronizing exactly to a predefined baud rate.

However, there are situations where an I2C slave is not able to co-operate with the clock speed given by the master and needs to slow down a little. This is done by a mechanism referred to as clock stretching.

An I2C slave is allowed to hold down the clock if it needs to reduce the bus speed. The master, on the other hand, is required to read back the clock signal after releasing it to the high state and wait until the line has actually gone high.

Issue Summary:
The ARM-processor Broadcomm BCM2835, which is used on the Raspberry Pi3, has a serious bug in its I2C implementation, which can (a) prevent I2C communication with some devices and (b) lead to data corruption (both in read and write direction).

As a result, do not use I2C-devices which use clock-stretching directly with the Raspberry Pi3 directly or any other Broadcomm BCM2835-based device.

Explanation:

Sample Program:

Clock Diagram:
I2C Read:

Configuration:
  • I2C read
  • I2C slave address: 0x4F
  • read 2 bytes: 0x00 0x00
  • varying ACK/NACK-delays
  • Results:

I2C clock-stretching only work at the end of I2C-read-ACK-phases (after reading ACK/NACK), not at the beginning.
I2C clock-stretching at the end/directly after an I2C-read-ACK-phase only works correctly, if the slave stretches SCL by more than 0.5 I2C clock periods. (see delays/picture-numbers >= 11 below)
Delays which are shorter than 0.5 I2C clock periods corrupt the data, even when the delay is very short and even when the slave catches the too-short clock pulse. (see delays/picture-numbers 1..10 below)


In the above figures, SCL Pulse shows the read-error issue(Red = Error, Green = OK)

!--------------------------------------------------------------------------------------------------------------------------------!

Tuesday, June 11, 2019

Steve Jobs-Exclusive Autobiography


People might have other heroes but for me Steve Jobs is one of ever loving hero for all the great things he did. He never cared about himself, he cared about other people and the world. All the money he donated to AIDS, the phones and computers that he made. ALL this made the world better and move forward. He always tried to achieve his goals and never gave up. Steve Jobs is a real hero to me and I hope all the people that are reading this also realize how great he was.

The State of California is where everything started and developed. Genius Steve Jobs was born in California, 1955 by his German mother and Syrian father. After his birth, he was put to an adoption home and then adopted. As a child he was very intelligent and interested in gadgets, which led him to being the co- founder of Apple and a founding father of the Pixar animation studios and even a board member of Disney. Steve Jobs was a man who never gave up and always believed that he can achieve his dreams. He is my hero, because I believe that he invented some of the best products in the world, which are now worldwide known and leaders in mobile phone technology. Steve Jobs was very humble about money, but always supported many charities. I believe that he is a hero for these reasons.

One thing that proves that he didn't care about money is below quote. "Being the richest man in the cemetery doesn't matter to me. Going to bed at night, saying we've done something great that's what matters to me."

In this post i am going to share his exclusive biography book in pdf format for your view. Read and achieve your dreams.

About this Book:

FROM THE AUTHOR OF THE BESTSELLING BIOGRAPHIES OF BENJAMIN FRANKLIN AND ALBERT EINSTEIN, THIS IS THE EXCLUSIVE BIOGRAPHY OF STEVE JOBS.
PDF Link:
https://malawistandardnewspaper.files.wordpress.com/2016/06/steve_jobs_by_walter_isaacson.pdf


!------------------------------------------------------------------------------------------------------------------------!

Sunday, June 9, 2019

Achieve your dream in an interview.

Another Book from a Best selling author 
Recently i got a chance to read this book and while i was reading at every chapters, really really i was wondering about how this author "Carol Martin" have been projecting with his ideas to promote yourself as energetically and confidently. I am going to give some details about this book ;
Introduction:
This book provides you with the key words and phrases to use during your next interview, regardless of what industry you work in or what position you are interviewing for.These phrases can also be used as you write your résumé. Becoming aware of key words and knowing that the résumé reader will be seeking out these words will result in your being more focused and on track to provide the employers what they are seeking. In this book, you will receive phrases and words to assist you in expressing yourself in the strongest way possible.You will also learn to determine “key words”for the job you are applying for,as well as the company or industry that you will be working in. By reviewing these phrases and becoming familiar with the words and phrases used to answer questions, you will find yourself expressing yourself with more confidence and will not feel as tongue tied as you may have when such questions were asked in past interviews. The more confident you feel, the stronger impression you will make during the interview.The stronger the impression you leave, the more likely you will be considered a strong contender for the job.

!-------------------------------------------------------------------------------------!