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

Search:

Type: Posts; User: PaulS

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thanks very much, it's pretty clear! Paul

    Thanks very much, it's pretty clear!
    Paul
  2. Hi Frank, from the Wiki: SCB_AIRCR =...

    Hi Frank, from the Wiki:

    SCB_AIRCR = 0x05FA0004;
    asm volatile ("dsb");
    Do I need the 2nd line as well? If so, what does it mean/do?

    Thanks,
    Paul
  3. Replies
    5
    Views
    81

    Took your exact code, ran it on a Teensy LC and...

    Took your exact code, ran it on a Teensy LC and checked with the logic analyzer.
    Here is the setup:

    23318

    And here is the logic analyzer output:

    23319

    I watched the output for a few...
  4. Replies
    40
    Views
    437

    Well, that seems like the issue we see, but I...

    Well, that seems like the issue we see, but I assume usbser.sys is updated by now. Paul's video is quite convincing.

    Paul
  5. Replies
    40
    Views
    437

    @PaulStoffregen: not a boring video at all, very...

    @PaulStoffregen: not a boring video at all, very clear and informative!
    My guess is that the other mentioned terminal programs indeed talk to the FTDI driver instead of the WIN32 API.
    I recall...
  6. Replies
    40
    Views
    437

    Wrote a short VB.NET program that can set the DTR...

    Wrote a short VB.NET program that can set the DTR & RTS lines individually and that worked also expected with a Teensy.
    Case closed I guess.

    Paul
  7. Replies
    40
    Views
    437

    Gave it a quick try, modified usb_serial.h on my...

    Gave it a quick try, modified usb_serial.h on my PC, compiled and uploaded it.
    Even tried the || (double pipe) operator USB_SERIAL_DTR || USB_SERIAL_RTS .
    Unfortunately no change...Termite can not...
  8. Replies
    40
    Views
    437

    Yeah, I tend to think so too. Powershell is also...

    Yeah, I tend to think so too. Powershell is also working as expected with Teensy and FTDI dongle.
  9. Replies
    40
    Views
    437

    After the perils with Powershell and rebooting my...

    After the perils with Powershell and rebooting my PC, back to the original issue this thread started with: I verified my initial tests again and the messages #4 and #5 are still valid.

    I'm not...
  10. Replies
    40
    Views
    437

    After rebooting my PC, no strange behaviour...

    After rebooting my PC, no strange behaviour anymore with Powershell and/or Arduino and/or Teensy Loader...
    Powershell can't open COM1 when the Arduino Terminal is open [as expected] and is able to...
  11. Replies
    40
    Views
    437

    Correction/addition: it seems that the Teensy...

    Correction/addition: it seems that the Teensy Loader [or is it teensy_ports?] is 'screwing' up the Powershell serial port behaviour, not the Arduino IDE.
    When Teensy Loader is open but idling, it...
  12. Replies
    40
    Views
    437

    Solved, I had to close the complete Arduino IDE...

    Solved, I had to close the complete Arduino IDE [although I did not have the Terminal open].

    23299

    And also DTRenable and RTSenable work OK now measuring the DTR & RTS lines.

    Paul
  13. Replies
    40
    Views
    437

    Yes, Arduino terminal is closed. The PS shell...

    Yes, Arduino terminal is closed.
    The PS shell must have remembered that I assigned COM1 to 'port'.
    Here is a new screenshot:

    23298

    Yes, Windows allows you to reassign the COMport number in...
  14. Replies
    40
    Views
    437

    Yes, it is on COM1. FTDI dongle also. Oh, I was...

    Yes, it is on COM1. FTDI dongle also.
    Oh, I was not clear. First I plugged in the FTDI dongle, ran the PS commands, then removed the FTDI dongle and inserted the Teensy, then ran the PS commands...
  15. Replies
    40
    Views
    437

    Further searching on this forum on DTR & RTS, I...

    Further searching on this forum on DTR & RTS, I found this thread, so I tried with PowerShell.
    Here is the screendump:

    23297

    The first 7 lines shown are with the FTDI dongle plugged in. Then I...
  16. Replies
    40
    Views
    437

    Did a quick test with a genuine FTDI US232R-10...

    Did a quick test with a genuine FTDI US232R-10 USB serial converter.

    23295

    This time, both CoolTerm and Thermite were able to correctly set the DTR and RTS lines when clicking on the DTR and...
  17. Replies
    40
    Views
    437

    Interesting. I modified your sketch a bit to show...

    Interesting. I modified your sketch a bit to show the status of DTR and RTS in the serial monitor screen.

    void setup() {
    Serial.begin(9600);
    pinMode(LED_BUILTIN, OUTPUT);
    ...
  18. Replies
    9
    Views
    213

    You're welcome. No need to update Teensyduino...

    You're welcome.
    No need to update Teensyduino 1.53, that is the latest.
    Yes, please delete any FlexCAN_T4 libraries under Documents\Arduino\Libraries\ to make sure you're using the one that came...
  19. Replies
    9
    Views
    213

    Hi Rafal, Saw from the photo's that you copied...

    Hi Rafal,

    Saw from the photo's that you copied my setup, good, than we have the same setup hardware-wise. Your wiring seems to be OK.
    Ran your code from message #7 and everything seems to be...
  20. Replies
    64
    Views
    965

    Hallo Frank, That worked! 10 kHz sine, LRCK...

    Hallo Frank,

    That worked! 10 kHz sine, LRCK 44.118 kHz, BCK 1.41178 MHz.

    Danke,
    Paul
  21. Replies
    64
    Views
    965

    Yes, that worked fine when I modified your...

    Yes, that worked fine when I modified your output_pt8211.cpp to support the PCM5102. The DAC will do 8x interpolation anyway, so the analog signal is looking OK.

    Danke,
    Paul

    edit: I will be...
  22. Replies
    64
    Views
    965

    Just did. Output freq is now 5 kHz, LRCK is...

    Just did.
    Output freq is now 5 kHz, LRCK is 22.059 kHz, BCK is 1.411 MHz.

    Paul
  23. Replies
    64
    Views
    965

    Found the LRCK to be 7.353kHz: 23245 And...

    Found the LRCK to be 7.353kHz:

    23245

    And the BCK to be 470.59kHz:

    23246

    Paul
  24. Replies
    64
    Views
    965

    Hi Frank, just tested this a few minutes ago....

    Hi Frank, just tested this a few minutes ago. Copied both output_is2.cpp & output_is2.h from PR #377 to C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio\.
    Using this sketch...
    ...
  25. Replies
    64
    Views
    965

    Ah, I didn't know that you were planning to...

    Ah, I didn't know that you were planning to modify output_i2s.cpp as well. Great!

    Thanks,
    Paul
  26. Replies
    64
    Views
    965

    If you want to connect a PCM5102 DAC board...

    If you want to connect a PCM5102 DAC board to a Teensy LC, you have to change output_pt8211.cpp, line 606, from:

    I2S0_TCR4 = I2S_TCR4_FRSZ(1) | I2S_TCR4_SYWD(15) | I2S_TCR4_MF /*| I2S_TCR4_FSE*/...
  27. You may want to have a look at this library:...

    You may want to have a look at this library: TeensyStep.
    Forum member Luni will definitely step in if you have further questions.

    Paul

    [edit] sorry for missuggesting: TeensyStep is not yet...
  28. Replies
    14
    Views
    237

    If your *only* goal is to create an inverted...

    If your *only* goal is to create an inverted audio signal [and no other processing], then I would go for opamps.
    See here for basic circuits. One inverting opamp and one non-inverting opamp and feed...
  29. Replies
    64
    Views
    965

    Yeah, it's the DAC that causes the 1 BLCK period...

    Yeah, it's the DAC that causes the 1 BLCK period shift of the left channel.
    Here is what the logic analyzer shows:

    23175

    Identical data for right & left 16 bit sample, 0x00008540.
    Timing of...
  30. Replies
    64
    Views
    965

    Thanks for your reply. By the way, there is...

    Thanks for your reply.
    By the way, there is newer datasheet on the PJRC website.
    I may hookup the logic analyzer and check the I2S frames [I'm not sure what I'm exactly doing when I start modifying...
  31. Replies
    64
    Views
    965

    While checking the output signals on the...

    While checking the output signals on the oscilloscope I noticed that the left channel [yellow] is trailing behind by 1 BCLK period when sending out a mono 10kHz sine on both channels:

    23171

    By...
  32. Replies
    64
    Views
    965

    Apparently it still works with AudioMemory(1);...

    Apparently it still works with AudioMemory(1); Does that make sense?
  33. Replies
    64
    Views
    965

    That solved it! 23158 And still some memory...

    That solved it!

    23158

    And still some memory left:

    Sketch uses 18284 bytes (28%) of program storage space. Maximum is 63488 bytes.
    Global variables use 5296 bytes (64%) of dynamic memory,...
  34. Replies
    64
    Views
    965

    Sure, no hurry!

    Sure, no hurry!
  35. Replies
    64
    Views
    965

    Thanks Frank. When I copy the new files and...

    Thanks Frank.
    When I copy the new files and compile the sketch on top of this thread, I see this on the scope [measured at the output connector of the PT8211]:

    Left channel
    23154

    Right...
  36. Replies
    64
    Views
    965

    Great! Thanks. I'll check it out once on Github....

    Great! Thanks. I'll check it out once on Github.

    Paul
  37. PCBway also does. No need to generate Gerbers. ...

    PCBway also does. No need to generate Gerbers.

    Paul
  38. Replies
    3
    Views
    242

    If soldering headers on a Teensy is an issue, why...

    If soldering headers on a Teensy is an issue, why don't you buy them with headers already soldered on? Ready to plug into a breadboard.
    I wouldn't call a Teensy that is twice the size 'teensy'...
  39. Replies
    14
    Views
    203

    Depends on what you need them for but since you...

    Depends on what you need them for but since you mentioned synthesizer and guitar, those speakers do not necessarily need to be high-end loudspeakers. In your case I would look for high-sensitivity...
  40. Replies
    9
    Views
    213

    Made a quick setup using a Teensy 4.0 and 2 of...

    Made a quick setup using a Teensy 4.0 and 2 of those cheap TI SN65HVD230 CAN-bus transceiver modules.
    This is the setup:

    23134
    I connected the CANL & CANH signals from both transceivers to a...
  41. Replies
    14
    Views
    203

    I'm afraid the only way to improve the lower...

    I'm afraid the only way to improve the lower frequency sounds, is to use a bigger speaker. You are talking about a bluetooth speaker so I'm guessing the speaker itsself is probably 2"-3" in diameter?...
  42. When it comes to manufacturing of small qty...

    When it comes to manufacturing of small qty PCB's, I have good experiences with PCBway.com.
    For designing the PCB and doing the schematics and layout, I used Autodesk's EAGLE. It's free for small...
  43. Replies
    64
    Views
    965

    Hi Frank, no need to spend your precious time on...

    Hi Frank, no need to spend your precious time on this adventure. As said above, I was just curious.

    Gruesse,
    Paul
  44. Replies
    64
    Views
    965

    Hi Paul, thanks for your extensive answer! I'm...

    Hi Paul, thanks for your extensive answer!
    I'm afraid the DMA stuff is a bit beyond my league.
    To be honest, I don't need this to work - I was just curious whether I could built a simple...
  45. Replies
    10
    Views
    532

    You're right. I opened a separate thread. Paul

    You're right. I opened a separate thread.

    Paul
  46. Replies
    64
    Views
    965

    Teensy LC, audio library support?

    Would it be possible to talk to the PT8211 DAC over I2S with a Teensy LC?
    This small program compiles without error for Teensy LC but no sine output out of the PT8211 kit. This code does work on a...
  47. Replies
    10
    Views
    532

    Looking into the MKL26Z64 datasheet, the I2S pins...

    Looking into the MKL26Z64 datasheet, the I2S pins are available on the 48pin package:

    23102

    From the Teensy LC schematic:

    pin 33 connects to Teensy pin 15/A1
    pin 34 connects to Teensy pin...
  48. Replies
    10
    Views
    532

    Would it be possible to talk to the PT8211 DAC...

    Would it be possible to talk to the PT8211 DAC over I2S with a Teensy LC?
    This small program compiles without error for Teensy LC but no sine output out of the PT8211 kit. This code does work on a...
  49. Replies
    12
    Views
    317

    I noticed that you define this: ...

    I noticed that you define this:

    AudioOutputAnalogStereo dacs1;
    However, a stereo DAC is not supported on Teensy 3.2:

    23065

    Not sure what you see on pins 9 & 11 though...

    Regards,
  50. Replies
    8
    Views
    222

    Just wondering, should you use the digital GND...

    Just wondering, should you use the digital GND connection for DAC output instead of the analog GND pin?
    I believe (but I could be wrong) the AGND pin is to be used for ADC input only.

    23062

    Is...
Results 1 to 50 of 397
Page 1 of 8 1 2 3 4