<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
  <title xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić's random unstructured stuff: Trilby</title>
  <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/</id>
  <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?trilby"/>
  <link xmlns="http://www.w3.org/2005/Atom" type="application/atom+xml" rel="self" href="https://saturn.ffzg.hr%2C%20saturn.ffzg.hr:443/feed/workspace/rot13?page=trilby;type=Atom"/>
  <updated xmlns="http://www.w3.org/2005/Atom">2021-12-31T16:35:03Z</updated>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">Trilby</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?trilby"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div class="wiki">
<p>
<a target="_blank" title="(external link)" href="http://www.kinetic.co.uk/TrilbyAbout.php">http://www.kinetic.co.uk/TrilbyAbout.php</a></p>
<p>
There is https site, but it has broken css</p>
<p>
KINETIC AVIONICS</p>
<p>
TRILBY Rev.2.23 2015</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#components">Dobrica Pavlinušić's random unstructured stuff (components)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] components} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#adg918">Dobrica Pavlinušić's random unstructured stuff (ADG918)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ADG918} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#tda18219hn">Dobrica Pavlinušić's random unstructured stuff (TDA18219HN)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] TDA18219HN} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ltc2226cuh">Dobrica Pavlinušić's random unstructured stuff (LTC2226CUH)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] LTC2226CUH} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#lfe5u_85f_bg381">Dobrica Pavlinušić's random unstructured stuff (LFE5U-85F-BG381)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] LFE5U-=85F-=BG381} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#jumpers">Dobrica Pavlinušić's random unstructured stuff (jumpers)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] jumpers} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rpi_setup">Dobrica Pavlinušić's random unstructured stuff (rpi setup)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] rpi setup} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rtc">Dobrica Pavlinušić's random unstructured stuff (rtc)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] rtc} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#openocd">Dobrica Pavlinušić's random unstructured stuff (openocd)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] openocd} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><h1 id="components">components</h1>
<p>
from schematic <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/Trilby2V23PUBLIC.pdf?action=attachments_download;page_name=trilby;id=20211224105639-0-28253">Trilby2V23PUBLIC.pdf</a><!-- wiki: {file: Trilby2V23PUBLIC.pdf} --></span></p>
<h2 id="adg918">ADG918</h2>
<p>
<a target="_blank" title="(external link)" href="https://www.analog.com/en/products/adg918.html">https://www.analog.com/en/products/adg918.html</a></p>
<p>
Wideband, 43 dB Isolation at 1 GHz, CMOS 1.65 V to 2.75 V, 2:1 Mux/SPDT Switches</p>
<h2 id="tda18219hn">TDA18219HN</h2>
<p>
<a target="_blank" title="(external link)" href="https://www.nxp.com/part/TDA18219HN#/">https://www.nxp.com/part/TDA18219HN#/</a></p>
<p>
Silicon tuner for terrestrial and cable digital TV reception</p>
<h2 id="ltc2226cuh">LTC2226CUH</h2>
<p>
<a target="_blank" title="(external link)" href="https://eu.mouser.com/ProductDetail/Analog-Devices/LTC2226CUH">https://eu.mouser.com/ProductDetail/Analog-Devices/LTC2226CUH</a></p>
<p>
Analog to Digital Converters - ADC LTC2226 - 12-Bit, 25Msps Low Power 3V ADC</p>
<h2 id="lfe5u_85f_bg381">LFE5U-85F-BG381</h2>
<ul>
<li>45F on my board</li>
</ul>
<h1 id="jumpers">jumpers</h1>
<p>
J456, 1-2 IS PI 5V AND 2-3 IS USB 5V</p>
<p>
J451 - JTAG SELECT - REMOVE LINK FOR USB<br/>
J450 - JTAG SELECT - REMOVE LINK WHEN USING LATTICE CABLE</p>
<p>
J30 - CFG_0 - by default pull up, jumper pulls them down<br/>
J31 - CFG_1<br/>
J32 - CFG_2</p>
<p>
J33 - PROGRAMN - reprogram FPGA</p>
<p>
J29</p>
<p>
1 3V3<br/>
2 TDI<br/>
3 TMS<br/>
4 TCK<br/>
5 TDO<br/>
6 GND</p>
<p>
J26 - INSTALL TO ENABLE EEPROM WRITING</p>
<p>
TP18 GND<br/>
TP19 GND</p>
<p>
J458 - GPIO</p>
<p>
from /nuc/rpi/trilby/Trilby_v_1_03_project/impl1/trilby_test_impl1.pad</p>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">2</td>
<td style="border: 1px solid black;padding: .2em;">5V</td>
<td style="border: 1px solid black;padding: .2em;">1</td>
<td style="border: 1px solid black;padding: .2em;">5V</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">4</td>
<td style="border: 1px solid black;padding: .2em;">H18</td>
<td style="border: 1px solid black;padding: .2em;">3</td>
<td style="border: 1px solid black;padding: .2em;">E12</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">6</td>
<td style="border: 1px solid black;padding: .2em;">H17</td>
<td style="border: 1px solid black;padding: .2em;">5</td>
<td style="border: 1px solid black;padding: .2em;">A12</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">8</td>
<td style="border: 1px solid black;padding: .2em;">J17</td>
<td style="border: 1px solid black;padding: .2em;">7</td>
<td style="border: 1px solid black;padding: .2em;">A13</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">10</td>
<td style="border: 1px solid black;padding: .2em;">J16</td>
<td style="border: 1px solid black;padding: .2em;">9</td>
<td style="border: 1px solid black;padding: .2em;">B13</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">12</td>
<td style="border: 1px solid black;padding: .2em;">E19</td>
<td style="border: 1px solid black;padding: .2em;">11</td>
<td style="border: 1px solid black;padding: .2em;">C13</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">14</td>
<td style="border: 1px solid black;padding: .2em;">E20</td>
<td style="border: 1px solid black;padding: .2em;">13</td>
<td style="border: 1px solid black;padding: .2em;">D13</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">16</td>
<td style="border: 1px solid black;padding: .2em;">F19</td>
<td style="border: 1px solid black;padding: .2em;">15</td>
<td style="border: 1px solid black;padding: .2em;">E13</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">18</td>
<td style="border: 1px solid black;padding: .2em;">F20</td>
<td style="border: 1px solid black;padding: .2em;">17</td>
<td style="border: 1px solid black;padding: .2em;">A14</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">20</td>
<td style="border: 1px solid black;padding: .2em;">GND</td>
<td style="border: 1px solid black;padding: .2em;">19</td>
<td style="border: 1px solid black;padding: .2em;">C14</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">22</td>
<td style="border: 1px solid black;padding: .2em;">RESET</td>
<td style="border: 1px solid black;padding: .2em;">21</td>
<td style="border: 1px solid black;padding: .2em;">D14</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">24</td>
<td style="border: 1px solid black;padding: .2em;">GND</td>
<td style="border: 1px solid black;padding: .2em;">23</td>
<td style="border: 1px solid black;padding: .2em;">GND</td>
</tr>
</table>
<br/><h1 id="rpi_setup">rpi setup</h1>
<p>
enable spi, i2c in raspi-config</p>
<pre>
pi@trilby:~/linux-gpio-pinout $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
</pre>
<br/><p>
44 - example i2c device in fpga<br/>
68 - rtc</p>
<h2 id="rtc">rtc</h2>
<pre>
root@trilby:/home/pi# echo ds1307 0x68 &gt; /sys/class/i2c-adapter/i2c-1/new_device
root@trilby:/home/pi#
[Fri Dec 24 15:02:31 2021] i2c i2c-1: new_device: Instantiated device ds1307 at 0x68
[Fri Dec 24 15:02:31 2021] rtc-ds1307 1-0068: registered as rtc0
[Fri Dec 24 15:02:31 2021] rtc-ds1307 1-0068: setting system clock to 2000-01-01T02:29:49 UTC (946693789)

root@trilby:/home/pi# hwclock -r
2021-12-24 15:02:37.028752+00:00

</pre>
<br/><h2 id="openocd">openocd</h2>
<pre>
pi@trilby:~/openocd-rpi2-stm32 $ grep -v '^#' trilby.cfg

adapter driver bcm2835gpio

bcm2835gpio_peripheral_base 0x3F000000

bcm2835gpio_speed_coeffs 146203 36

bcm2835gpio_jtag_nums 23 27 22 24

adapter speed 50
transport select jtag

pi@trilby:~/openocd-rpi2-stm32 $ openocd -f trilby.cfg
Open On-Chip Debugger 0.11.0-rc2
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
jtag
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 50 kHz
Warn : There are no enabled taps.  AUTO PROBING MIGHT NOT WORK!!
Info : JTAG tap: auto0.tap tap/device found: 0x41112043 (mfg: 0x021 (Lattice Semi.), part: 0x1112, ver: 0x4)
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x41112043"
Error: IR capture error at bit 2, saw 0x3fffffffffffff05 not 0x...3
Warn : Bypassing JTAG setup events due to errors
Warn : gdb services need one or more targets defined



</pre>
</div>
<hr/><div>Attachments: Trilby2V23PUBLIC.pdf</div></div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/index.cgi?trilby</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2021-12-31T16:35:03Z</updated>
  </entry>
</feed>
