Hi, I want to turn on/off passive buzzer for 2 seconds time. Buzzer detail given here https://www.thegeekpub.com/wiki/sensor-wiki-ky-006-passive-piezo-buzzer-module/
I followed given link and wrote my own code for PIC18F45K80.
When I run following code Buzzer gives sound continuously
Controlling passive buzzer
I followed given link and wrote my own code for PIC18F45K80.
When I run following code Buzzer gives sound continuously
C:
// PIC18F45K80 Configuration Bit Settings
#define _XTAL_FREQ 20000000
// CONFIG1L
#pragma config RETEN = ON // VREG Sleep Enable bit (Ultra low-power regulator is Enabled...