apsua
Member level 3

Hello,
I am having an RS485 communication problem between two pic microcontrollers for a long time, and I couldnt solve it. Actually, it is working, but after a while (10 minutes to more than one day) some unexpected data changes happen. There is no hardware problems. Previously it could hang after working similar periods. I have reduced these by disabling interrupts while eeprom writing processes.(I think this reduced).
I am still searching, I have a consideration about in-function defined local variables. Does these kept when an interrupt occur?
Btw, I dont have any problems when there is no serial communication.
Thanks.
Note: Compiler CCS C
I am having an RS485 communication problem between two pic microcontrollers for a long time, and I couldnt solve it. Actually, it is working, but after a while (10 minutes to more than one day) some unexpected data changes happen. There is no hardware problems. Previously it could hang after working similar periods. I have reduced these by disabling interrupts while eeprom writing processes.(I think this reduced).
I am still searching, I have a consideration about in-function defined local variables. Does these kept when an interrupt occur?
Btw, I dont have any problems when there is no serial communication.
Thanks.
Note: Compiler CCS C
Last edited: