<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
</head>
<body>
<p>Dobry den vsem</p>
<p>Resim jednu zahadu</p>
<p>Mam i2c slave pripojene k PIC32 a vlastni SW driver.</p>
<p>Chtel jsem nyni kvuli vyssi rychlosti vyuzit HW i2c v PIC32,
driver mam napsany, vse funguje az na rychlost cteni.</p>
<p>Zapis asi 10 ti registru spotrebuje max 1ms, ale jakmile chci
nacitat tak jeden bajt spotrebuje cca 50ms.</p>
<p>Pokud pouzivam repeatread, tak kazdy bajt spotrebuje 50ms.</p>
<p>Na logickem analyzatoru nevidim nic zvlastniho.<br>
</p>
<p>Pritom zadnou chybu v driveru nevidim <br>
</p>
<p> <u>I2c_read je toto:</u></p>
<p> I2C4CONbits.RCEN = 1; // Enable the receiver</p>
<p> while (!I2C4STATbits.RBF) {;}</p>
<p> DATA = I2C4RCV; <br>
</p>
<p>Ten while spotrebuje onech 50 msec, nechapu proc.<br>
</p>
<p>Vi nekdo z vas proc ?</p>
<p>Dekuji za tipy.</p>
<p>Libor<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>