Hi,
I want to make a circuit to collect the temperature of some locations in a control panel.
I have a control panel that is connected to several microcontroller circuits. Each microcontroller circuit measures its ambient temperature.
the control panel sends a number from 1 to 20 for example send number 4, the circuit number 4 must send the temperature that measured.
The microcontroller for the control panel and circuits is ATMEGA48. (schematic of control panel and microcontroller)
I enabled uart on atmega48 for connection between microcontrollers.
Unfortunately, I have a problem with the connection, when I tested a control panel and a microcontroller, the operation was OK, but I connect several microcontrollers the operation was not OK.
I used interrupt for control panel and when a data has been received from a microcontroller the routine of the interrupt will be executed.
I didn't use the interrupt for The other microcontrollers, and other microcontrollers wait and check to receive a data, and if the data is equal with its number address then send the amount of temperature that measured.
Please give me a code (codevision) for the control panel and microcontrollers.
I want to make a circuit to collect the temperature of some locations in a control panel.
I have a control panel that is connected to several microcontroller circuits. Each microcontroller circuit measures its ambient temperature.
the control panel sends a number from 1 to 20 for example send number 4, the circuit number 4 must send the temperature that measured.
The microcontroller for the control panel and circuits is ATMEGA48. (schematic of control panel and microcontroller)
I enabled uart on atmega48 for connection between microcontrollers.
Unfortunately, I have a problem with the connection, when I tested a control panel and a microcontroller, the operation was OK, but I connect several microcontrollers the operation was not OK.
I used interrupt for control panel and when a data has been received from a microcontroller the routine of the interrupt will be executed.
I didn't use the interrupt for The other microcontrollers, and other microcontrollers wait and check to receive a data, and if the data is equal with its number address then send the amount of temperature that measured.
Please give me a code (codevision) for the control panel and microcontrollers.