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.

soft i2c vs timer intrupt (isr)

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
362
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,006
i am using pic 18f4620 with ccs complier. i am constantly writing a count value in ds1307 ram (i2c 400khz), then i am running a timer interrupt for erery 500ms it will call a isr in the isr function i am togging a led. my doubt is will there be any issue in ds1307 ram count writing if interrupt comes, i am using software i2c only.
 

Hi,

Datasheets will tell you.

You have some options.
1) an i2c write to the ds1307 should be short in time, so maybe it's possible to disable interrupts during the i2c access. This causes a short delay to the ISR.

2) Check how much time the ISR max. needs. Then check ds1307 datasheet if this delay at any time of the i2c communication will cause problems.

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top