HI,在I2C外围设备的硬件复位状态中没有可用的默认值。不同的PIC器件系列可能会从不同的源获取原始时钟信号,因此可能需要不同的计算。安全值将是振荡器频率除以I2C时钟频率:BRG= FoC/C.100000;对于更快的DSPICE…设备,注意该值不超过寄存器BRG字段中可容纳的最大值。如果产生的频率为预期的1/2,则调整设置。我认为对于DSPICHYSYEP设备和类似的70 MHz设备,正确的时钟信号可以是外围设备。时钟:FP= FOSC/2给出:BRG=FP/(2×Fi2C)MysIL
以上来自于百度翻译
以下为原文
Hi,
There is no useable default value in hardware reset state for I2C peripheral.
Different families of PIC devices may take the raw clock signal from somewhat different sources,
so may need different calculations.
A safe value would be oscillator frequency divided by I2C clock frequency: BRG =
fOSC / 100000;
For the faster dsPICE... devices, take care that the value do Not exceed the maximum value that may be accomodated in BRG field of the register.
If the resulting frequency is 1/2 of what was expected, adjust the setting.
I think that for dsPIC___EP devices and similar 70 MHz devices,
the correct clock signal may be Peripheral clock:
FP =
FOSC/2
giving: BRG =
Fp / ( 2*
FI2C)
Mysil
HI,在I2C外围设备的硬件复位状态中没有可用的默认值。不同的PIC器件系列可能会从不同的源获取原始时钟信号,因此可能需要不同的计算。安全值将是振荡器频率除以I2C时钟频率:BRG= FoC/C.100000;对于更快的DSPICE…设备,注意该值不超过寄存器BRG字段中可容纳的最大值。如果产生的频率为预期的1/2,则调整设置。我认为对于DSPICHYSYEP设备和类似的70 MHz设备,正确的时钟信号可以是外围设备。时钟:FP= FOSC/2给出:BRG=FP/(2×Fi2C)MysIL
以上来自于百度翻译
以下为原文
Hi,
There is no useable default value in hardware reset state for I2C peripheral.
Different families of PIC devices may take the raw clock signal from somewhat different sources,
so may need different calculations.
A safe value would be oscillator frequency divided by I2C clock frequency: BRG =
fOSC / 100000;
For the faster dsPICE... devices, take care that the value do Not exceed the maximum value that may be accomodated in BRG field of the register.
If the resulting frequency is 1/2 of what was expected, adjust the setting.
I think that for dsPIC___EP devices and similar 70 MHz devices,
the correct clock signal may be Peripheral clock:
FP =
FOSC/2
giving: BRG =
Fp / ( 2*
FI2C)
Mysil
举报