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.

Problem with I2C as PIC 18F2620 hangs on i2c_start () function

Status
Not open for further replies.

ahmet2004

Member level 3
Joined
Jan 1, 2004
Messages
63
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
383
have problems with i2c sometimes my PIC 18F2620 is hanging on i2c_start () function. I´m using i2c with FORCE_HW, SLOW but without setup_spi(FALSE). If I use setup_spi(FALSE) then it doesent work.
I´m using 10K pullups on C3 and C4 with 24C256 and PCF8583.

In a thread I found setup_spi(FALSE) in the docu I can't find "FALSE"

The problem (stop on i2c_start()) I can reproduce when I connect to different USB serial adapter (with PL2303) for a while then sometime it does stoping on i2c_start() and waiting.

If I use the software I2C then it it work´s . The init_i2c function I use from the CCS sample, Compiler Version 3.222

I use a software RS232 on B5 and B6.

Is there something to delete, if an error on RS232 to work with I2C.
If I call set_tris_c, is there switched off the spi save ?
I´m not sure if I switch to software I2C to have solved my problem.

Is software I2C better than hardware I2c to use
 

18f2620 picù

Hi. Here is part of revision history on CCS compiler versions:

"3.223 A problem with I2C_START() on some parts is fixed"

Best Regards.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top