decarus WROTE:By doing so, then the instruction written must alter the Tx of the microcontroller to output start bit for the camera.
Which means, a GUI on the computer is sending data through the xbee to the microcontroller for both motor control and starting the camera.
Actually i'm not sure this is workable. You need to verify with the camera's communication protocol and do the testing.
decarus WROTE:So have to set a string(start command) on the microcontroller? How does the microcontroller know he'll have to send it to the Tx pin instead of i/o ports ?
You need to do some configuration in your program.
decarus WROTE:And can a 16bit uC tunnel with 8bit uC ?
Yes, as long as they 'speak' the same language. For example SPI, UART, I2C, CAN...
decarus WROTE:How about this, Since both the camera and xbee are using uart, to get two uart ports, use two microcontroller and tunnel them using SPI interface. What do u think?
It's easier to get a microcontroller with two UARTs. Some 16-bit PIC mcu has more than one uart. Besides, we also can add another software uart to a mcu with one hardware uart. Sample code can be obtained here:
http://www.cytron.com.my/suppMaterial/18F_Sample_Program.zipThis source code uses Microchip C18 compiler and the mcu chosen is 18F4520. You can read more in SD02B User's Manual, Section 7.2 (page 26). Get the user's manual here:
http://www.cytron.com.my/datasheet/SD02B_User's_Manual.pdf