aboutsummaryrefslogtreecommitdiff
path: root/Pd_firmware/Pd_firmware.pde
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-24 18:41:06 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-24 18:41:06 +0000
commit3dc0f6ca8531f0763477d79d3542a7bc0447ad9e (patch)
treefc5e6a2e83ec4cc7837a1d408b431bacb7c145ea /Pd_firmware/Pd_firmware.pde
parent59d22b8340ff636f4b0d0776add3c830953e5930 (diff)
updated protocol docs
svn path=/trunk/externals/hardware/arduino/; revision=5116
Diffstat (limited to 'Pd_firmware/Pd_firmware.pde')
-rw-r--r--Pd_firmware/Pd_firmware.pde52
1 files changed, 34 insertions, 18 deletions
diff --git a/Pd_firmware/Pd_firmware.pde b/Pd_firmware/Pd_firmware.pde
index acf96dc..e917fe1 100644
--- a/Pd_firmware/Pd_firmware.pde
+++ b/Pd_firmware/Pd_firmware.pde
@@ -12,6 +12,14 @@
* @location: STEIM, Amsterdam, Netherlands
*/
+/* TODO
+ *
+ * - get digitalInput working
+ * - add pulseIn functionality
+ * - redesign protocol to accomodate boards with more I/Os
+ * - add cycle markers to mark start of analog, digital, pulseIn, and PWM
+ */
+
/*
* Pduino protocol
* ===============
@@ -22,9 +30,16 @@
* --------------------
* 200-213 - set digital pin 0-13 to INPUT
* 214-227 - set digital pin 0-13 to OUTPUT
+ * 228 - UNUSED
+ * 229 - UNUSED
* 230 - next byte sets PWM0 value
* 231 - next byte sets PWM1 value
* 232 - next byte sets PWM2 value
+ * 233 - UNUSED
+ * 234 - UNUSED
+ * 235 - UNUSED
+ * 236 - UNUSED
+ * 237 - UNUSED
* 238 - disable all digital inputs
* 239 - enable all digital inputs
* 240 - disable all analog inputs
@@ -34,30 +49,31 @@
* 244 - enable 4 analog inputs (0-3)
* 245 - enable 5 analog inputs (0-4)
* 246 - enable 6 analog inputs (0-5)
+ * 255 - cycle marker
*
* Pd->Arduino byte cycle
* ----------------------
- * 0 digitalOut 0-6 bitmask
- * 1 digitalOut 7-13 bitmask
- * 2 cycle marker (255/11111111)
+ * 0 start of cycle marker (255/11111111)
+ * 1 digitalOut 0-6 bitmask
+ * 2 digitalOut 7-13 bitmask
*
* Arduino->Pd byte cycle
* ----------------------
- * 0 digitalIn 0-6 bitmask
- * 1 digitalIn 7-13 bitmask
- * 2 analogIn0 byte0
- * 3 analogIn0 byte1
- * 4 analogIn1 byte0
- * 5 analogIn1 byte1
- * 6 analogIn2 byte0
- * 7 analogIn2 byte1
- * 8 analogIn3 byte0
- * 9 analogIn3 byte1
- * 10 analogIn4 byte0
- * 11 analogIn4 byte1
- * 12 analogIn5 byte0
- * 13 analogIn5 byte1
- * 14 cycle marker (255/11111111)
+ * 0 start of cycle marker (255/11111111)
+ * 1 digitalIn 0-6 bitmask
+ * 2 digitalIn 7-13 bitmask
+ * 3 analogIn0 byte0
+ * 4 analogIn0 byte1
+ * 5 analogIn1 byte0
+ * 6 analogIn1 byte1
+ * 7 analogIn2 byte0
+ * 8 analogIn2 byte1
+ * 9 analogIn3 byte0
+ * 10 analogIn3 byte1
+ * 11 analogIn4 byte0
+ * 12 analogIn4 byte1
+ * 13 analogIn5 byte0
+ * 14 analogIn5 byte1
*/
/*