SlideShare a Scribd company logo
1 of 19
Download to read offline
Sviluppo di un driver di periferica per
un sottosistema di conversione A/D
su piattaforma embedded
UNIVERSITA’ DEGLI STUDI DI TRIESTE
FACOLTA’ DI INGEGNERIA
Dipartimento di Ingegneria e Architettura
Corso di laurea ingegneria dell'informazione
Laureando:
Fulvio VASCOTTO
Relatore:
Prof. Enzo MUMOLO
Motivazioni
• Il Sincrotrone Elettra contiene moltissimi dispositivi
hardware che devono essere controllati
• Il controllo è fatto tipicamente con PLC e sistemi
modulari di elevato costo
• Attualmente esistono molti sistemi embedded di
basso costo basati su architettura ARM con SO
Linux
• È stato proposto di sostituire parte di questi sistemi
complessi con gli attuali sistemi embedded
Introduzione
• Un gruppo di sviluppatori di Elettra ha progettato e
realizzato una scheda contenente un sistema
embedded e convertitori A/D e D/A ad alte
prestazioni
• Lo scopo della tesi è stato scrivere i device drivers
per configurare e utilizzare il convertitore A/D
• Le specifiche di acquisizione dei dati sono:
• Risoluzione 24 bit
• Frequenza di campionamento 52734 Hz
• Acquisizione di campioni contigui
Strumenti HW utilizzati
• Scheda di sviluppo
• BeagleBone
Strumenti HW utilizzati
• Convertitore A/D Texas Instruments ADS1271
max. 105 kSps
24 bit
• Convertitore D/A Analog Devices AD5791
Schema a blocchi del sistema
Principi di funzionamento del
convertitore A/D
Strumenti SW utilizzati
• Distribuzione Linux Ubuntu 12.04.3 LTS distribuita
da armhf.com
• Compilatore GNU GCC per la parte di
compilazione driver
• Cross-compilatore PASM fornito dalla Texas
Instrument per il sistema Programmable Realtime
Unit (PRU)
Software sviluppato
A. Device driver di configurazione SPI in C
B. Estensione del driver in C con lettura dal
convertitore
C. Device driver di programmazione PRU in C
D. Programma in assembly PRU
Architettura software del driver
di configurazione SPI
• Device driver a caratteri bbSPIconf
• Comandi ioctl per lettura/scrittura registri SPI
• Interfaccia procfs per informazioni sullo stato del
sottosistema SPI
Architettura software del driver di
configurazione esteso a lettura
• Device driver a caratteri bbSPI
• Implementazione di lettura con modalità polling
• Implementazione di lettura utilizzando interrupt
Architettura software del driver
di programmazione PRU
• Device driver a caratteri ADC_PRU
• Comandi ioctl per programmazione e attivazione
PRUSS
• Gestione interrupt e acquisizione letture da PRU
Architettura software del
programma di lettura PRU
• Programma in assembly di lettura SPI
start:
read 2048 samples
send interrupt to driver
wait for interrupt ACK
GOTO start
Misura sperimentale di rumore
del convertitore A/D
0
2000
4000
6000
8000
10000
12000
14000
Valore del campione
Occorrenze
Misure sperimentali di tempo:
Polling
Misure sperimentali di tempo:
PRU
Misure sperimentali di tempo
per lettura 2048 campioni
0
10
20
30
40
50
60
70
80
90
Tempo di lettura [ms]
Occorrenze
Applicazioni
• Monitoraggio e controllo di alimentatori
di potenza
Conclusioni
I lavoro di tesi ha prodotto:
• un device driver di configurazione e lettura
SPI
• un device driver di programmazione del PRU
• un programma in assembly per il PRU
• I risultati sperimentali dimostrano che il
sistema funziona secondo le specifiche

More Related Content

Recently uploaded

Esperimenti_laboratorio di fisica per la scuola superiore
Esperimenti_laboratorio di fisica per la scuola superioreEsperimenti_laboratorio di fisica per la scuola superiore
Esperimenti_laboratorio di fisica per la scuola superiorevaleriodinoia35
 
Ticonzero news 148.pdf aprile 2024 Terza cultura
Ticonzero news 148.pdf aprile 2024 Terza culturaTiconzero news 148.pdf aprile 2024 Terza cultura
Ticonzero news 148.pdf aprile 2024 Terza culturaPierLuigi Albini
 
XI Lezione - Arabo LAR Giath Rammo @ Libera Accademia Romana
XI Lezione - Arabo LAR Giath Rammo @ Libera Accademia RomanaXI Lezione - Arabo LAR Giath Rammo @ Libera Accademia Romana
XI Lezione - Arabo LAR Giath Rammo @ Libera Accademia RomanaStefano Lariccia
 
lezione di fisica_I moti nel piano_Amaldi
lezione di fisica_I moti nel piano_Amaldilezione di fisica_I moti nel piano_Amaldi
lezione di fisica_I moti nel piano_Amaldivaleriodinoia35
 
IL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla Cresima
IL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla CresimaIL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla Cresima
IL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla CresimaRafael Figueredo
 
La seconda guerra mondiale per licei e scuole medie
La seconda guerra mondiale per licei e scuole medieLa seconda guerra mondiale per licei e scuole medie
La seconda guerra mondiale per licei e scuole medieVincenzoPantalena1
 
XIII Lezione - Arabo G.Rammo @ Libera Accademia Romana
XIII Lezione - Arabo G.Rammo @ Libera Accademia RomanaXIII Lezione - Arabo G.Rammo @ Libera Accademia Romana
XIII Lezione - Arabo G.Rammo @ Libera Accademia RomanaStefano Lariccia
 
Corso di digitalizzazione e reti per segretario amministrativo
Corso di digitalizzazione e reti per segretario amministrativoCorso di digitalizzazione e reti per segretario amministrativo
Corso di digitalizzazione e reti per segretario amministrativovaleriodinoia35
 

Recently uploaded (8)

Esperimenti_laboratorio di fisica per la scuola superiore
Esperimenti_laboratorio di fisica per la scuola superioreEsperimenti_laboratorio di fisica per la scuola superiore
Esperimenti_laboratorio di fisica per la scuola superiore
 
Ticonzero news 148.pdf aprile 2024 Terza cultura
Ticonzero news 148.pdf aprile 2024 Terza culturaTiconzero news 148.pdf aprile 2024 Terza cultura
Ticonzero news 148.pdf aprile 2024 Terza cultura
 
XI Lezione - Arabo LAR Giath Rammo @ Libera Accademia Romana
XI Lezione - Arabo LAR Giath Rammo @ Libera Accademia RomanaXI Lezione - Arabo LAR Giath Rammo @ Libera Accademia Romana
XI Lezione - Arabo LAR Giath Rammo @ Libera Accademia Romana
 
lezione di fisica_I moti nel piano_Amaldi
lezione di fisica_I moti nel piano_Amaldilezione di fisica_I moti nel piano_Amaldi
lezione di fisica_I moti nel piano_Amaldi
 
IL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla Cresima
IL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla CresimaIL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla Cresima
IL CHIAMATO ALLA CONVERSIONE - catechesi per candidati alla Cresima
 
La seconda guerra mondiale per licei e scuole medie
La seconda guerra mondiale per licei e scuole medieLa seconda guerra mondiale per licei e scuole medie
La seconda guerra mondiale per licei e scuole medie
 
XIII Lezione - Arabo G.Rammo @ Libera Accademia Romana
XIII Lezione - Arabo G.Rammo @ Libera Accademia RomanaXIII Lezione - Arabo G.Rammo @ Libera Accademia Romana
XIII Lezione - Arabo G.Rammo @ Libera Accademia Romana
 
Corso di digitalizzazione e reti per segretario amministrativo
Corso di digitalizzazione e reti per segretario amministrativoCorso di digitalizzazione e reti per segretario amministrativo
Corso di digitalizzazione e reti per segretario amministrativo
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Vascotto presentazione prelaurea

  • 1. Sviluppo di un driver di periferica per un sottosistema di conversione A/D su piattaforma embedded UNIVERSITA’ DEGLI STUDI DI TRIESTE FACOLTA’ DI INGEGNERIA Dipartimento di Ingegneria e Architettura Corso di laurea ingegneria dell'informazione Laureando: Fulvio VASCOTTO Relatore: Prof. Enzo MUMOLO
  • 2. Motivazioni • Il Sincrotrone Elettra contiene moltissimi dispositivi hardware che devono essere controllati • Il controllo è fatto tipicamente con PLC e sistemi modulari di elevato costo • Attualmente esistono molti sistemi embedded di basso costo basati su architettura ARM con SO Linux • È stato proposto di sostituire parte di questi sistemi complessi con gli attuali sistemi embedded
  • 3. Introduzione • Un gruppo di sviluppatori di Elettra ha progettato e realizzato una scheda contenente un sistema embedded e convertitori A/D e D/A ad alte prestazioni • Lo scopo della tesi è stato scrivere i device drivers per configurare e utilizzare il convertitore A/D • Le specifiche di acquisizione dei dati sono: • Risoluzione 24 bit • Frequenza di campionamento 52734 Hz • Acquisizione di campioni contigui
  • 4. Strumenti HW utilizzati • Scheda di sviluppo • BeagleBone
  • 5. Strumenti HW utilizzati • Convertitore A/D Texas Instruments ADS1271 max. 105 kSps 24 bit • Convertitore D/A Analog Devices AD5791
  • 6. Schema a blocchi del sistema
  • 7. Principi di funzionamento del convertitore A/D
  • 8. Strumenti SW utilizzati • Distribuzione Linux Ubuntu 12.04.3 LTS distribuita da armhf.com • Compilatore GNU GCC per la parte di compilazione driver • Cross-compilatore PASM fornito dalla Texas Instrument per il sistema Programmable Realtime Unit (PRU)
  • 9. Software sviluppato A. Device driver di configurazione SPI in C B. Estensione del driver in C con lettura dal convertitore C. Device driver di programmazione PRU in C D. Programma in assembly PRU
  • 10. Architettura software del driver di configurazione SPI • Device driver a caratteri bbSPIconf • Comandi ioctl per lettura/scrittura registri SPI • Interfaccia procfs per informazioni sullo stato del sottosistema SPI
  • 11. Architettura software del driver di configurazione esteso a lettura • Device driver a caratteri bbSPI • Implementazione di lettura con modalità polling • Implementazione di lettura utilizzando interrupt
  • 12. Architettura software del driver di programmazione PRU • Device driver a caratteri ADC_PRU • Comandi ioctl per programmazione e attivazione PRUSS • Gestione interrupt e acquisizione letture da PRU
  • 13. Architettura software del programma di lettura PRU • Programma in assembly di lettura SPI start: read 2048 samples send interrupt to driver wait for interrupt ACK GOTO start
  • 14. Misura sperimentale di rumore del convertitore A/D 0 2000 4000 6000 8000 10000 12000 14000 Valore del campione Occorrenze
  • 15. Misure sperimentali di tempo: Polling
  • 17. Misure sperimentali di tempo per lettura 2048 campioni 0 10 20 30 40 50 60 70 80 90 Tempo di lettura [ms] Occorrenze
  • 18. Applicazioni • Monitoraggio e controllo di alimentatori di potenza
  • 19. Conclusioni I lavoro di tesi ha prodotto: • un device driver di configurazione e lettura SPI • un device driver di programmazione del PRU • un programma in assembly per il PRU • I risultati sperimentali dimostrano che il sistema funziona secondo le specifiche