tribotec_ca88
24-01-2006, 13:58
Just to check and see if i'm thinking straightforward here...
our team started to work with a few serial commands on MPLAB used to communicate with the camera. As an example, we wrote the following code for the SL (sleep) command:
void Sleep_Mode(unsigned char active)
{
Write_Camera_Serial_Port('S');
Write_Camera_Serial_Port('L');
Write_Camera_Serial_Port(1);
Write_Camera_Serial_Port(active);
Write_Camera_Serial_Port('\r');
}
First off, one point we were discussing was related as to whether the "Write_Camera_Serial_Port('\r');" was necessary or not. Secondly, should the function return any values whatsoever?...
Any help at all would be greatly appreciated, as we're still a bit unsure as to how these serial commands work properly...so here's just a callout to all of you programmers out there who are less "confused"...
Thanks ...
our team started to work with a few serial commands on MPLAB used to communicate with the camera. As an example, we wrote the following code for the SL (sleep) command:
void Sleep_Mode(unsigned char active)
{
Write_Camera_Serial_Port('S');
Write_Camera_Serial_Port('L');
Write_Camera_Serial_Port(1);
Write_Camera_Serial_Port(active);
Write_Camera_Serial_Port('\r');
}
First off, one point we were discussing was related as to whether the "Write_Camera_Serial_Port('\r');" was necessary or not. Secondly, should the function return any values whatsoever?...
Any help at all would be greatly appreciated, as we're still a bit unsure as to how these serial commands work properly...so here's just a callout to all of you programmers out there who are less "confused"...
Thanks ...