{"id":2208,"date":"2022-05-06T10:12:28","date_gmt":"2022-05-06T10:12:28","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=2208"},"modified":"2023-09-18T13:52:24","modified_gmt":"2023-09-18T13:52:24","slug":"spi-the-serial-peripheral-interface","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/it\/spi-the-serial-peripheral-interface\/","title":{"rendered":"SPI - L'interfaccia seriale periferica"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image-1024x576.png\" alt=\"Tutto sull&#039;immagine del titolo SPI\" class=\"wp-image-5345\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image-1024x576.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image-300x169.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image-768x432.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image-18x10.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">SPI significa Interfaccia Periferica Seriale. Con SPI puoi scambiare dati in modo incredibilmente veloce tra due dispositivi. E hai bisogno solo di quattro fili.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Caratteristiche SPI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">L'interfaccia periferica seriale \u00e8 un'interfaccia di comunicazione sincrona per brevi distanze. Sincrona significa che i dati sono inviati sotto forma di blocchi o frame e i due dispositivi sono sincronizzati tramite un orologio. \u00c8 un'interfaccia seriale quindi i dispositivi inviano un bit alla volta (a differenza della comunicazione parallela). Uno dei dispositivi \u00e8 il \"Master\" e detta il ciclo di clock. L'altro dispositivo \u00e8 lo \"Slave\". Di solito la comunicazione \u00e8 in modalit\u00e0 full duplex. Quindi entrambi i dispositivi possono inviare dati, anche allo stesso tempo.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-1024x275.jpg\" alt=\"Caratteristiche SPI\" class=\"wp-image-2211\" style=\"width:676px;height:181px\" width=\"676\" height=\"181\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-1024x275.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-300x81.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-768x207.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-1536x413.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-2048x551.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Characteristics-18x5.jpg 18w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><figcaption class=\"wp-element-caption\">Caratteristiche SPI<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Cablaggio<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Avete bisogno solo di quattro fili per la connessione, quindi \u00e8 molto facile da installare.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-1024x497.jpg\" alt=\"Cablaggio SPI\" class=\"wp-image-2217\" style=\"width:665px;height:322px\" width=\"665\" height=\"322\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-1024x497.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-300x146.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-768x372.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-1536x745.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-2048x993.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Wiring-18x9.jpg 18w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><figcaption class=\"wp-element-caption\">Cablaggio SPI<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Ci sono quattro pin di cui avete bisogno per una connessione SPI: il clock seriale (SCL o SCLK), il Master Output Slave Input (MOSI), il Master Input Slave Output (MISO) e il pin Chip Select o Slave Select (CS o SS).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Collegare i pin corrispondenti sui dispositivi Master e Slave.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Un dispositivo Master pu\u00f2 connettersi a pi\u00f9 dispositivi Slave, purch\u00e9 abbia abbastanza pin di selezione del chip. Il Master controlla quale dispositivo Slave riceve i dati impostando il pin chip select corrispondente su LOW o HIGH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Il Raspberry Pi 4 ha 7 bus SPI. Se vuoi sapere come accedere ai bus SPI da 1 a 6 allora lascia un commento qui sotto.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Diamo un'occhiata al <a href=\"https:\/\/www.raspberrypi.com\/documentation\/computers\/raspberry-pi.html#spi-overview\">Bus SPI 0<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\" id=\"raspberry-pi-pinout\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-1024x584.jpg\" alt=\"Pinout di Raspberry Pi\" class=\"wp-image-2218\" style=\"width:659px;height:376px\" width=\"659\" height=\"376\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-1024x584.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-300x171.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-768x438.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-1536x876.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-2048x1167.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Pinout-18x10.jpg 18w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><figcaption class=\"wp-element-caption\">Pinout di Raspberry Pi<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Come potete vedere nel <a href=\"#raspberry-pi-pinout\">grafico della piedinatura<\/a> sopra il pin 23 \u00e8 il pin SCLK sul Raspberry Pi. MISO \u00e8 il pin 21 e MOSI \u00e8 il pin 19.  Il bus 0 ha due pin CS che sono i pin 24 e 26.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Se volete usare il bus 0, assicuratevi di abilitarlo prima.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/Enable-SPI.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Eseguire il comando<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code data-no-translation=\"\">sudo raspi-config<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Poi selezionare <strong>3 Opzioni di interfaccia<\/strong> e fare clic su <strong>I4 SPI<\/strong>. Infine premere <strong>S\u00ec<\/strong> e <strong>Ok<\/strong> per abilitare SPI.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modalit\u00e0 SPI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ci sono quattro diverse modalit\u00e0 di trasmissione dei dati che dovreste conoscere. Si differenziano per la polarit\u00e0 del clock e la fase del clock.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"310\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-1024x310.jpg\" alt=\"Modalit\u00e0 SPI\" class=\"wp-image-2216\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-1024x310.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-300x91.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-768x233.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-1536x465.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-2048x620.jpg 2048w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Modes-18x5.jpg 18w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Modalit\u00e0 SPI<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Entrambi possono essere 0 o 1. Per quanto riguarda la polarit\u00e0 del clock, uno 0 significa uno stato di inattivit\u00e0 LOW e un 1 significa uno stato di inattivit\u00e0 HIGH. Una fase di clock 0 significa che i dati vengono inviati sul fronte di discesa, mentre un 1 significa che i dati vengono inviati sul fronte di salita. Prima di poter inviare dati, il Master e lo Slave devono accordarsi su una delle quattro modalit\u00e0.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vantaggi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I maggiori vantaggi sono l'alta velocit\u00e0, la facilit\u00e0 di impostazione dell'hardware e del software e la bassa richiesta di energia.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Advantages-1024x557.jpg\" alt=\"Vantaggi\" class=\"wp-image-2215\" style=\"width:369px;height:200px\" width=\"369\" height=\"200\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Advantages-1024x557.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Advantages-300x163.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Advantages-768x418.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Advantages-18x10.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Advantages.jpg 1104w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><figcaption class=\"wp-element-caption\">Vantaggi<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Svantaggi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">L'interfaccia periferica seriale non \u00e8 realmente estensibile in termini di gamma e numero di dispositivi, poich\u00e9 il Master necessita di un pin di selezione del chip per ogni dispositivo. Inoltre non c'\u00e8 alcun hardware di riconoscimento Slave, quindi il Master non sa se i dati sono stati ricevuti da qualcuno.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Disadvantages-1024x558.jpg\" alt=\"Svantaggi\" class=\"wp-image-2214\" style=\"width:366px;height:199px\" width=\"366\" height=\"199\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Disadvantages-1024x558.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Disadvantages-300x163.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Disadvantages-768x418.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Disadvantages-18x10.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/SPI-Disadvantages.jpg 1103w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><figcaption class=\"wp-element-caption\">Svantaggi<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Casi d'uso<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">La maggior parte dei dispositivi SPI sono dispositivi incorporati o <a href=\"https:\/\/buyzero.de\/products\/1-3-spi-colour-lcd-240x240-breakout?_pos=1&amp;_sid=2104ef18d&amp;_ss=r\">Display LCD<\/a>. In generale, \u00e8 utilizzato in aree in cui sono richiesti pochi dispositivi e una trasmissione veloce dei dati.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Permette al Raspberry Pi di interfacciare tutti i tipi di <a href=\"https:\/\/buyzero.de\/search?type=product&amp;options%5Bprefix%5D=last&amp;options%5Bunavailable_products%5D=last&amp;q=SPI\">sensori e dispositivi<\/a>. Quasi tutti i dispositivi compatibili con Raspberry Pi usano l'interfaccia SPI o I2C.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anche le schede SD usano l'interfaccia SPI, quindi anche il lettore di schede SD sul Raspberry Pi ha alcuni pin interni MISO e MOSI.<\/p>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fit%2Fspi-the-serial-peripheral-interface%2F&text=SPI%20%E2%80%93%20The%20Serial%20Peripheral%20Interface\" title=\"Condividi su X\" aria-label=\"Condividi su X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">condividi<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fit%2Fspi-the-serial-peripheral-interface%2F\" title=\"Condividi su Facebook\" aria-label=\"Condividi su Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">condividi<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fit%2Fspi-the-serial-peripheral-interface%2F&text=SPI%20%E2%80%93%20The%20Serial%20Peripheral%20Interface\" title=\"Condividi su Telegram\" aria-label=\"Condividi su Telegram\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">condividi<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fit%2Fspi-the-serial-peripheral-interface%2F\" title=\"Condividi su Reddit\" aria-label=\"Condividi su Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">condividi<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>SPI significa Interfaccia Periferica Seriale. Con SPI puoi scambiare dati in modo incredibilmente veloce tra due dispositivi. E hai bisogno solo di quattro fili. Caratteristiche SPI L'interfaccia periferica seriale \u00e8 un'interfaccia di comunicazione sincrona per brevi distanze. Sincrona significa che i dati vengono inviati sotto forma di blocchi o frame e i due dispositivi sono...<\/p>","protected":false},"author":3,"featured_media":5345,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196],"tags":[199,200,202,201,204,189,203,188,198,197],"class_list":["post-2208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interfaces","tag-4-wire-interface","tag-4-wire-spi","tag-hardware","tag-interface","tag-knowledge","tag-pi","tag-rasbperry-pi","tag-raspberry","tag-serial-peripheral-interface","tag-spi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SPI - The Serial Peripheral Interface | PiCockpit<\/title>\n<meta name=\"description\" content=\"SPI means Serial Peripheral Interface. With SPI you can exchange data blazingly fast between two devices. And you only need four wires.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/it\/spi-the-serial-peripheral-interface\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SPI - The Serial Peripheral Interface | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"SPI means Serial Peripheral Interface. With SPI you can exchange data blazingly fast between two devices. And you only need four wires.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/it\/spi-the-serial-peripheral-interface\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-06T10:12:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-18T13:52:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nathan Busler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nathan Busler\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/\"},\"author\":{\"name\":\"Nathan Busler\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/e38fef75134e5e54175b2615a8c3eb47\"},\"headline\":\"SPI &#8211; The Serial Peripheral Interface\",\"datePublished\":\"2022-05-06T10:12:28+00:00\",\"dateModified\":\"2023-09-18T13:52:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/\"},\"wordCount\":564,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/everything-about-spi-title-image.png\",\"keywords\":[\"4-Wire-Interface\",\"4-Wire-SPI\",\"Hardware\",\"Interface\",\"Knowledge\",\"Pi\",\"Rasbperry Pi\",\"Raspberry\",\"Serial Peripheral Interface\",\"SPI\"],\"articleSection\":[\"Interfaces\"],\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/\",\"name\":\"SPI - The Serial Peripheral Interface | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/everything-about-spi-title-image.png\",\"datePublished\":\"2022-05-06T10:12:28+00:00\",\"dateModified\":\"2023-09-18T13:52:24+00:00\",\"description\":\"SPI means Serial Peripheral Interface. With SPI you can exchange data blazingly fast between two devices. And you only need four wires.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/everything-about-spi-title-image.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/everything-about-spi-title-image.png\",\"width\":1200,\"height\":675,\"caption\":\"Everything about SPI Title Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/pl\\\/spi-interfejs-serial-peripheral-interface\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interfaces\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/interfaces\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SPI &#8211; The Serial Peripheral Interface\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/e38fef75134e5e54175b2615a8c3eb47\",\"name\":\"Nathan Busler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"caption\":\"Nathan Busler\"},\"sameAs\":[\"https:\\\/\\\/buyzero.de\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/it\\\/author\\\/nathan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SPI - L'interfaccia periferica seriale | PiCockpit","description":"SPI significa Interfaccia Periferica Seriale. Con SPI puoi scambiare dati in modo incredibilmente veloce tra due dispositivi. E hai bisogno solo di quattro fili.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/picockpit.com\/raspberry-pi\/it\/spi-the-serial-peripheral-interface\/","og_locale":"it_IT","og_type":"article","og_title":"SPI - The Serial Peripheral Interface | PiCockpit","og_description":"SPI means Serial Peripheral Interface. With SPI you can exchange data blazingly fast between two devices. And you only need four wires.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/it\/spi-the-serial-peripheral-interface\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2022-05-06T10:12:28+00:00","article_modified_time":"2023-09-18T13:52:24+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png","type":"image\/png"}],"author":"Nathan Busler","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"Scritto da":"Nathan Busler","Tempo di lettura stimato":"4 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/"},"author":{"name":"Nathan Busler","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/e38fef75134e5e54175b2615a8c3eb47"},"headline":"SPI &#8211; The Serial Peripheral Interface","datePublished":"2022-05-06T10:12:28+00:00","dateModified":"2023-09-18T13:52:24+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/"},"wordCount":564,"commentCount":5,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png","keywords":["4-Wire-Interface","4-Wire-SPI","Hardware","Interface","Knowledge","Pi","Rasbperry Pi","Raspberry","Serial Peripheral Interface","SPI"],"articleSection":["Interfaces"],"inLanguage":"it-IT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/","url":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/","name":"SPI - L'interfaccia periferica seriale | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png","datePublished":"2022-05-06T10:12:28+00:00","dateModified":"2023-09-18T13:52:24+00:00","description":"SPI significa Interfaccia Periferica Seriale. Con SPI puoi scambiare dati in modo incredibilmente veloce tra due dispositivi. E hai bisogno solo di quattro fili.","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/05\/everything-about-spi-title-image.png","width":1200,"height":675,"caption":"Everything about SPI Title Image"},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/pl\/spi-interfejs-serial-peripheral-interface\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Interfaces","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/interfaces\/"},{"@type":"ListItem","position":3,"name":"SPI &#8211; The Serial Peripheral Interface"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"PiCockpit","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/e38fef75134e5e54175b2615a8c3eb47","name":"Nathan Busler","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","caption":"Nathan Busler"},"sameAs":["https:\/\/buyzero.de"],"url":"https:\/\/picockpit.com\/raspberry-pi\/it\/author\/nathan\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/posts\/2208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/comments?post=2208"}],"version-history":[{"count":13,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/posts\/2208\/revisions"}],"predecessor-version":[{"id":5347,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/posts\/2208\/revisions\/5347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/media\/5345"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/media?parent=2208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/categories?post=2208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/it\/wp-json\/wp\/v2\/tags?post=2208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}