Hii Andre, > I am using pic16c62 portb as output > I am driving LEDS and one buzzer. > Buzzer gets distorted signal. > I checked with digital scope I get this > > -----------------|-|--------------- > | | > |_| > > I use BSF portb,RB3 ; sound when is high > > My question is when you set any bit high shouldn't I get > clean 5 v signal or to have little distortion is normal. > > How do you use buzzers with pics. I always use a transistor to turn on buzzers. Electromechanical ones are not well suited to logic drive as they cause a lot of inductive noise on the supply pin. Some of the Piezo devices do work ok with just 5V but still safer to use a Transistor and a freewheeling diode for any thing with large inductance or capacitance (Piezo). Not 100% sure if you have a drive problem or a resonance problem. Many buzzers will only work well close to their resonant frequency, they sound horrible at other frequencies. Cheers -- Kalle Pihlajasaari kalle@ip.co.za http://www.ip.co.za/ip Interface Products P O Box 15775, DOORNFONTEIN, 2028, South Africa + 27 (11) 402-7750 Fax: 402-7751 http://www.ip.co.za/people/kalle DonTronics, Silicon Studio and Wirz Electronics uP Product Dealer