<html>
<body>
Connect the ISP header pins for the slave directly to the mega8 MISO,
MOSI & SCK and isolate these from the other processor with 1k
resistors.<br><br>
You should do the same with the RXD0 pin on the mega128. TXD0 is OK
without a resistor and SCK will be isolated by the resistor that goes to
the mega8 pins.<br><br>
A picture is worth 1k words so view this in a fixed pitch font such as
Courier.<br><br>
<font face="Courier New, Courier">
ISP
ISP<br><br>
___ | |
| | | |<br>
RXD0
-|___|-------)-)-+ | |
|<br>
| | | |
|<br>
TXD0
-------------)-+
| | |<br>
|
| | |<br>
| ___ | | |<br>
MOSI -------------)------|___|--)-o-)---- MISO<br>
|
| |<br>
| ___ |
|<br>
M128
MISO -------------)------|___|--)---o---- MOSI M8<br>
|
|<br>
| ___ |<br>
SCK -------------o------|___|--o-------- SCK<br><br>
<br>
(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)<br><br>
<br>
</font>All the best for now,<br>
John<br><br>
<br>
At 13:14 12/03/2007, you wrote:<br>
<blockquote type=cite class=cite cite="">Content-class:
urn:content-classes:message<br>
Content-Type: multipart/alternative;<br>
<x-tab> </x-tab>
boundary="----_=_NextPart_001_01C764A8.57BB54C1"<br><br>
<font size=2><a></a>Hi.<br>
<br>
In a new design, I want a Master (atmega 128) to talk to a Slave
(atmega8).<br>
But do I run into problems during programming with the ISP?<br>
For example if I want to program the Slave and the master is talking on
the SPI port, I probably run into trouble.<br>
Do I need resistors on the wires? How big?<br>
I would expect Atmel to have some application notes on this, but did not
find any.<br>
<br>
</font><br>
<font face="Times New Roman, Times">Med venlig hilsen / Best regards /
mit freundlichen Grüßen<br>
</font><br>
<font face="Times New Roman, Times" color="#000080"><b>EC POWER A/S<br>
</b></font><br>
<font face="Times New Roman, Times" color="#000080"><b>Steven Lose<br>
</b></font><br>
<font face="Times New Roman, Times">Software Ingeniør<br>
</font><br>
<font face="Times New Roman, Times">Tlf.: +45 87434100<br>
</font><br>
<font face="Times New Roman, Times">Direkte tlf. +45 58286608<br>
</font><br>
<font face="Times New Roman, Times">Email:
<a href="blocked::mailto:bsl@ecpower.dk">sl@ecpower.dk</a><br>
</font><br>
<font face="Times New Roman, Times">
<a href="http://www.ecpower.dk/" eudora="autourl">www.ecpower.dk</a><br>
<br>
</font>_______________________________________________<br>
Icc-avr mailing list<br>
Icc-avr@imagecraft.com<br>
<a href="http://dragonsgate.net/mailman/listinfo/icc-avr" eudora="autourl">
http://dragonsgate.net/mailman/listinfo/icc-avr</a></blockquote></body>
</html>