The PIC16F/18F Slicker board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports in system programming (ISP) which is done through USB port.
Microchip’s PIC (PIC16F877A), PIC16F/18F Slicker Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of High speed 8-bit Microcontrollers.
Buzzer is an electrical device, which is similar to a bell that makes a buzzing noise and is used for signaling. Typical uses of buzzers and beepers include alarm devices, timers and confirmation of user input such as a mouse click or keystroke.
Fig. 1 shows how to interface the Buzzer to microcontroller. A piezoelectric element may be driven by an oscillating electronic circuit or other audio signal source, driven with a piezoelectric audio amplifier. Sounds commonly used to indicate that a button has been pressed are a click, a ring or a beep. When the input port pin from microcontroller is changed, the sound wave is changed in Buzzer.
Fig. 1 Interfacing Buzzer to Microcontroller
A small piezoelectric buzzer on the PIC16F/18F Slicker Kit, by pulling pin PORTB.0 low, current will flow through the buzzer and a relatively sharp, single-tone frequency will be heard.
The alternative INT feature of pin PORTB.0 (the INT signal) can be used to modulate the buzzer to oscillate around different frequencies. Then the volume of the sound will be changed by alternating the pulse width. The buzzer can be disconnected by removing jumper J6, and this is also the default position for this jumper since the buzzer sound can be quite annoying if always left on.
* Connect PORTB with JP5 (E-MECH) via FRC Cable
* Place a Jumper Between INT and +5V of J6 (J6 is very near to BUZZER).
* Turn ON TXD and RXD Pins of CONFIG switch SW1. Connect Serial
cable between USART Section in the Board and PC and open HyperTerminal
* Press RESET Once.
Output: Choose Any one from 1 to 6. The Corresponding Action Will Be carried out.
The Interfacing Buzzer with PIC16F877A program is very simple and straight forward. We now want to generate a sound in PIC16F/18F Slicker Board by using a buzzer. The C programs are developed in Mplab software & it execute with Hi-Tech C Compiler.
To compile the above C code you need the Mplab software & Hi-Tech C Compiler. They must be properly set up and a project with correct settings must be created in order to compile the code. To compile the above code, the C file must be added to the project.
In Mplab, you want to develop or debug the project without any hardware setup. You must compile the code for generating HEX file. In debugging Mode, you want to check the port output without PIC16F/18F Slicker Board.
The PICKIT2 software is used to download the hex file into your microcontroller IC PIC16F877A through USB port.
Give +12V power supply to PIC16F/18F Slicker Board; the Buzzer is connected with PIC16F/18F Slicker Board. When the program is downloading into PIC16F877A in Slicker Board, the Buzzer output is working that the Buzzer is creating some sound.
If you are not getting any sound from Buzzer, then you just check the jumper connections & check the Buzzer is working or not. Otherwise you just check it with debugging mode in Mplab. If you want to see more details about debugging just see the videos in below link.
we respect your privacy.