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 problem in ccs comllier

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
350
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
3,930
in my pic microcontoller 18f4620 i am connecting ds3231 rtc if i use the hard ware i2c it is working fine . if i change to soft i2c and and intrupt the main power 4 - 5 times one of the instance time in ds3231 changes how to solve this issue. can i add low pass rc filter on scl and sda lines?

my pull up resistor is 2.2k i2c speed is 300khz

what value of r and c i must use operating voltage is 3.3v

kindly help


regards
 

Gorgon

Full Member level 6
Joined
Nov 10, 2005
Messages
345
Helped
75
Reputation
150
Reaction score
67
Trophy points
1,308
Location
Norway
Activity points
3,642
What is the reason you don't use the hardware i2c controller, if you have such a device in your microcontroller?

If there are differences btween HW and SW, I would suppose the SW variant has bugs in it, not taking care of the special conditions at power down, or you have not enabled the brown out protection of the MCU.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top