Periferal - Waskita Adijarto

Download Report

Transcript Periferal - Waskita Adijarto

Periferal
Ethernet, USB
Ethernet Controller
• Pilihan:
– Periferal eksternal, misal “Microchip ENC28J60”.
Harga ~ Rp 90k
– IC mikrokontroler khusus, misal “Dallas DS80C400
Network Microcontroller”. Harga ~ Rp 200k
Dallas DS80C400
Ethernet Controller
Microchip ENC28J60
Universal Serial Bus
Cara interfacing:
• Menggunakan chip khusus , misal buatan FTDI
• Menggunakan on chip interface
• Menggunakan port I/O (bit banging) dengan
software
Chip USB
• FT-232BL buatan FTDI Rp 65k ~ 85k
Blok Diagram FT-232BL
FTDI Basic Breakout
buatan sparkfun.com
On Chip USB
• Hardware USB ada dalam chip yang sama
dengan mikrokontroler
• Contoh
– Atmel (32117s.pdf)
– Texas Instrument: Stellaris LM3S3748
LM3S3748 Development Board
Development Kit
Blok Diagram
Software Only USB
dengan Port I/O standar
• V-USB:
http://www.obdev.at/products/vusb/index.ht
ml
• USB Tiny
V-USB
• V-USB is a software-only implementation of a
low-speed USB device for Atmel’s AVR®
microcontrollers, making it possible to build
USB hardware with almost any AVR®
microcontroller, not requiring any additional
chip.
• Lisensi: open source & komersial
Lisensi Komersial
Hardware V-USB
USBTiny
• http://www.xs4all.nl/~dicks/avr/usbtiny/
• USBtiny is a software implementation of the USB low-speed
protocol for the Atmel ATtiny microcontrollers. Of course, it
will also work on the ATmega series. The software is written
for an AVR clocked at 12 MHz. At this frequency, each bit on
the USB bus takes 8 clock cycles, and with a lot of trickery,
it is possible to decode and encode the USB waveforms by
software. The USB driver needs approximately 1250 to
1350 bytes of flash space (excluding the optional
identification strings), depending on the configuration and
compiler version, and 46 bytes RAM (excluding stack
space). The C interface consists of 3 to 5 functions,
depending on the configuration.
• Lisensi: GNU
Hardware USB Tiny