Page 1 of 1

Sound library in mikroC v8.2

Posted: 06 Nov 2010 20:39
by TripleKill
I made a code with usage of Sound library. Piezo speaker beeps when a button is pressed. At the same time MCU sends data into PORTC, PORTB. But doesn't matter which port i use. While speaker beeps, it seems like ALL ports, except the one speaker is connected to (PORTE), go 0x00. They only become 0x00 if the sound is played. After it's been played, I can normally send data from MCU.

If I don't use Sound library, everything is OK. Is it a bug in the library or am I doing something wrong?

Regards, TripleKill, Russia.

P.S. Sorry for my poor English.

Re: Sound library in mikroC v8.2

Posted: 08 Nov 2010 13:41
by filip
Hi,

Did you set the TRIS registers correctly for the ports that you want to use as the output ?

Regards,
Filip.

Re: Sound library in mikroC v8.2

Posted: 08 Nov 2010 16:41
by TripleKill
I'm sorry, that was a bug in my code. :oops:

Already found and corrected. Topic can be deleted.