can ATmega and pic microcontrollers communicate with the rx and tx pins? Answered
hi. i am starting a project that will involve about 4 small boxes that have simple switches and led's connected to them. they will then all be linked to an arduino but maybe later on i will replace the arduino with a pcb that has an ATmega chip on. same as my arduino, which has my custom program on.
i would like as least wires as possible. so by using the receive(rx) and transmit(tx) pins i would only need 4 wires. power, ground, rx and tx.
BUT. pic microcontroller chips are alot easier to program and are cheaper too. i would not be able to use a pic microcontroller to control them all at the central hub so i would need the arduino and pic chips to be able to communicate without problems. only sending basic commands like:
0001 0011 or LED 1 HIGH.
i just thought i'd check it could be done before i buy my parts. if it can't be done is there any way to make it work or any cheap alternatives?