I2C is not working in PXS3020 micro cotnroller

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

I2C is not working in PXS3020 micro cotnroller

867 Views
rajvelm
Contributor I

Hi,

 

I am using PXS3020 micro controller for my application.

 

In this, I have written a code for I2C Functionality. while measuring the I2C clock it is found that i2C clock is not coming from all the three channel. Initially Both the clock and data line is High state. while  start transmission(while generating the start condition) both the clock and data line goes permanently low and it will not come back again High

 

while studying the reference manual the following points noted.

 

The I2C module has two operating modes: run mode and halt mode. In run mode, I2C_x=0 in the SIU_HLT0 register and all functional parts of the I2C module are running. In halt mode, I2C_x= 1 in the

SIU_HLT0 register and all clocks to the I2C module are disabled.

 

 

But we could not find the register details in the reference manual.

 

Is anywhere I have to enable the I2C clock..?

 

can any one help for the above issue

 

Regards

Rajvel M

Labels (1)
0 Kudos
Reply
1 Reply

743 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi Rajvel,

There is no SIU_HLT register in the PXS30 MCU. Clocks for some modules can be stopped by the ModeEntry module, based on selected mode and ME_RUN_PCx and ME_PCTLx registers setting. So did you enable clocks for the I2C module in ModeEntry?

Also do you use open-drain configuration with external pull-ups on the SDA and SCL? Or at least set internal weak pull ups.

Regards,

Petr

0 Kudos
Reply