Author Topic: can you run a Microcontroller off a Microcontroller  (Read 5459 times)

0 Members and 1 Guest are viewing this topic.

Offline jaRONTopic starter

  • Contributor
  • Posts: 34
can you run a Microcontroller off a Microcontroller
« on: September 28, 2011, 07:10:32 am »
can you run a Microcontroller off a Microcontroller
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11631
  • Country: my
  • reassessing directives...
Re: can you run a Microcontroller off a Microcontroller
« Reply #1 on: September 28, 2011, 07:23:39 am »
can
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline jaRONTopic starter

  • Contributor
  • Posts: 34
Re: can you run a Microcontroller off a Microcontroller
« Reply #2 on: September 28, 2011, 07:25:40 am »
Can i get more info like how
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9940
  • Country: nz
Re: can you run a Microcontroller off a Microcontroller
« Reply #3 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)
« Last Edit: September 28, 2011, 07:32:43 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline jaRONTopic starter

  • Contributor
  • Posts: 34
Re: can you run a Microcontroller off a Microcontroller
« Reply #4 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
 

Offline joelby

  • Frequent Contributor
  • **
  • Posts: 634
Re: can you run a Microcontroller off a Microcontroller
« Reply #5 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?
 

Offline jaRONTopic starter

  • Contributor
  • Posts: 34
Re: can you run a Microcontroller off a Microcontroller
« Reply #6 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
« Last Edit: September 28, 2011, 08:00:03 am by jaRON »
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11882
  • Country: us
Re: can you run a Microcontroller off a Microcontroller
« Reply #7 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).
 

Offline joelby

  • Frequent Contributor
  • **
  • Posts: 634
Re: can you run a Microcontroller off a Microcontroller
« Reply #8 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.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9940
  • Country: nz
Re: can you run a Microcontroller off a Microcontroller
« Reply #9 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.
« Last Edit: September 28, 2011, 08:28:19 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 831
  • Country: au
Re: can you run a Microcontroller off a Microcontroller
« Reply #10 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
Testing one two three...
 

Offline jaRONTopic starter

  • Contributor
  • Posts: 34
Re: can you run a Microcontroller off a Microcontroller
« Reply #11 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.
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 831
  • Country: au
Re: can you run a Microcontroller off a Microcontroller
« Reply #12 on: September 28, 2011, 08:47:24 am »
Could you multiplex the displays to reduce the number of pins required for the displays?

Regards
Testing one two three...
 

Offline Hypernova

  • Supporter
  • ****
  • Posts: 655
  • Country: tw
Re: can you run a Microcontroller off a Microcontroller
« Reply #13 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.
 

Offline jaRONTopic starter

  • Contributor
  • Posts: 34
Re: can you run a Microcontroller off a Microcontroller
« Reply #14 on: September 28, 2011, 06:33:19 pm »
is it easyer to use a lcd then the  led bar graph
 

Offline bruce273

  • Contributor
  • Posts: 39
  • Country: gb
Re: can you run a Microcontroller off a Microcontroller
« Reply #15 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.
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 831
  • Country: au
Re: can you run a Microcontroller off a Microcontroller
« Reply #16 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
Testing one two three...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf