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

Search:

Type: Posts; User: ossi

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    114

    @vjmuzik: Your link was of great help! I did not...

    @vjmuzik: Your link was of great help! I did not read/write the registers with the right size (32,16,8 bit). Now it works.
    @manitou: I know that I can use the names for the periperals, but I wanted...
  2. Replies
    3
    Views
    114

    Direct register access using address

    On the Teensy 3.6 the register CMT_PPS has the address 0x4006200A according to the datasheet. How can I access the CMT_PPS register using this address?
  3. Replies
    0
    Views
    51

    direct timer register access

    I want to directly access timer-registers on the teensy36. If I remove the two lines showHex(...) the program runs (prints every 0.5 seconds a ever increasing number).
    If I want to access then...
  4. Thread: direct pin access

    by ossi
    Replies
    1
    Views
    78

    direct pin access

    I want to toggle directly the LED pin (pin 13) without using any library routines or any predifined constants. Has someone an example? Is it right that the pin13-toggle is on port 401B8000+4000+8C on...
  5. Replies
    2
    Views
    112

    @DerekR: Thanks for your hint. My sawtooth has...

    @DerekR: Thanks for your hint. My sawtooth has 1.4Hz and a 2u2+10k highpass has 7Hz cutoff frequency. So my frequency is too low. If I increase the sawtooth frequency to 100Hz everything is ok!
  6. Replies
    2
    Views
    112

    SGTL5000 LineOut Impedance

    I generate a sawtooth waveform and output it via the SGTL5000 Audio Board (see code below). The LineOut output seems to have a quite large impedance. When I connect the output pin with ground via a...
  7. Replies
    3
    Views
    239

    Thanks, I will have a look into dspinst.h and...

    Thanks,
    I will have a look into dspinst.h and the audio lib.
  8. Replies
    3
    Views
    239

    assembly language with teensyduino

    Is it possible to include assmbly language in teensyduino projects?
  9. Replies
    1
    Views
    172

    Teensy 3.6 CPU in Thumb or ARM mode?

    Is the CPU of the Teensy 3.6 Board running in Thumb mode or in ARM mode ?
  10. Replies
    0
    Views
    113

    instruction timing for Teensy36

    #include <arm_math.h>
    #include <arm_const_structs.h>

    // instruction times for cortex M4
    // http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0439b/CHDDIGAC.html

    #define nn...
  11. Replies
    2
    Views
    130

    @KurtE Seems that was the error. Thanks a lot....

    @KurtE
    Seems that was the error. Thanks a lot.
    Normally I put those arrays in the static section so that I get an error from the compiler if I use more than 256k. But this time I put in onto the...
  12. Replies
    2
    Views
    130

    Teensuino strang behaviour

    The following program (Teensy36) :

    void setup() {
    Serial.begin(115200);
    for(int k=0 ; k<6 ; k++){
    delay(50);
    delay(100);
    }
    test1() ;
    }
  13. Thread: Change SampleRate

    by ossi
    Replies
    11
    Views
    573

    in analog.c i made tzhe following change: ...

    in analog.c i made tzhe following change:

    //#elif F_BUS == 60000000
    // #define ADC_CFG1_16BIT ADC_CFG1_ADIV(2) + ADC_CFG1_ADICLK(1) // 7.5 MHz
    // #define ADC_CFG1_12BIT ADC_CFG1_ADIV(1) +...
  14. Replies
    267
    Views
    59,330

    @Frank Have you ever considered using ADCs and...

    @Frank
    Have you ever considered using ADCs and DACs instead of SGTL5000. At least there should be no twinpeaks problem.
  15. Thread: Change SampleRate

    by ossi
    Replies
    11
    Views
    573

    It seems changing the CFG1 setting in analog.c...

    It seems changing the CFG1 setting in analog.c and pdb_period in pdb.h does the trick.
    Thanks.
  16. Thread: Change SampleRate

    by ossi
    Replies
    11
    Views
    573

    In input_adcs.cpp I see where the trigger rate of...

    In input_adcs.cpp I see where the trigger rate of the ADCs is set to 44100 but I can not see where the ADC conversion clock is specified.
    Playing with analogReadAveraging(x) had no positive effect.
  17. Thread: Change SampleRate

    by ossi
    Replies
    11
    Views
    573

    The Method to change the I2S clock only works for...

    The Method to change the I2S clock only works for the SGTL5000 as far as I see. The DAC and ADC timing is specified by the parameter PDB_PERIOD from pdb.h. Changing this from 1360 to 3000 makes the...
  18. Thread: Change SampleRate

    by ossi
    Replies
    11
    Views
    573

    So far I found that I had to change the constant...

    So far I found that I had to change the constant 1360 in pdb.h


    #elif F_BUS == 60000000
    #define PDB_PERIOD (1360-1)


    I could make the ADC clock a little slower, but not faster ( I want to...
  19. Thread: Change SampleRate

    by ossi
    Replies
    11
    Views
    573

    Change SampleRate

    I have a setup consisting of the DACs as source. These deliver their data via a recordQueue to my program. My program does some filtering and puts the output data to playQueues. The data then goes to...
  20. Replies
    2
    Views
    181

    That would mean that all stereo applications (as...

    That would mean that all stereo applications (as well as SDR applications) suffer from this erratic behaviour ?
  21. Replies
    2
    Views
    181

    Left and Right Channels not in Sync ?

    The program given below shows a behaviour that I don't understand. The Intention is as follows: Data from Left and Right channel ADCs in SGTL5000 is directly copied to the Left and Right DACs in...
  22. The issue has been solved in another forum:...

    The issue has been solved in another forum: random(maxval) returns an uint32_t value, not a long as specified for Arduino
    The types for the teensy are
    int32_t random(void);
    uint32_t...
  23. I would have expected the following for the line ...

    I would have expected the following for the line x=random(10)-5 :
    random returns a long (says the documentation), thus the 5 should also be treated as a long. Then the difference random(10)-5...
  24. The example comes from a FFT program where I...

    The example comes from a FFT program where I wanted to initialize a double-vector with random data.
    in my original example
    double x[NFFT]
    x[k]=random(10)-5 ;
    the occuring big numbers can...
  25. Replies
    13
    Views
    637

    I have now located the boards.txt file. I am...

    I have now located the boards.txt file. I am totally lost with so many options. Where can I put compile options or the objdump options ?
  26. Random function in expression gives wrong values

    Running the code shown below on a Teensy 36 gives big integers as result where negative values should occur. Output of the code is shown below also. If the line with "..random.." is replaced by one...
  27. Replies
    13
    Views
    637

    Is it possible to change the compile options in...

    Is it possible to change the compile options in the teensyino environment?
  28. Replies
    13
    Views
    637

    Hi Paul, thanks a lot for your help and the great...

    Hi Paul, thanks a lot for your help and the great teensy stuff.

    A comment to the BL instruction: You probably are too young to have learnt the IBM360 assembly :) . When I went to university around...
  29. Replies
    13
    Views
    637

    Thanks, that was exactly the information I...

    Thanks, that was exactly the information I needed. Seems I have opened Pandora's box somehow. Now I have to learn ARM Code and see what an optimizing compiler generates.
  30. Replies
    13
    Views
    637

    Generated Code of teensy3.6

    Is it possible to have a look onto the code that teensyduino generates? I want to see what optimizations are done.
  31. Replies
    9
    Views
    420

    @Paul: Thank you for your explanation. Have you...

    @Paul: Thank you for your explanation. Have you tested (by simulation) that noise shaping with biquads is really helpful? Perhaps I will try such an simulation.
  32. Replies
    2
    Views
    208

    Does that mean that I generated the data too...

    Does that mean that I generated the data too fast? Since I generate data as it comes in from the record-queue I had expected that there is alway enough space in the playQueue to cope with the...
  33. Replies
    2
    Views
    208

    playBuffer() has high execution time

    In the following sketch I try to copy audio data from a record-queue to a play-queue in the c-main function.
    (Later I will do a lot of signalprocessing between input and output).
    The code works. I...
  34. Replies
    1
    Views
    245

    How to specify samplerate

    // GUItool: begin automatically generated code
    AudioSynthWaveformSine sine1; //xy=257,110
    AudioOutputAnalog dac1; //xy=440,110
    AudioConnection ...
  35. Replies
    9
    Views
    420

    I think I have figuerd it out: The variables ...

    I think I have figuerd it out: The variables in2,out2,aprev,brev hold 2 int16 each and the ten MACs are used to compute two steps of the IIR filter.
    Quite tricky, but probably fast.
  36. Replies
    9
    Views
    420

    I think I understood the MAC Instructions. The...

    I think I understood the MAC Instructions. The Problem is more how the MACinstructions together yield the IIR filter.
    One detailed question: You sometimes and sum with 0x3FFF. I dont understand...
  37. Replies
    2
    Views
    174

    Thanks a lot, I now found the files.

    Thanks a lot, I now found the files.
  38. Replies
    9
    Views
    420

    Inner working of filter_biquad

    I am trying to figure out how the IIR filters are implemented in the audioLibrary: filter_biquad.cpp. But I really struggle at that code. Perhaps someone could give me some hints. As far as I...
  39. Replies
    1
    Views
    150

    Using registers with Teensy 36

    I am very new to the tensy36 board. I am trying to access CPU-registers directly.
    Some code really works well. For example:


    // show data direction including PIN13=LED pin
    reg=GPIOC_PDDR ;...
  40. Replies
    4
    Views
    173

    Thanks a lot for your helpful comments. I just...

    Thanks a lot for your helpful comments. I just got my Teensy 36 this morning. I am now learning a lot. I am very glad to have a board with floating-point capability without an operating system....
  41. Replies
    4
    Views
    173

    Unexpectedy behavior due to optimization?

    I wanted to measure execution timing of floating point cos routine using the following program:


    int led = 13;

    void setup() {
    pinMode(led, OUTPUT);
    delay(1000) ;
    ...
  42. Replies
    2
    Views
    174

    where is allocate(), release(..) etc defined

    I am totally new to TEENSY Audio-lib and I am trying to understand how it works. Does someone know where the elementary buffer bookkeeping functions like allocate(), release(..) etc are defined? I...
Results 1 to 42 of 42