PSOC4: I2C Bus 400KHZ-Can it run this fast?

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

cross mob
Anonymous
Not applicable
        Newbie here... Hey, I have been fooling around with the controls on PSOC4 I2C bus. I was expecting to be able to RX/TX at 4K. Playing around with the block it does not seem to let me? It seems like its stuck around 50K. Yikesssss! Thanks for any Help! GDN   
0 Likes
12 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

According to configurator/proerties tab, and below from TRM, to 1000 kbps.

   

 

   

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

...and I can assure you it does work,  I currently run a connection between a Pioneer board and a PSoC5 development kit at a speed of 400 kHz.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given
        You have pullups installed per data sheet. see attached ?   
0 Likes
Anonymous
Not applicable

 Can you check the signal with a CRO? How is the waveform looks like?

0 Likes
Anonymous
Not applicable
        All...Thanks for verifying that I can run at 400KHZ (Whew!) that's what I need. I have verified with a scope that I am sending @ 50KHZ (which is what is set in the block). However, I am not sure why it won't allow me to set it to 400KHZ. Any suggestions? Thanks! GDN   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Probably you forgot to set the clock to be 8 times faster than the bit-rate?

   

 

   

Bob

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Correction: Clock must be set to 400 x Oversampling rate

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Using EZI2C I can set using config screen (note you can control what oversampling you

   

want, also uncheck clock from terminal to get it to allow you to select 400) -

   

 

   

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you want to use external clock than that sets clock rate, so feed it

   

a clock X the oversample rate you choose, and check the "Clock from terminal"

   

 

   

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Thanks to everyone...Still can't get there. It is pegged at 100KHZ   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked
        Will you please upload your complete project using the file created with "Create workspace Bundle" so that we all can have a look at.   
Bob (STILL getting the small window. Anyone else?)   
0 Likes
Anonymous
Not applicable

All...Thanks for the help!  I forgot about this post until today.  I finally did get it to work a little better.  The way that I did it was fiddle with the IMO under CLKs.  Thanks again!

0 Likes