Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: emertonom

Search: Search took 0.00 seconds.

  1. Very neat stuff! I wonder to what degree the...

    Very neat stuff! I wonder to what degree the representational aspects are preserved by the many stages of translation occurring here? You start with the emotion (anxiety) and you look at the neural...
  2. Replies
    42
    Views
    38,546

    Honestly, I'm not entirely clear on why it's...

    Honestly, I'm not entirely clear on why it's 50MHz instead of 48MHz; I was just going by the code in http://cache.freescale.com/files/32bit/doc/ref_manual/K20P64M50SF0RM.pdf in chapter 36, the...
  3. Oops! Something weird is going on there--even if...

    Oops! Something weird is going on there--even if I make it #ifndef _avr_emulation_h_, I still get the error "cannot convert 'PORTDemulation' to 'volatile uint8_t*' in assignment" on that line, which...
  4. Oh yeah, stupid error--clock delay doesn't need...

    Oh yeah, stupid error--clock delay doesn't need to be nearly so long! I don't know why 100us didn't sound ridiculous to me. The 220us, however, is verbatim from the data sheet:



    (There's a...
  5. Hmm. On closer inspection, I'm *really* confused...

    Hmm. On closer inspection, I'm *really* confused about how the updated code you posted is working. It appears to send the command code using your modified functions, but then sends the bar graph...
  6. Ah! XOR isn't missing--XOR is an operator that...

    Ah! XOR isn't missing--XOR is an operator that the AVR emulation doesn't handle. Sorry for the confusion. I'm not sure how to rewrite the port-manipulation code to work on both platforms at the...
  7. It looks to me like you've inverted the outputs...

    It looks to me like you've inverted the outputs of the LATCH function--in these lines:


    //PORT_Data &=~ BIT_Data; // set
    digitalWrite(DATA_Pin, HIGH);

    The original version you've...
  8. Oops, you updated while I was writing my reply! ...

    Oops, you updated while I was writing my reply! Congrats on getting it working!
  9. I'll take a stab at it. I'm not sure what's...

    I'll take a stab at it. I'm not sure what's going on in the line where they've replaced "PORT_Data &=~ BIT_Data;" with "PORT_DATAx &=~ BIT_Data;". I'm not familiar with the keyword "PORT_DATAx",...
  10. Replies
    18
    Views
    19,005

    Thanks for the tips! In fact both the mic and...

    Thanks for the tips! In fact both the mic and preamp are now working fine--I just hadn't connected things correctly. Once I corrected it to match the design in the preamp's datasheet, it worked...
  11. Replies
    18
    Views
    19,005

    @JBeale: Duly noted. The crummy power supply is...

    @JBeale: Duly noted. The crummy power supply is just for proof-of-concept testing and experimentation--it offered the dual virtues of "having +/-5v and +/-12V" and "being in the same room." :) ...
  12. Replies
    18
    Views
    19,005

    Also: I'm an idiot--the INA 217 data sheet shows...

    Also: I'm an idiot--the INA 217 data sheet shows the wiring for the mic, both with phantom power (non-electret condenser mics) and without (dynamic mics). Not sure why I forgot about that, because I...
  13. Replies
    18
    Views
    19,005

    Found this blog post:...

    Found this blog post: http://hifiduino.wordpress.com/2012/09/12/teensy-3-0-with-i2s-interface/
    which links to an Application Note: http://cache.freescale.com/files/32bit/doc/app_note/AN4369.pdf
    ...
  14. Replies
    23
    Views
    21,679

    Cool! Thanks for incorporating the interrupt...

    Cool! Thanks for incorporating the interrupt prototypes!

    If it helps at all, I've got some temporary code working for interrupt priority levels. It only works for 0-15, though; using 0-255 just...
  15. Replies
    18
    Views
    19,005

    Of course--I'm more than happy to share my code. ...

    Of course--I'm more than happy to share my code. It's nice to hear from someone else who's interested in the same sorts of applications.

    Output isolation is definitely a good suggestion. I'm...
  16. Replies
    18
    Views
    19,005

    As promised, finally, "playback.cpp": ...

    As promised, finally, "playback.cpp":



    #include "playback.h"

    volatile int current_sample;
    int16_t buffer1[MAX_SAMPLES];
    int16_t buffer2[MAX_SAMPLES];
    volatile boolean using_buffer1;
  17. Replies
    18
    Views
    19,005

    Sure, yeah. I know the chip is deprecated, but...

    Sure, yeah. I know the chip is deprecated, but since this is a one-off project, the DIP format seemed extremely appealing to me. I'm not very good at soldering, and the surface-mount components are...
  18. Replies
    18
    Views
    19,005

    Thanks, that was exactly what I needed! Here's...

    Thanks, that was exactly what I needed! Here's my line for NVIC_SET_PRIORITY, since that's not currently implemented in mk20dx128.h:

    #define NVIC_SET_PRIORITY(n, p) (*((volatile uint8_t...
  19. Replies
    18
    Views
    19,005

    Ah! Thanks, I never would have figured that out....

    Ah! Thanks, I never would have figured that out. I'm going to try that out now!
    Thanks,
    -Nick
  20. Replies
    18
    Views
    19,005

    Looking at the WaveHC library from the AdaFruit...

    Looking at the WaveHC library from the AdaFruit Audio Shield, it looks like they got things working pretty well by using double-buffering (one to fill while the other plays, with tiny buffers--only...
  21. Replies
    18
    Views
    19,005

    Teensy 3.0 and audio

    Hi all.

    So, I'm trying to build an audio recording and playback device using Teensy 3.0. I'm pretty new at this stuff--I've been coding for years, but the hardware stuff still kind of feels like...
  22. Replies
    42
    Views
    38,546

    Sorry all! I guess I wasn't getting...

    Sorry all! I guess I wasn't getting notifications about updates to this thread. Glad you were able to suss it out without me! I'm completely a noob at this stuff...I just cobbled it together...
  23. Replies
    42
    Views
    38,546

    So, this is not entirely my code--I ported over...

    So, this is not entirely my code--I ported over the Arduino sketch from this article: http://blog.makezine.com/2008/05/29/makeit-protodac-shield-fo/

    But it runs on Teensy 3.0 now, so that's...
  24. Replies
    42
    Views
    38,546

    Okay, yeah, for the time being I need to modify...

    Okay, yeah, for the time being I need to modify mk20dx128.c to include the address of my interrupt handler (the 47th table entry is PIT timer 1, currently "unused_isr"). Presumably a later version...
  25. Replies
    42
    Views
    38,546

    Oh...I just noticed this aspect of the one of the...

    Oh...I just noticed this aspect of the one of the kickstarter update pages, which talks about exactly this:


    Taking a look at both aspects (attachInterrupt and mk20dx128.c). I'll post what I...
  26. Replies
    42
    Views
    38,546

    Teensy 3.0 and interrupts

    Accidentally posted this first in "Bug Reports," which clearly isn't right. Couldn't see how to move the post, so this is just a copy. Sorry for the double-post!



    I'm porting over an Arduino...
  27. Replies
    1
    Views
    3,291

    Sorry, probably should have been in "General...

    Sorry, probably should have been in "General Guidance." Not sure how to move it--just copying the post over there. Sorry all!
  28. Replies
    1
    Views
    3,291

    Teensy 3.0 and interrupts

    I'm porting over an Arduino sketch that relied on the chip for timer-based interrupts. It looks to me from the documentation as though the proper timer to use for this on Teensy 3.0 is the periodic...
Results 1 to 28 of 28