EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: jaRON on September 28, 2011, 07:10:32 am

Title: can you run a Microcontroller off a Microcontroller
Post by: jaRON on September 28, 2011, 07:10:32 am
can you run a Microcontroller off a Microcontroller
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: Mechatrommer on September 28, 2011, 07:23:39 am
can
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: jaRON on September 28, 2011, 07:25:40 am
Can i get more info like how
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: Psi on September 28, 2011, 07:30:15 am
Depend how you mean, you can code a microcontroller to respond to commands from another microcontroller using a link between them  (serial, spi, etc, or invert your own link).

You can even program one microcontroller to reprogram another microcontroller on demand.

There are quite a few ways of "running a Microcontroller off a Microcontroller"

You could even program one microcontroller to pretend to be a memory chip (with special features) and connect it up to the external memory interface of another microcontroller.  (hehe that's a trippy idea)
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: jaRON on September 28, 2011, 07:36:04 am
what pin do you put microcontroller on if you like to code a microcontroller to respond to commands from another microcontroller
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: joelby on September 28, 2011, 07:38:57 am
If you want two microcontrollers to communicate via SPI, I2C or UART, connect them together using their SPI, I2C or UART pins. If you want them to communicate via flags, connect an output pin on the first chip to an input on the second.

Why don't you tell us exactly what you're hoping to achieve?
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: jaRON on September 28, 2011, 07:52:09 am
I making a fan controller for my water cooling pc. I'm going to controll 15 to 17 fans. It going to have 8 Temperature Sensor and it 8 led bar graph. to show what the Temperature is. the fans are use a Irfz44 transistor so i going to need 94 to 100 pin



and is there a better way to run the led bar graph. so i can save pins
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: IanB on September 28, 2011, 07:59:58 am
If you need more outputs than the microcontroller has you should use an external shift register IC (or several).
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: joelby on September 28, 2011, 08:02:25 am
I'm not sure how that relates to connecting multiple processors together. Either use a processor or FPGA with the required number of I/Os or consider multiplexing things. Temperature sensors with I2C interfaces can be multiplexed easily. You could even use I2C DC motor controllers. Or you can use shift registers or port expanders.
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: Psi on September 28, 2011, 08:25:49 am
If you power the 8 segment led graph displays using an external IC connected to the analog voltage that the temp sensors produce you wont need lots of microcontroller outputs for all the leds.

The LM3914 IC is a good example of this. It will drive a led graph displays and show the voltage level you supply it with by illuminate the leds as a bargraph.
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: PeterG on September 28, 2011, 08:29:30 am
I would like to know where the 94-100 pin count comes from. He only needs about 36 io pins based on the description.

8 for the 8 led display.
8 for the 8 temp sensors if DS18b20 or similar are used.
17 for the fan control outputs.

Or did i miss read something.
 
Regards
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: jaRON on September 28, 2011, 08:32:55 am
Quote
I would like to know where the 94-100 pin count comes from. He only needs about 36 io pins based on the description.

8 for the 8 led display.
8 for the 8 temp sensors if DS18b20 or similar are used.
17 for the fan control outputs.

Or did i miss read something.
 
Regards

80 for the 8 of the  8 led display.
8 for the 8 temp sensors
6 for the fan control outputs.
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: PeterG on September 28, 2011, 08:47:24 am
Could you multiplex the displays to reduce the number of pins required for the displays?

Regards
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: Hypernova on September 28, 2011, 01:02:51 pm
No way should you waste so much IO for the LED's, just use a chain of shift register and hook it up to the uC's SPI port.
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: jaRON on September 28, 2011, 06:33:19 pm
is it easyer to use a lcd then the  led bar graph
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: bruce273 on September 28, 2011, 06:40:57 pm
yes it's fairly common, ie all peripheral for computers will have micros in which just manipulate the data they recieve before it is sent to your pc. If you meant simulation as in a soft processor, You could simulate a micro controller on another one if your main micro is powerful enough tho an FPGA would be more suited to that job.
Title: Re: can you run a Microcontroller off a Microcontroller
Post by: PeterG on September 29, 2011, 12:10:28 am
jaRON, yes an LCD display would be easier and prob look better as well. Using an lcd also gives you more flexibility by allowing things like fan speed and actual temps to be shown.

Regards