Thanks very much, it's pretty clear!
Paul
Type: Posts; User: PaulS
Thanks very much, it's pretty clear!
Paul
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
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...
Well, that seems like the issue we see, but I assume usbser.sys is updated by now. Paul's video is quite convincing.
Paul
@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...
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
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...
Yeah, I tend to think so too. Powershell is also working as expected with Teensy and FTDI dongle.
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...
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...
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...
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
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...
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...
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...
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...
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);
...
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...
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...
Hallo Frank,
That worked! 10 kHz sine, LRCK 44.118 kHz, BCK 1.41178 MHz.
Danke,
Paul
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...
Just did.
Output freq is now 5 kHz, LRCK is 22.059 kHz, BCK is 1.411 MHz.
Paul
Found the LRCK to be 7.353kHz:
23245
And the BCK to be 470.59kHz:
23246
Paul
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...
...
Ah, I didn't know that you were planning to modify output_i2s.cpp as well. Great!
Thanks,
Paul
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*/...
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...
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...
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...
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...
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...
Apparently it still works with AudioMemory(1); Does that make sense?
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,...
Sure, no hurry!
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...
Great! Thanks. I'll check it out once on Github.
Paul
PCBway also does. No need to generate Gerbers.
Paul
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'...
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...
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...
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?...
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...
Hi Frank, no need to spend your precious time on this adventure. As said above, I was just curious.
Gruesse,
Paul
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...
You're right. I opened a separate thread.
Paul
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...
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...
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...
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,
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...