How ti use timer in PIC16F877A

Thread Starter

phyllis

Joined Apr 25, 2015
1
I am doing noise detector project using PIC16F877A. How to turn on led if people make noise more then 1 minute?
 

Papabravo

Joined Feb 24, 2006
21,225
How to use the timer in PIC16F877A
  1. Download the datasheet
  2. Assume a comfortable position
  3. Study the datasheet with intense concentration
  4. When you grok the use of the timer, proceed
 

MaxHeadRoom

Joined Jul 18, 2013
28,696
One avenue to explore is using a clock crystal (32Khz) on the T1CKI input which can be used for seconds,minutes, hours clock.
In conjunction with a capture input using the CCP module. In your case the timer would be constantly reset if and when noise occurs, if none for 1 minute, it allows the clock to time out.
i.e. an interrupt would occur at the 1 min mark.
Max.
 
Top