This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cannot get 400 kbps TWI_SW frequancy with clock stretching

Hi Nordic developers,

I'm using TWI software driver provided by NORDIC. I need to have 400 kbps frequancy. I have seted TWI_DELAY() to 0 and TWI_MASTER_TIMEOUT_COUNTER_LOAD_VALUE to 1000. (for clock stretching)

Just checking with osciloscope SCL clock period is 3us instead of 2.5us.

When I set the TWI_MASTER_TIMEOUT_COUNTER_LOAD_VALUE to 0 I'm getting exactly 2.5 us.

How can I get 2.5 us SCL clock cycle with clock stretching?

I'd be really glad, if someone can help me.

Thanks in advance,

Gor

Related