From f628b56812727bc87da4e3da98322fd4cd12b213 Mon Sep 17 00:00:00 2001 From: Ben Blazak Date: Tue, 13 Mar 2012 23:51:51 -0700 Subject: [PATCH] worked on pin assignments a little; and some other minor updates --- doc/references.md | 3 +++ src/ergodox-firmware.c | 22 ++++++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/doc/references.md b/doc/references.md index 3f7bb32..1b5e078 100644 --- a/doc/references.md +++ b/doc/references.md @@ -23,6 +23,9 @@ -> [powering LEDs] (http://wolfstone.halloweenhost.com/Lighting/litlpo_PoweringLEDs.html) +* [Vcc, Vdd, Vss, etc.] + (http://encyclobeamia.solarbotics.net/articles/vxx.html) + ## Noob C Stuff diff --git a/src/ergodox-firmware.c b/src/ergodox-firmware.c index 604e55d..9ca0081 100644 --- a/src/ergodox-firmware.c +++ b/src/ergodox-firmware.c @@ -28,12 +28,12 @@ /* ---------------------------------------------------------------------------- * Pinouts and Pin assignments - * =========================== * - '+' indicates pin * - 'o' indicates unused pin * - '-'s inserted between some of the pin names for readability * - 'OC**' pins enclosed in parenthesis had lines over them in the pinout * ---------------------------------------------------------------------------- + * ---------------------------------------------------------------------------- * Teensy 2.0 * ========== GND +---.....---+ VCC * SS PB0 + + PF0 ADC0 @@ -94,11 +94,22 @@ * column4 GPB4 +07 22+ GPA2 row2 * column5 GPB5 +08 21+ GPA1 row1 * column6 GPB6 +09 20+ GPA0 row0 - * o10 19+ INTA ?TODO - * power_positive Vdd(Vcc) +11 18+ INTB ?TODO + * o10 19o + * power_positive Vdd(Vcc) +11 18o * I2C SCL +12 17o - * I2C SDA +13 16+ RESET ?TODO - * o14-------15+ ADDR ?TODO + * I2C SDA +13 16+ RESET (see note) + * o14-------15+ ADDR (see note) + * + * notes: + * - ADDR (pin15): Set to 0b000 via + * Vdd(Vcc) -- R1 -- V2 (on ADDR) -- R2 -- Vss(GND) + * where + * Vdd = +5V + * R1 = ?TODO:\ + * V2 = ?TODO: | (see mcp23018 datasheet, pg 11) + * R2 = ?TODO:/ + * - RESET (pin16): Not used by software. Might want to have it available + * somewhere physically just in case though? * ------------------------------------------------------------------------- */ @@ -176,4 +187,3 @@ void main() { init(); } -