<div dir="ltr"><div>Another option would be to use multiple PICs. You could connect 8, 12, 16 sensors</div><div>to a single peripheral PIC. These could be setup to monitor and interrupt the <br></div><div>main PIC when a change is detected. This should eliminate loading and muxing and</div><div>would free up processing time on the main PIC.</div><div><br></div><div>It is more code and some of it is interrupt routines which can get tricky to debug.</div><div><br></div><div><br></div><div>John L<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 24, 2021 at 10:45 AM Jean-Pierre Desrochers <<a href="mailto:jpdesroc@oricom.ca">jpdesroc@oricom.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FR-CA"><div class="gmail-m_7624613570335509962WordSection1"><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">In my quest for cheap SPI pressure sensors I found this tiny thing<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">based on Bosch BMP280 I2C/SPI sensor which is now obsolete but still available<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">(over 10,000 available) at aliexpress for $0.45CAD each !<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA"><u></u> <u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)"><img id="gmail-m_7624613570335509962Image_x0020_1" src="cid:17864f6df9f4cff311" width="416" height="406"></span><span style="color:rgb(31,73,125)" lang="EN-CA"><u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA"><u></u> <u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)"><img id="gmail-m_7624613570335509962Image_x0020_2" src="cid:17864f6dfa06917eb2" width="458" height="252"></span><span style="color:rgb(31,73,125)" lang="EN-CA"><u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">My question to the DIY forum is:<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">Since there will be around 90 of these boards used in my project<br>read by the same PIC micro there will be a need for buffering<br>on each MOSI (SDI) & SCK lines. That’s ok. CS lines will be managed by 8 multiplexers (74HC154).<br>That’s ok too.<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">The above schematic shows the board parts.<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">R1,2,3,4 will be removed on each board to avoid heavy loading using 90 devices<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">(down to 97 ohms if each internal 70k pull-up resistors are calculated).<br>Only one of the 90 PCB will keep these resistors (the last one of the row).<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><b><i><span style="color:rgb(31,73,125)" lang="EN-CA">My concern is about the MISO (SDO) line.<u></u><u></u></span></i></b></p><p class="gmail-m_7624613570335509962MsoPlainText"><b><i><span style="color:rgb(31,73,125)" lang="EN-CA">Even tristated each BMP280 will show some kind of capacitance on the MISO bus<br>that will be multiplied by 90 in my case.<u></u><u></u></span></i></b></p><p class="gmail-m_7624613570335509962MsoPlainText"><b><i><u><span style="color:rgb(31,73,125)" lang="EN-CA">Should this be taken in account ?</span></u></i></b><b><i><span style="color:rgb(31,73,125)" lang="EN-CA"><br>The SPI clock will be around 1Mhz.</span></i></b><span style="color:rgb(31,73,125)" lang="EN-CA"><br>No other types of SPI devices will be used here.<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA"> <u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA">Thanks.<br>JP<u></u><u></u></span></p><p class="gmail-m_7624613570335509962MsoPlainText"><span style="color:rgb(31,73,125)" lang="EN-CA"><br><br><u></u><u></u></span></p></div></div>_______________________________________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org" target="_blank">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use <a href="mailto:marketplace@synth-diy.org" target="_blank">marketplace@synth-diy.org</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><a href="http://www.wiblocks.com" target="_blank">http://www.wiblocks.com</a> </div>