115Views8Replies

Author Options:

hex? Answered

 please give me the hex file for this this is urrgent and if do this i follow you 
i get a error when i compile it
/*
  Experiment No. 7: Playing Happy Birthday Tune with PIC12F683
  Compile with MikroC Pro for PIC
  Internal clock @ 4.0 MHz, MCLR disabled, PWRT OFF

*/

void Delay_100(){
 Delay_ms(100);
}

void main() {
CMCON0 = 7;
TRISIO = 0b00001000; // GP5, 5 I/P's, Rest O/P's
GPIO = 0;
Sound_Init(&GPIO,2); // Initialize sound o/p pin


do {

   Sound_Play(262, 400); // Hap
   Delay_100();
   Sound_Play(262, 400); // Py
   Delay_100();
   Sound_Play(294, 800); // Birth
   Delay_100();
   Sound_Play(262, 800); // Day
   Delay_100();
   Sound_Play(349, 800); // To
   Delay_100();
   Sound_Play(330, 1000); // You
   Delay_100();
   Delay_100();
   // Another Para
   Sound_Play(262, 400); // Hap
   Delay_100();
   Sound_Play(262, 400); // Py
   Delay_100();
   Sound_Play(294, 800); // Birth
   Delay_100();
   Sound_Play(262, 800); // Day
   Delay_100();
   Sound_Play(392, 800); // To
   Delay_100();
   Sound_Play(349, 1000); // You
   Delay_100();
   Delay_100();
   // Another Para
   Sound_Play(262, 400); // Hap
   Delay_100();
   Sound_Play(262, 400); // Py
   Delay_100();
   Sound_Play(523, 700); // Birth
   Delay_100();
   Sound_Play(440, 800); // Day
   Delay_100();
   Sound_Play(349, 800); // Dear
   Delay_100();
   Sound_Play(330, 800); // XX
   Delay_100();
   Sound_Play(294, 700); // XX
   Delay_100();

   Sound_Play(466, 400); // Hap
   Delay_100();
   Sound_Play(466, 400); // Py
   Delay_100();
   Sound_Play(440, 700); // Birth
   Delay_100();
   Sound_Play(349, 800); // Day
   Delay_100();
   Sound_Play(392, 800); // To
   Delay_100();
   Sound_Play(349, 1600); // You $ $ $
   Delay_ms(1000); // Wait for 1 sec and replay

   }while(1);
}

Tags:hex

Discussions

0
None
nodoubtman

Best Answer 6 years ago

Please email me, i have corrected the errors :)

thanks! :)
CYa!

0
None
robot1398nodoubtman

Answer 6 years ago

mail the corrected code to me at rohit1398@gmail.com

0
None
nodoubtmanrobot1398

Answer 6 years ago

the code is correct? you need the .hex file?

here is it :) i emailed yoU!: )

0
None
lemonie

7 years ago


What do you mean by give me? That sounds rude.

Don't you have a compiler?

L

0
None
lemonierobot1398

Answer 7 years ago


If you tell people what your error code it they are quite likely to be able to de-bug the source for you.

L

0
None
orksecuritylemonie

Answer 7 years ago

And if not, can't you get a compiler? There _MUST_ be basic C compilers available free for just about every computer architecture ever created, and if you want an IDE I'd bet Eclipse can be configured to work with most of them.

0
None
rickharris

7 years ago

Just buy a M series Picaxe the have HBTY built in to every chip.