1.2
authorpeter
Mon, 17 Nov 2008 21:14:43 +0100
changeset 525 9b81decd4662
parent 524 b94067330319
child 526 1607d4afce20
1.2
examples/AVR/Slave/main.c
--- a/examples/AVR/Slave/main.c	Mon Nov 17 21:11:59 2008 +0100
+++ b/examples/AVR/Slave/main.c	Mon Nov 17 21:14:43 2008 +0100
@@ -26,7 +26,7 @@
 Short description:
   PORTA:	Inputs (Keys, low active)
   PORTB:	Outputs (LEDs, low active)
-  PORTC:	Node ID (1 BCD switch)
+  PORTC:	Node ID (1 BCD switch, low active)
 
 ******************************************************************************/
 #include "hardware.h"
@@ -104,7 +104,7 @@
 OUTPUT	void
 ******************************************************************************/
 {
-  OSCCAL = 0x43;
+  OSCCAL = 0x43;                        // adjust the RC oszillator
   
   PORTA = 0xFF;	                        // Inputs (Keys, low active) with pullup
   DDRA  = 0x00;		                //