LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2010, 04:29 AM   #16
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360

Quote:
Originally Posted by jayhorizon View Post
i am seeing that just counting edges is my best bet at this point instead of using interrupts. I am still not where i want to be in repeatablity but i am working on it.
You won't get repeatability by counting edges. You are running a general purpose operating system with multiple interrupts and processes; your edge counting code is not going to be running all the time, and you will miss edges.

You will either have to route the incoming signal to TIN, or you will have to get the interrupt solution working.

You should be able to handle 500kHz interrupts on a 400MHz processor, but you will need to prioritize the interrupts (and make sure your interrupt code doesn't take too long). You may be better off directly using the FIQ (fast interrupt request) from the ARM processor, which probably isn't handled by the kernel at all; you will catch it directly. Your interrupt code should do nothing except increment a counter.

Last edited by neonsignal; 10-29-2010 at 04:31 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with Pulse Audio codeman1234 Linux - Software 15 01-13-2012 11:00 AM
pulse audio sulekha Ubuntu 1 02-10-2009 05:48 PM
how can i get pulse audio to work i xfce deathalele Linux - Software 0 08-30-2008 07:02 PM
probléme with pulse dialing djnux Linux - Networking 1 04-07-2005 01:21 PM
Pulse Dialing chrisharkness Linux - General 2 11-18-2002 08:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration