Sending and Reading info U3
Posted 04 February 2013 - 09:13 AM
Posted 04 February 2013 - 11:26 AM
Posted 07 February 2013 - 08:21 AM
Reading AIN0 should not affect your PWM on FIO4, but it is possible you are doing something in your code that is causing a problem. Do you see the PWM change somehow when you read AIN0?
Make the 2 threads as simple as possible (1 thread just calling eAIN and the other thread just calling eTCValues), and then if you still see the problem post some code here for us to look at.
No I don't see any change in the PWM when I read.. but how can I be sure that the pins are not getting flase data?? how can I reset the pins before I read ?? I read that the Addrequest does that
Posted 07 February 2013 - 09:10 AM
I am not sure what sort of false data you are worried about. Are you worried about issues do to threading? Section 4.1.2 points out that the driver is thread-safe:
how can I be sure that the pins are not getting flase data??
I don't understand? What kind of reset do you want to do?
how can I reset the pins before I read ??
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users