PZR setting for I2C

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JuIn_1625121
Level 5
Level 5
100 sign-ins First solution authored 100 replies posted

I think PZR needs to be set 1(open drain) when I uses I2C.

But, I2C poling example in PDL 2.0.2 seems not to set PZR.

How is PZR set correctly?

0 Likes
1 Solution

Inoue-san,

I don't think customer needs to set the PZR manually, as it should be initialized while starting the I2C HW block.

View solution in original post

8 Replies
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Can you please let me know what the PZR you mentioned refers to?

0 Likes

PZR is Port Pseudo Open Drain Setting Register.

pastedImage_1.png

pastedImage_2.png

0 Likes

Let me know if you have encountered any application issue over I2C?

As the description of PZR register shows, this function is implemented only some specific pins. Can you confirm if the pins occupied by I2C is capable PZR setting? I guess the relevant IO mode settings by default in the initialization of I2C. The users may need not much care to this point.

0 Likes

Hi, fwan-san,

>Let me know if you have encountered any application issue over I2C?

I2C communication of the customer's application is failed.

>Can you confirm if the pins occupied by I2C is capable PZR setting?

The customer uses P51 pin and P52 pin.

P51P52.png

TypeI.png

Best Regards,

Inoue

0 Likes

Let me know if the customer's application runs finely once the PZR of I2C pins is set?

If yes, I believe it's a bug of PDL. We will check and try to fix it in next release.

0 Likes

HI fwan-san,

I'm sorry, the communication error was due to another factor.

That solved.

But, the customer wants to know about PZR setting.

I and he think PZR setting is nessesory.

Because, I2C communication specification needs open-drain,

and PZR is for open-drain control setting in pseudo mode.

Is it correct?

If yes, please tell me whether it needs to be set by user or it is set automatically.

Best Regards,

Inoue

0 Likes

Inoue-san,

I don't think customer needs to set the PZR manually, as it should be initialized while starting the I2C HW block.

Hi, WangS_81-san,

Thank you for your help.

I understood your answer, and I told it to the customer.

Best Regards,

Inoue

0 Likes