Created
November 2, 2013 20:36
-
-
Save apparentlymart/7283209 to your computer and use it in GitHub Desktop.
Prototype circuit definition language. Just brainstorming so far.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import max1234 | |
part MAX1 is max1234 | |
interface I2C: | |
pin DATA | |
pin CLOCK | |
interface SPIBus: | |
pin MISO | |
pin MOSI | |
pin CLK | |
block atmega328p: | |
description "Microcontroller" | |
power_in: | |
VCC | |
AVCC | |
power_out: | |
GND | |
variant PDIP: | |
pin 1 PC6, RST, PCINT14 | |
pin 2 PD0, RXD, PCINT16 | |
pin 3 PD1, TXD, PCINT17 | |
pin 4 PD2, INT0, PCINT18 | |
pin 5 PD3, INT1, PCINT19, OC2B | |
pin 6 PD4, T0, PCINT20, XCK | |
pin 7 VCC | |
pin 8 GND | |
pin 9 PB6, TOSC1, XTAL1, PCINT6 | |
pin 10 PB7, TOSC2, XTAL2, PCINT7 | |
pin 11 PD5, T1, OC0B, PCINT21 | |
pin 12 PD6, AIN0, OC0A, PCINT22 | |
pin 13 PD7, AIN1, PCINT23 | |
pin 14 PB0, ICP1, CLKO, PCINT0 | |
pin 15 PB1, OC1A, PCINT1 | |
pin 16 PB2, SS, OC1B, PCINT2 | |
pin 17 PB3, MOSI, OC2A, PCINT3 | |
pin 18 PB4, MISO, PCINT4 | |
pin 19 PB5, SCK, PCINT5 | |
pin 20 AVCC | |
pin 21 AREF | |
pin 22 GND | |
pin 23 PC0, ADC0, PCINT8 | |
pin 24 PC1, ADC1, PCINT9 | |
pin 25 PC2, ADC2, PCINT10 | |
pin 26 PC3, ADC3, PCINT11 | |
pin 27 PC4, ADC4, SDA, PCINT12 | |
pin 28 PC5, ADC5, SCL, PCINT13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment