# Symbol definition of AT90USB1287/1286/647/646 (64-lead QFN or TQFP case) for gschem/gEDA
# S. Salewski, 28-OCT-2007
# File: AT90USB1287-1.txt
# 7593D-AVR-07/06
# The Python script "tragesym" is used to convert this textual symbol definition to a symbol
# usage: tragesym AT90USB1287-1.txt AT90USB1287-1.sym
# This will result in a basic symbol which may need some graphical tuning by gschem

# tragesym options

[options]
# wordswap swaps labels if the pin is on the right side and looks like this:
#   "PB1 (CLK)". That's useful for micro controller port labels
# rotate_labels rotates the pintext of top and bottom pins
#   this is useful for large symbols like FPGAs with more than 100 pins
# sort_labels will sort the pins by it's labels
#   useful for address ports, busses, ...
wordswap=yes
rotate_labels=yes
sort_labels=no
generate_pinseq=yes
sym_width=9000
pinwidthvertical=300
pinwidthhorizontal=300

[geda_attr]
# name will be printed in the top of the symbol
# if you have a device with slots, you'll have to use slot= and slotdef=
# use comment= if there are special information you want to add
version=20060113 1
name=AT90USB1287(1286/647/646)64-lead QFN or TQFP
device=AT90USB1287
refdes=U?
footprint=TQFP-64-14
description=AT90USB 1287/1286/647/646 with QFN or TQFP footprint
documentation=http://www.atmel.com
author=Stefan Salewski
dist-license=GPL
use-license=unlimited
numslots=0
#slot=1
#slotdef=1:
#slotdef=2:
#slotdef=3:
#slotdef=4:
comment=generated with Python script tragesym

[pins]
# tabseparated list of pin descriptions
# ----------------------------------------
# pinnr is the physical number of the pin
# seq is the pinseq= attribute, leave it blank if it doesn't matter
# type can be (in, out, io, oc, oe, pas, tp, tri, clk, pwr)
# style can be (line,dot,clk,dotclk,none). none if only want to add a net
# posit. can be (l,r,t,b) or empty for nets
# net specifies the name of the net. Vcc or GND for example.
# label represents the pinlabel.
#	negation lines can be added with "\_" example: \_enable\_ 
#	if you want to write a "\" use "\\" as escape sequence
#-----------------------------------------------------
#pinnr	seq	type	style	posit.	net	label	
#-----------------------------------------------------
1		io	line	l		PE6 (INT.6/AIN.0)
2		io	line	l		PE7 (INT.7/AIN.1/UVcon)
3		pwr	line	l		UVcc
4		io	line	l		D-
5		io	line	l		D+
6		pwr	line	l		UGnd
7		pwr	line	l		UCap
8		pwr	line	l		VBus
9		io	line	l		PE3 (IUID)
10		io	line	l		PB0 (SS/PCINT0)
11		io	line	l		PB1 (PCINT1/SCLK)
12		io	line	l		PB2 (PDI/PCINT2/MOSI)
13		io	line	l		PB3 (PDO/PCINT3/MISO)
14		io	line	l		PB4 (PCINT4/OC.2A)
15		io	line	l		PB5 (PCINT5/OC.1A)
16		io	line	l		PB6 (PCINT6/OC.1B)
17		io	line	b		PB7 (PCINT7/OC.0A/OC.1C)
18		io	line	b		PE4 (INT4/TOSC1)
19		io	line	b		PE5 (INT.5/TOSC2)
20		in	line	b		\_RESET
21		pwr	line	b		VCC
22		pwr	line	b		GND
23		io	line	b		XTAL2
24		io	line	b		XTAL1
25		io	line	b		PD0 (OC0B/SCL/INT0)
26		io	line	b		PD1 (OC2B/SDA/INT1)
27		io	line	b		PD2 (RXD1/INT2)
28		io	line	b		PD3 (TXD1/INT3)
29		io	line	b		PD4 (ICP1)
30		io	line	b		PD5 (XCK1)
31		io	line	b		PD6 (T1)
32		io	line	b		PD7 (T0)
33		io	line	r		PE0 (\_WR)
34		io	line	r		PE1 (\_RD)
35		io	line	r		PC0 (A8)
36		io	line	r		PC1 (A9)
37		io	line	r		PC2 (A10)
38		io	line	r		PC3 (A11/T.3)
39		io	line	r		PC4 (A12/OC.3C)
40		io	line	r		PC5 (A13/OC.3B)
41		io	line	r		PC6 (A14/OC.3A)
42		io	line	r		PC7 (A15/IC.3/CLK0)
43		io	line	r		PE2 (ALE/\_HWB)
44		io	line	r		PA7 (AD7)
45		io	line	r		PA6 (AD6)
46		io	line	r		PA5 (AD5)
47		io	line	r		PA4 (AD4)
48		io	line	r		PA3 (AD3)
49		io	line	t		PA2 (AD2)
50		io	line	t		PA1 (AD1)
51		io	line	t		PA0 (AD0)
52		pwr	line	t		VCC
53		pwr	line	t		GND
54		io	line	t		PF7 (ADC7/TDI)
55		io	line	t		PF6 (ADC6/TDO)
56		io	line	t		PF5 (ADC5/TMS)
57		io	line	t		PF4 (ADC4/TCK)
58		io	line	t		PF3 (ADC3)
59		io	line	t		PF2 (ADC2)
60		io	line	t		PF1 (ADC1)
61		io	line	t		PF0 (ADC0)
62		io	line	t		AREF
63		pwr	line	t		GND
64		pwr	line	t		AVCC

