Hi there guys...
I have 1 problem that was asked in some sort of an interwiew....
and i cudnt answer it coz m a beginner in this field...
heres that questn:-
We have two microcontrollers, each connected to a PC through UART. (uC 1 with PC1 and uC 2 with PC 2)
Data is to be sent from PC1 to uC 2 through uC 1 using I2C. Whatever data is sent from PC1 to uC 1 serially (can be of arbitrary length, not greater than 20), uC1 should store that internally, flushing out any previous data.
PC2 is used to command uC2 to get the data from uC1 over I2C and the data received is to be sent to PC2 through the serial port.
how do I do that..?
what all things do i need..?
And m a little slow with programming so cant make out with the full fledged progam...
plz do reply...
Thanks...
I have 1 problem that was asked in some sort of an interwiew....
and i cudnt answer it coz m a beginner in this field...
heres that questn:-
We have two microcontrollers, each connected to a PC through UART. (uC 1 with PC1 and uC 2 with PC 2)
Data is to be sent from PC1 to uC 2 through uC 1 using I2C. Whatever data is sent from PC1 to uC 1 serially (can be of arbitrary length, not greater than 20), uC1 should store that internally, flushing out any previous data.
PC2 is used to command uC2 to get the data from uC1 over I2C and the data received is to be sent to PC2 through the serial port.
how do I do that..?
what all things do i need..?
And m a little slow with programming so cant make out with the full fledged progam...
plz do reply...
Thanks...