pulse counter using usb1287

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello to all,
I am trying to make pulse counter using usb1287 controller. The pulse output available has specifications: Max. Pulse rate : 3.3*10E5, Pulse width = 30ns and pulse pair resolution = 35 ns. Will AT90usb1287 Timer/Counter hardware be able to count it accurately?

Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What does the datasheet say about externally clocking the timers? From memory the max rate is half the io clock rate. so 30 ns is too narrow. 330kHz is ok.

So what is "pulse pair resolution"? You might want to explain the application so we can understand this magic specification.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Kartman, I doubted that but want to confirm that so incase I am not missing trick unknown to me. The pulse pair resolution is the minimum time before a second pulse will be registered.
The application simply counts no. of pulses from PMT.
So can't count for pulsewidth = 30 ns...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had to Google what you meant by PMT. I was sure it wasn't pre-menstrual tension! So, I gather it is a photo multiplier tube?

The 30ns pulse can be stretched easily, to say, 200ns but if the pulses come too quickly, you will lose count of some.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:

The 30ns pulse can be stretched easily, to say, 200ns but if the pulses come too quickly, you will lose count of some.

Thats what reflect by Pulse pair resolution to be 30ns, so can't stretch the pulse as next pulse can be in next 35ns....
So, any idea/suggestion regarding possible solution...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Choose a faster microcontroller. Maybe something like a SAM4S,TI Tiva or STM32F4. you'll want to look closely at the specs regarding external clocking of the timer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No one from AVR!!!!!!!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

No one from AVR!

Why would you use a 16/20MHz micro to do a 50..100MHz+ job? Atmel have Cortex processors up to 120MHz (SAM4S that Kartman mentioned for example. STM32 have a 168MHz Cortex M4). The cycle time at 120MHz is 8.3ns so you have several cycles available between 30ns events.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are right, I was looking for controllers with my existing compiler support. Those are not supported :(

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So, how much does an 8-/10-/16-bit external counter chip cost nowadays? 74HC590 about $0.50; 24MHz. Does the datasheet indicate it would be happy with 30ns pulses? Yep.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Exactly, I was googling for the same...thanks a lot theusch.. :P