Hello Every one,

I am trying to communicate my PSOC microcontroller chip 5LP (LP035) with Raspberry Pi. I have written Pi program in C and java(in order to check the speed of communication between two languages)

PSOC(microcontroller) is acting as slave and Pi is a Master.

Between the communication I set up a mask that is responsible for giving back the required channel value to the master (Pi).

My code was working properly but now it start behaving different (I have not change any thing!) .

Firstly, It only works correct when master send a mask value either 1 or 3.

Secondly: If my program is working (communicating) properly with Pi (java programed) and if I run the same program with Pi (C programmed) and vise versa. I start getting garbage values and sometimes correct value along with garbage value.

I dont understand where the problem is laying.

I will be very thankful to you If any body can help me in it!

Looking forward to hearing from you!

Regards

More Muhammad Awais Khan's questions See All
Similar questions and discussions