Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: T3.2 hardware counter pin(s) and examples?

  1. #1
    Senior Member
    Join Date
    May 2015
    Posts
    442

    T3.2 hardware counter pin(s) and examples?

    I need to count pulses that won't be faster than 8khz. I Also need to trigger an interrupt after matching a programmed count. The count needs to be 16 bits. Any pins open for that not shared with the audio adapter?

  2. #2
    Senior Member
    Join Date
    Nov 2015
    Location
    Cold hollow VT
    Posts
    204
    Just a count ? Not a frequency ? From the top of my head I believe the FTM clock inputs are on pins 0 & 1.

  3. #3
    Senior Member
    Join Date
    May 2015
    Posts
    442
    Yup just need a count. The chip i am working with puts out a pulse and I need to count them and send a stop back to it after the count reaches a set amount. I looked at the docs again and the pulses only come once about every 250ms, not 8khz like I thought. 8khz was the rate it stores -analog voice input but it does it in 1/4 second buckets. The chip I am talking to a really odd chip form 2002 . ISD5116 SINGLE-CHIP VOICE RECORD/PLAYBACK DEVICE. Digikey was the only place I could find the datasheet.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,069
    For easy 4 Hz count this example looks like a good start: pjrc.com/threads/48101-PMT-pulse-counting-using-Teensy-3-2

    You can ignore the priority setting if some nanoseconds doesn't hurt.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •