1 ============================================== 2 spi_butterfly - parport-to-butterfly adapter d 3 ============================================== 4 5 This is a hardware and software project that i 6 a parallel port adapter cable, together with a 7 firmware for user interfacing and/or sensors. 8 battery powered card with an AVR microcontroll 9 sensors, LCD, flash, toggle stick, and more. 10 develop firmware for this, and flash it using 11 12 You can make this adapter from an old printer 13 directly to the Butterfly. Or (if you have th 14 can come up with something fancier, providing 15 Butterfly and the printer port, or with a bett 16 signal pins from the printer port. Or for tha 17 similar cables to talk to many AVR boards, eve 18 19 This is more powerful than "ISP programming" c 20 SPI protocol drivers interact with the AVR, an 21 issue interrupts to them. Later, your protoco 22 easily with a "real SPI controller", instead o 23 24 25 The first cable connections will hook Linux up 26 AVR and a DataFlash chip; and to the AVR reset 27 need to reflash the firmware, and the pins are 28 connector pins (used also on non-Butterfly AVR 29 side this is like "sp12" programming cables. 30 31 ====== ============= ============ 32 Signal Butterfly Parport (DB- 33 ====== ============= ============ 34 SCK J403.PB1/SCK pin 2/D0 35 RESET J403.nRST pin 3/D1 36 VCC J403.VCC_EXT pin 8/D6 37 MOSI J403.PB2/MOSI pin 9/D7 38 MISO J403.PB3/MISO pin 11/S7,nB 39 GND J403.GND pin 23/GND 40 ====== ============= ============ 41 42 Then to let Linux master that bus to talk to t 43 (a) flash new firmware that disables SPI (set 44 by clearing PORTB.[0-3]); (b) configure the mt 45 (c) cable in the chipselect. 46 47 ====== ============ ============ 48 Signal Butterfly Parport (DB- 49 ====== ============ ============ 50 VCC J400.VCC_EXT pin 7/D5 51 SELECT J400.PB0/nSS pin 17/C3,nS 52 GND J400.GND pin 24/GND 53 ====== ============ ============ 54 55 Or you could flash firmware making the AVR int 56 DataFlash in reset) and tweak the spi_butterfl 57 the driver for your custom SPI-based protocol. 58 59 The "USI" controller, using J405, can also be 60 That would let you talk to the AVR using custo 61 while letting either Linux or the AVR use the 62 of spare parport pins to wire this one up, suc 63 64 ====== ============= ============ 65 Signal Butterfly Parport (DB- 66 ====== ============= ============ 67 SCK J403.PE4/USCK pin 5/D3 68 MOSI J403.PE5/DI pin 6/D4 69 MISO J403.PE6/DO pin 12/S5,nP 70 GND J403.GND pin 22/GND 71 72 IRQ J402.PF4 pin 10/S6,AC 73 GND J402.GND(P2) pin 25/GND 74 ====== ============= ============
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.