izmit escort escort ankara adana escort

 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: i2c can't generate "NACK"
PostPosted: Wed Jun 14, 2017 9:07 am 
Offline

Joined: Mon Jun 06, 2016 4:20 am
Posts: 50
Hi,all.i run ucosii on my custom board based SAMA5D3.i faced a program:i used twi0 as i2s master,and read data from slave. i invoke function "TWID_Read" in offical lib "libchip_sama5d3x" ,it can't generate "NACK" in twi status register(8th bit) when the twi0 connect nothing.Please give me some advice,Thank you !


Top
 Profile  
Reply with quote  
 Post subject: Re: i2c can't generate "NACK"
PostPosted: Wed Jun 14, 2017 6:55 pm 
Offline

Joined: Wed Aug 19, 2015 9:44 pm
Posts: 53
leo.ni wrote:
Hi,all.i run ucosii on my custom board based SAMA5D3.i faced a program:i used twi0 as i2s master,and read data from slave. i invoke function "TWID_Read" in offical lib "libchip_sama5d3x" ,it can't generate "NACK" in twi status register(8th bit) when the twi0 connect nothing.Please give me some advice,Thank you !


The I2C specification assumes that there are pull-up resistors on both SCK and SDA lines, so that an empty bus shows logical ones. A NACK is SDA up at the ACK time slot. Check your SDA pull-up.


Top
 Profile  
Reply with quote  
 Post subject: Re: i2c can't generate "NACK"
PostPosted: Thu Jun 15, 2017 3:06 am 
Offline

Joined: Mon Jun 06, 2016 4:20 am
Posts: 50
Thanks a lot ! i invoke the "TWID_Read" function as polling method(the 3th parameter of this function) and mcu can't set the nack bit in i2c status register.but when i invoke this function as IRQ method,the register NACK bit is set.So,i think that maybe this is a bug,but i'm not sure.Thank you for your reply again!
By the way, i pull-up SDA with a 3.3K registor,and supply is 3.3v.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron