benikvarun
Newbie level 6
Hi all,
I m working on a 8 Slaves(PIC 16F873A) and a master(16F877A) for a project.
I was using 4Mhz crystal for all the Micro controllers(Master and Slaves).
The Master and slaves communicates using I2C at 1 Mhz. This arrangement works perfectly fine , i have tested for good number of data packets between the master and slaves.
But, I have a achieve UART baud at 115200 and my board has to run much faster than just 4Mhz. So i have upgraded to 20Mhz crystall using 33pf capacitors.
I now configure the board to communicate with I2C and at 1MHz, the data packets stalls all of sudden and the system halts.
I have only made changes in code to achieve the speed of 1Mhz in I2C and delays of course.
I have tried several tricks by making run slowly by introducing delays. I fail in doing so.
Please Help me come out of this problem. I m stuck here..
I need to communicate at 1Mhz in I2C and achieve Baud rate of 115200 using UART (for both Master and slaves).
Hope i m clear with my problem. Any help is much appreciated.
Cheers
Varun
I m working on a 8 Slaves(PIC 16F873A) and a master(16F877A) for a project.
I was using 4Mhz crystal for all the Micro controllers(Master and Slaves).
The Master and slaves communicates using I2C at 1 Mhz. This arrangement works perfectly fine , i have tested for good number of data packets between the master and slaves.
But, I have a achieve UART baud at 115200 and my board has to run much faster than just 4Mhz. So i have upgraded to 20Mhz crystall using 33pf capacitors.
I now configure the board to communicate with I2C and at 1MHz, the data packets stalls all of sudden and the system halts.
I have only made changes in code to achieve the speed of 1Mhz in I2C and delays of course.
I have tried several tricks by making run slowly by introducing delays. I fail in doing so.
Please Help me come out of this problem. I m stuck here..
I need to communicate at 1Mhz in I2C and achieve Baud rate of 115200 using UART (for both Master and slaves).
Hope i m clear with my problem. Any help is much appreciated.
Cheers
Varun