Background:
I have "device A" that consists of a sensor, a pic, a max232, and a pc. Device A was intended by the manufacturer to connect directly to the pc and interfaced with hyperterminal.
Goal:
What I want to do is remove the pc component and put a pic in its place. The pic would send commands to device A, and device A will respond back to the pic.
Problem:
I cant get communications going between the pic and device A.
Observations:
I have put numerous debugs inside the program, and have come to the conclusion that the data from the pic is not being interpreted by device A. I have also put a scope on the output of device A and see no activity.
Questions:
Since device A is using a max232, I used true form instead of inverted. But this is confusing because I am not sending data to a max232, I am receiving it. So do I still use true form?
Example code:
SerOut2 M50_OUT, 16416, [66] '16416 = 19200 baud/true. 66 = ASCII B
'An ASCII B tells the M50 to send data
SERIN2 M50_In, 16416, 500, Main, [test1, test2, test3, test4]
'Four bytes are received from the M50
Bookmarks