And for completeness, here is the output of the Adafruit UDA1334-based board:
23404
Almost as good as a PCM5102A-based board.
Paul
Type: Posts; User: PaulS
And for completeness, here is the output of the Adafruit UDA1334-based board:
23404
Almost as good as a PCM5102A-based board.
Paul
Here you go:
23403
Yep.
Paul
Yes, using a Scarlett 2i2 USB audio interface, sampling at 24 bit/96 kHz and the data fed into TrueRTA, shows more realistic values than the scope:
23400
Sure, not calibrated though...
Paul
You indeed did so: link.
Paul
Hi Frank, thanks for making the list.
I think the TDA1543A [..A for Japanese format] also works with output PT8211. Can't verify it though.
Paul
Finally, 5 months(?) after ordering on Ebay, 2pcs Philips TDA1543 in DIP8 package showed up in the mailbox today. TDA1543, not the TDA1543A.
The TDA1543 accepts regular I2S format, the TDA1543A...
Yes, my Siglent 1202X-E has issues in that area. That's what I emailed them about.
I'm expecting that when I keep the signal within screen limits, I'm not overdriving it. But the pictures below tell...
Agree with PhilB. Here is a user manual on this switch.
Connect Teensy's 3V3 output to pin "+" on the rotary encoder board.
Paul
Hi Deane, just thinking out loud here. How does the analog signal that you want to sample, look like? I assume it's pulse-like because that is what the laser sends out. In that case, could you use a...
Attachment is fixed. I can see your scope screen.
Here is what I see with the code of msg #8 and measured on pin 15 [fasterPin]:
23360
The long pulse measures 97.2 ns.
Paul
Hi Frank, your attachment shows "Invalid Attachment specified. If you followed a valid link, please notify the administrator"...
Paul
For simplicity, I wouldn't mind standardizing on LRCK = 44.1 kHz, BCK = 1.4117 MHz [32.LRCK] and MCLK = 11.29 MHz for all I2S DAC's [but maybe this is too short-sighted].
I checked on the scope...
Allright, thanks for the confirmation.
Paul
Just checking here if these measured numbers are as expected:
Teensy 3.2, PCM5102A, LRCK = 44.1 kHz, BCK = 2.8224 MHz [64.LRCK], MCLK = 11.29 MHz, "AudioOutputI2S i2s1;"
Teensy...
Are you sure you need to feed 3V3 to the breakout board?
From what I can tell from the photo is that you connect Teensy's 3V3 output to a V+ pin on the breakout board. Is the V+ on the breakout...
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...