Topic : Resource sharing among 4 ST7 CPUs

Forum : ST7/STM8

Original Post
Post Information Post
April 7, 2009 - 9:34am
Guest

Hi,

In my deviceI have four ST72F325 chips. They share power supply and some of their inputs are connected to a pulse-generating circuit but they dont talk to each other and work independently of each other. To save space I want to use common parts (crystal and ICP header for programming):
1. Can they all use one crystal
2. I use RLink to program them. I want to avoid putting four programming pin headers (2x5) since there is not much space. If I want to use one programming pin header only I have to somehow enable one CPU only and have the other three disabled so that they dont interfere while programming the first one. How can I do this? I thought of disconnecting the 5V supply from the three CPUs and supply only the one I want to program by using a jumper, but in that case 5V can still go from the ICP pin header to all all of them. Can I pull down their RESET pins?

Thank you
zsavovAThotmail.com

Replies
Post Information Post
+1
0
-1
April 7, 2009 - 11:13am
Raisonance Support Team

Hi,

Using the same crystal should not be a problem. Only then you should use an oscillator or make one with a crystal and an inverter. But do not use one of the inverters on the ST7s, and of course not several of them. And in this configuration, do not send the 12MHz from RLink either, as you already have a clock.

For sharing the ICP connector it is not so easy. I have never done this before and never received such a request, but it should be feasible. Below is how I would do it. I cannot guarantee that it will work from the first try, so make sure that you validate the process before launching the board in mass production...

For entering program mode, the RLink must be able to drive the RST, ICCCLK, ICCDATA and VPP/ICCSEL pins. The simplest solution I see is to choose one of these lines and use jumpers or switches on your board to disconnect all but one of the ST7s from the associated signal on the RLink. I would say to use RST, but that will not work if you have a global RST on the board that connects all RST signals. (push-button...) In this case, I would use VPP/ICCSEL, as this line happens to rise at 12V and it's better not to overload it. But it should also work with ICCCLK or ICCDATA.
The best would be to disconnect all these lines, but then the jumpers would take more space than four ICP connectors. ;/

Finally, you must be sure that once programmed, an ST7 will not interfere on the RST, ICCDATA and ICCCLK signals, which would prevent you from programing the 3 other ST7s.

In the end if it still doesn't work, you might also want to consider another option: purchase socket boards from ST and program the ST7s before soldering them. That forbids reprogramming, but saves you the space for even the single ICP connector.

Please let us know what you try and how it goes, as other people might have the same kind of problems.

Best Regards,

Vincent

+1
0
-1
April 7, 2009 - 2:42pm
Guest

Hi,

Thank you very much for your reply!
I had a quick look at you reply, I will read it carefully tomorrow (now it is 10 30 PM in Australia and I am a bit sleepy).
It seems the RESET solution is the easiest. In my board there will be no global RESET, indeed there will be no reset button for any of the CPUs. But I can fit individual jumpers for resetting the CPUs.
Just to confirm: if I hold the RESET pin down on three CPUs, can I program the fourth CPUs without any interference from the three that are in reset state?

Thank you very much again

zsavovAThotmail.com

+1
0
-1
April 7, 2009 - 3:27pm
Raisonance Support Team

Hi,

That's what I meant by "Finally, ... will not interfere ...".

So yes, if you are using RST to select the ST7s, then everything should be fine, as when the ST7 is under reset, it is inactive on all its IOs. But still that requires confirmation by a hardware test.

Best Regards,

Vincent

+1
0
-1
April 9, 2009 - 1:49am
Guest

Hi,

I was wondering if I can disable the CPUs I dont want to program just by disconnecting their clocks?

Thanks

zsavovAThotmail.com

+1
0
-1
April 9, 2009 - 9:49am
Raisonance Support Team

Hi,

I would not recommend that, as there is an internal RC in the ST72F325, and the unprogrammed ST7s might be running on it...

Best Regards,

Vincent