home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / dsp / 2539 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!sdcc12!sdcc13!shaehnic
  2. From: shaehnic@sdcc13.ucsd.edu (Steve - Happy Hacker!)
  3. Newsgroups: comp.dsp
  4. Subject: Double-buffered SSI on M56001
  5. Message-ID: <40697@sdcc12.ucsd.edu>
  6. Date: 7 Nov 92 20:28:03 GMT
  7. Sender: news@sdcc12.ucsd.edu
  8. Reply-To: shaehnic@ucsd.edu
  9. Organization: HyperHack - San Diego, CA.
  10. Lines: 22
  11. Nntp-Posting-Host: sdcc13.ucsd.edu
  12.  
  13. I am trying to optimize some high-speed audio code for the Motorola
  14. 56001 DSP, and it seems that I could save a good amount of time by
  15. writing a better SSI (audio sample) interrupt handler.  Since our
  16. processing is buffer oriented and not per-sample, it would help to
  17. have the incoming samples deposited in a double-buffering system.
  18.  
  19. Ideally, I would like the ISR to fill up one buffer, set a flag for
  20. the main loop, and then start filling the other buffer.  A main loop
  21. running at lower priority would process each buffer when the flag is
  22. set.
  23.  
  24. It seems like the kind of thing that would have been done before, but
  25. I haven't seen any code that does this.
  26.  
  27. If anyone knows of any available code or pointers to literature,
  28. please post or Email.
  29.  
  30. Thanks!
  31. -Steve
  32.  
  33. Steve Haehnichen          ---  PGP public key available upon request.  ---
  34. shaehnic@ucsd.edu     (FTP pub/crypt/unix_pgp20.tar.Z from ghost.dsi.unimi.it)
  35.