Elettronica digitale with Example

404 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
404
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Elettronica digitale with Example

  1. 1. PARTE PRIMAComponenti baseResistoriCondensatoriDiodiTransistorPorte logiche Claudyus
  2. 2. Componente - Resistore  V=R*Ihttp://it.wikipedia.org/wiki/Resistore
  3. 3. Comp. passivi – Condensatorehttp://it.wikipedia.org/wiki/Capacitore
  4. 4. Componente - Diodo http://it.wikipedia.org/wiki/Diodo http://it.wikipedia.org/wiki/Giunzione_p-n
  5. 5. Componente – Diodo LED (Vin – 1,5)R = --------------- 0,02Vin R GND
  6. 6. Componente - Transistor C B E
  7. 7. Il primo circuito - Porta NOT IN OUT IN OUT 0 1 1 0
  8. 8. Comp. attivi – Porte logiche
  9. 9. Uno sbroglio http://www.youtube.com/watch?v=8HJrzaW5B3g http://www.youtube.com/watch?v=FkHpjzOhzxA http://www.youtube.com/watch?v=gyRw51EnuQ0
  10. 10. PARTE SECONDA Microcontrollori Processori embedded LinuxIP SERVER:192.168.9.1 USER:root PASS:test Autore: Claudio Mignanti
  11. 11. Architetture e porte - PIC16F84 PA 05H PB 06H
  12. 12. Architetture e porte–ATmega328(aka Arduino)
  13. 13. Architetture e porte–AT91SAM9G20 (aka NetusG20)
  14. 14. Registri GPIOAT91_PIN_PA0 (PIN_BASE + 0x00 + 0)...AT91_PIN_PA31 (PIN_BASE + 0x00 + 31)...AT91_PIN_PE0 (PIN_BASE + 0x80 + 0)…AT91_PIN_PE31 (PIN_BASE + 0x80 + 31)Ref: arch_arm_mach-at91_include_mach_gpio.h.pdf
  15. 15. Layer API GPIO - USER SPACE USER SPACE USER SPACE PROGRAM PROGRAM PROGRAM I2C SPI GPIO /DEV/I2C-0 /DEV/SPI-TEST /DEV/GPIO SYSFS I2C API SPI GPIO API AT91 MUXER LINUX KERNEL CPU
  16. 16. InterfaccieDriver kernel GPIOhttps://dev.openwrt.org/browser/trunk/target/linux/generic-2.6/files/drivers/char/gpio_dev.cEsempio di programma user-space gpiohttps://dev.openwrt.org/browser/trunk/package/gpioctl/src/main.cDriver SPIhttp://lxr.linux.no/#linux+v2.6.32/drivers/spi/spidev.cEsempio di programma user-space spihttp://lxr.linux.no/#linux+v2.6.32/Documentation/spi/spidev_test.cDriver I2Chttp://lxr.linux.no/#linux+v2.6.32/drivers/i2c/i2c-dev.cEsempio di programma i2c userspacehttp://netus.acmesystems.it/doku.php?id=tutorial:srf02
  17. 17. Esempio GPIOecho 82 > /sys/class/gpio/exportecho out > /sys/class/gpio/gpio82/directionecho 1 > /sys/class/gpio/gpio82/valueecho 0 > /sys/class/gpio/gpio82/value
  18. 18. DISPLAY1 2 3 4 PIN NOME KERNELID 1 J7.3 82 2 J7.5 80 3 J7.7 66 4 J7.9 64 5 J7.35 60 6 J7.36 59 7 J7.37 58 GND J7.1|2 NC 5 6 7 GND
  19. 19. Stepper motor N SRef: http://wiki.ninux.org/cnc
  20. 20. PARTE TERZAProtocolli di comunicazione on boardSeriale, I2C, SPI, 1-wire Autore: Claudio Mignanti
  21. 21. Comunicazione on board 0 1 0 0 1 0 1 1 CHIP D7 D0 CHIP
  22. 22. Seriale0 1 0 0 1 0 1 1 TX RX CHIP
  23. 23. I2C
  24. 24. SPI
  25. 25. PARTE QUARTAVhdl e FPGA Autore: Claudio Mignanti

×