Sound library in mikroC v8.2

General discussion on mikroC.
Post Reply
Author
Message
TripleKill
Posts: 7
Joined: 17 Oct 2010 09:49

Sound library in mikroC v8.2

#1 Post by TripleKill » 06 Nov 2010 20:39

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.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Sound library in mikroC v8.2

#2 Post by filip » 08 Nov 2010 13:41

Hi,

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

Regards,
Filip.

TripleKill
Posts: 7
Joined: 17 Oct 2010 09:49

Re: Sound library in mikroC v8.2

#3 Post by TripleKill » 08 Nov 2010 16:41

I'm sorry, that was a bug in my code. :oops:

Already found and corrected. Topic can be deleted.

Post Reply

Return to “mikroC General”