Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I2c slave in busy mode

Status
Not open for further replies.

Jinzpaul4u

Full Member level 4
Full Member level 4
Joined
Feb 1, 2012
Messages
231
Helped
59
Reputation
118
Reaction score
60
Trophy points
1,328
Location
India
Visit site
Activity points
2,822
Hi there,

good wishes.

Do anybody have an idea about, how i2c slave ic can block the data from master mcu or how can it inform to master it is busy??

Thanks in advacnce
 

Make a program for a slave that refuse the call of master if it is busy.
It's up to you whether you give respond to slave every time or not.
you can add a concept of semaphore here (just like in RTOS)
use a variable called flag.
for whatever time your slave is busy kept that flag bit high.
and for whatever time your slave is free kept that flag low.
and make a program that if the flag is low then respond to the call of master or otherwise block it.
hope you get it.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top