IIC Calculator for S912ZVLA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IIC Calculator for S912ZVLA

Jump to solution
2,425 Views
Boris_Bloxsberg
Contributor III

Hi,

is there IIC calculator avaible to calculate the value of the IIC0IBFD - Register?

 

Could someone provide link or somethink else....

 

 

Tags (1)
0 Kudos
Reply
1 Solution
2,394 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

There is no such calculator and I do not think such calculator is necessary.

f_iic = fbus / SCL Divider

so

SCL Divider = fbus / f_iic

 

For example;

fbus = 32,000,000 Hz

f_iic = 100,000 Hz

SCL Divider = 32,000,000 / 100,000 = 320

Now, go to the Table 16-7. IIC Divider and Hold Values and search for 320 in the SCL Divider column.

There are more results for different IBFD[7:6], MUL in the table. The difference is then in SDA hold clocks.

Final value for clock setup is IBFD = IBC[7:0] = code from the first column of the table.

 

Best regards,

Ladislav

 

View solution in original post

2 Replies
2,395 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

There is no such calculator and I do not think such calculator is necessary.

f_iic = fbus / SCL Divider

so

SCL Divider = fbus / f_iic

 

For example;

fbus = 32,000,000 Hz

f_iic = 100,000 Hz

SCL Divider = 32,000,000 / 100,000 = 320

Now, go to the Table 16-7. IIC Divider and Hold Values and search for 320 in the SCL Divider column.

There are more results for different IBFD[7:6], MUL in the table. The difference is then in SDA hold clocks.

Final value for clock setup is IBFD = IBC[7:0] = code from the first column of the table.

 

Best regards,

Ladislav

 

2,361 Views
Boris_Bloxsberg
Contributor III
thx
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2137398%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIIC%20Calculator%20for%20S912ZVLA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137398%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Eis%20there%20IIC%20calculator%20avaible%20to%20calculate%20the%20value%20of%20the%26nbsp%3BIIC0IBFD%20-%20Register%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECould%20someone%20provide%20link%20or%20somethink%20else....%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138616%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IIC%20Calculator%20for%20S912ZVLA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138616%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EThere%20is%20no%20such%20calculator%20and%20I%20do%20not%20think%20such%20calculator%20is%20necessary.%3C%2FP%3E%0A%3CP%3Ef_iic%20%3D%20fbus%20%2F%20SCL%20Divider%3C%2FP%3E%0A%3CP%3Eso%3C%2FP%3E%0A%3CP%3ESCL%20Divider%20%3D%20fbus%20%2F%20f_iic%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20example%3B%3C%2FP%3E%0A%3CP%3Efbus%20%3D%2032%2C000%2C000%20Hz%3C%2FP%3E%0A%3CP%3Ef_iic%20%3D%20100%2C000%20Hz%3C%2FP%3E%0A%3CP%3ESCL%20Divider%20%3D%2032%2C000%2C000%20%2F%20100%2C000%20%3D%20320%3C%2FP%3E%0A%3CP%3ENow%2C%20go%20to%20the%20Table%2016-7.%20IIC%20Divider%20and%20Hold%20Values%20and%20search%20for%20320%20in%20the%20SCL%20Divider%20column.%3C%2FP%3E%0A%3CP%3EThere%20are%20more%20results%20for%20different%20IBFD%5B7%3A6%5D%2C%20MUL%20in%20the%20table.%20The%20difference%20is%20then%20in%20SDA%20hold%20clocks.%3C%2FP%3E%0A%3CP%3EFinal%20value%20for%20clock%20setup%20is%20IBFD%20%3D%20IBC%5B7%3A0%5D%20%3D%20code%20from%20the%20first%20column%20of%20the%20table.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ELadislav%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E