diff --git a/Examples/ardu51_ADC_example.c b/Examples/ardu51_ADC_example.c index 46ba691..0c3b52e 100644 --- a/Examples/ardu51_ADC_example.c +++ b/Examples/ardu51_ADC_example.c @@ -21,6 +21,8 @@ DAC_write(value) : AOUT (PIN 15 of the chip) Its recommended to Add 1uF capacitor between DAC output & GND for noise elimination. + + Copyright (C) 2014. Pranjal P. Joshi. */ #define F_OSC 11059200 // define CPU freq. diff --git a/Examples/ardu51_EEPROM_example.c b/Examples/ardu51_EEPROM_example.c index 018ef1f..e8ed3f0 100644 --- a/Examples/ardu51_EEPROM_example.c +++ b/Examples/ardu51_EEPROM_example.c @@ -17,6 +17,8 @@ SCL --- PIN 22 (P2.1) WARNING ::: Never digitalWrite on PIN 21 & 22 while I2C bus is active! + + Copyright (C) 2014. Pranjal P. Joshi. */ #define F_OSC 11059200 // Define CPU freq. diff --git a/Examples/ardu51_analogWrite_example.c b/Examples/ardu51_analogWrite_example.c index e22bd48..784c0d1 100644 --- a/Examples/ardu51_analogWrite_example.c +++ b/Examples/ardu51_analogWrite_example.c @@ -14,6 +14,8 @@ analogWrite36(PWM_VALUE [0 - 255]) - PWM on PIN36 analogWrite35(PWM_VALUE [0 - 255]) - PWM on PIN35 analogWrite34(PWM_VALUE [0 - 255]) - PWM on PIN34 + + Copyright (C) 2014. Pranjal P. Joshi. */ diff --git a/Examples/ardu51_lcd_example.c b/Examples/ardu51_lcd_example.c index 244e075..e710ef5 100644 --- a/Examples/ardu51_lcd_example.c +++ b/Examples/ardu51_lcd_example.c @@ -34,6 +34,8 @@ NOTE: You can still use remaining pins of Px. That is Px.6 & Px.7 can be used for other applications. LCD data won't interfere with remaining pins! + + Copyright (C) 2014. Pranjal P. Joshi. */ #include // basic file for Arduino51. diff --git a/Examples/ardu51_serial_example.c b/Examples/ardu51_serial_example.c index 7758d74..fa9bc8b 100644 --- a/Examples/ardu51_serial_example.c +++ b/Examples/ardu51_serial_example.c @@ -16,6 +16,8 @@ // All devices having Timer 2 are supported even they are named as 8051 series. // // For eg. The code will work on AT89S52 & NXP P89V51Rxx series controllers. // /////////////////////////////////////////////////////////////////////////////////////// + + Copyright (C) 2014. Pranjal P. Joshi. */ #define F_OSC 11059200 // CPU Freq. in Hz.. @@ -25,7 +27,7 @@ #include // header file for serial communication unsigned char demo = 48; -unsigned int x = 1024; +unsigned int x = 0; void setup() { @@ -37,11 +39,15 @@ void loop() serial_print("Arduino style programming on 8052.\n"); serial_println("println means print & jump to new line. no need to add '\n' at the end."); - + serial_print("writing single char: "); serial_write(demo); // sending single char value // this will print '0' on terminal + serial_print("\n\r"); + serial_print("Printing Integer: "); serial_printInt(x); // This will print Int on terminal.. BUG SOLVED! UPDATED!! + x++; + serial_println(); delay(2000); // wait for 2 seconds n loop back. } \ No newline at end of file