@MakerBR Could you please help out a newbie and sprinkle some comments in your code above (From July 15th) to explain what is going on?
Thanks. There is a lot of unfamilar terms in there.
Type: Posts; User: Deane
@MakerBR Could you please help out a newbie and sprinkle some comments in your code above (From July 15th) to explain what is going on?
Thanks. There is a lot of unfamilar terms in there.
@fragster I am having a hard time visualizing what is going on in the simpler code by @jonr. On the pin diagram card that comes with the Teensy 4.0 there is no pin listed as GPI06. What is the name...
@defragster Thanks for the quick and detailed response. There is a lot going on here. I will have to study the code and try a few examples.
If it takes 9 cycles, how long is that at 600 MHz clock...
I have to use an external 10 bit A/D on my project because the internal one is not fast enough. I was going to have the A/D stuff data into a FIFO memory but I am finding that these chips are...
@defragster Yes I learned all those older languages too. No semicolons required.
So I did use that little trick about matching the start and ending brackets and all 3 showed up but I did not...
"C" will always suck.
@defragster -- I removed loop to see what would happen and it gives a long hash of words ending in "undefined reference to loop" even though the word loop does not appear in...
@KurtE OK, glad to know that the box does not mean something is wrong.
Thank you everyone for helping me figure this out. It is so frustrating learning C. It is such a clumsy old language. I...
I also noticed that the "void loop()" is not even used in the example. Does that mean I can just eliminate it from the code or is it always required even if not used?
Also, in the example code...
I know the Teensy is not the problem, it is the software.
If X is an integer constant does that mean I cannot assign a new value to it?
I have already tried removing x from the CONST assignment...
I hate C. It gives me nothing but problems. Where is a nice straightforward command such as FOR X= 1 to 3 (BASIC).
I have tried many variations of this program and nothing works PLUS the error...
@MarkT : Are you suggesting to integrate the analog output of the APD and sample it at a slower rate, like maybe once every 200 ns (5 MHz rate)? I suppose that could work but the internal A/D has a...
PaulS, no that wouldn't work as I need to know the amount of signal coming back. That is essential and important data. It would not be either on or off.
I have a 20 Mega samples per second A/D Maxim...
I was thinking the A/D could do it because the processor is 600 MHz and as of last January no one seemed to know the speed of the A/D.
Maybe more info has come out since then. The manual for the ARM...
Thanks for informing me about the tricks in getting max speed from the Teensy 4.
I would be happy to explain the goals. I am trying to build a specialized LIDAR system with a range up to 1km.
So...
What is the purpose of the line?
for (;;)
Wouldn't the loop run forever without this for statement because it is already inside the "loop()" command?
Also, I have a question about a command I...
@Frank B Thank you for the updated code. It works. However the code I was using was an offical PRJC demo program so I don't know why the disable Interupts command was in there to start with.
I have...
After giving up on the Teensy 4 for lack of fast AD conversions last January I dragged it out and started playing with it as my lidar timing generator. My notes say I had it creating 100 ns. pulses...
Thanks, there is some info on the ADC software there but nothing basic that tells me what "AUTO' is or what "-->" means or how the interupt system works in the T4.
Anyway, I am stripping out all...
I have been trying to understand what is going on in this conversionSpeed example but there are instructions in this code that are not in the Arduino code reference. Is there a link someone can...
I am also interested in operating the ADC as fast as possible and then transferring about 20 to 30 readings to RAM so I will be watching this thread. Right now someone has posted that they think the...
Hi Pedvide,
Thanks for pointing this example out. I have been running this example a few times now but it always fails to show a Time and Voltage near the end of the Continuous Mode. It also shows...
Kurt, Yes I did read a lot of that a couple of days ago. I did not understand some of it. For example "There are two ways to do periodic conversions: using an IntervalTimer or using the PDB."
What...
FYI -- It looks like the fastest the Teensy 4.0 can get is about 1.1 microseconds for reading the A/D. This is using the 600 MHz clock speed, Averaging set to 1, Resolution to 10 bits, Conversion set...
Kurt, thanks! Easy and now everything works. A/D is reading accurately and reporting. Sorry for bothering you with basic beginner stuff. I have not played with the IDE much.
Thanks to all. Now I can...
Still nothing printed on the screen. What do you mean by opening a serial monitor. How do I do that?
Thanks Kurt E. I deleted the 4 Ring Buffer files in the ADC folder and now it compiles and seems to run the simple readAnalog example as modified by me to remove all the ADC1 stuff that I don't...
I attempted to find a way to delete the old TeensyDuino program first but it is not listed as a program in the Windows control panel. When I installed the new version it never asked me if I wanted to...
In an effort to read any analog signal I tried the Arduino example for simple analogRead. (Examples>Basics>AnalogReadSerial) It compiled and loaded but nothing happened.
It was supposed to print...
So no one proofed this example?
OK, now loaded TD 1.50 but frustratingly, I am getting the same problem. I tried compiling ADC_TEST from Examples.
The verbose error output is attached.18973
Thanks. I seem to have 1.48. Will download the 1.50 version tomorrow.
I don't see how to determine that.The menu items in the small Teensyduino box are grayed out.
I just downloaded it on December 30 and the install file is 65,080K bytes.
I am starting to work with the ADC so I went to Files > Examples > Teensy 4.0 examples > ADC > (pick any example file)
None of these will compile. I only tried 3 but they all give an error that...
Hello Marty Brown. I am in need of doing AD conversions of around 100 ns and then store the number in RAM within ~50 ns after that. Your code does not look much like Arduino code to my untrained eye...
Paul, that is what I see also: A 22ns overhead using this same code. I am shooting for 100 ns pulse width and I had to set the delay to 78 ns to achieve that. This is a bit annoying but if it remains...
NEVER MIND. Found out the cable I grabbed is a charge-only! Too many USB cables kicking around.
I thought of what Paul wrote late last night.
Sadly, I am back to the same problem I started out with again. This time rebooting the computer is not bringing back the red LED. It never comes on and pressing the button only stops the blink...
Frank, why is it not more accurate?
Thanks to both of you for the reply. And yes, Paul, that was a great explanation of the red LED. Perfect for a beginner like me.
Defragster, I don't understand this line. Can you link to details of...
Sorry for not replying sooner. MCS responded on Jan 20th. The software will not work on the 4.0.
Here is their reply:
Hi Deane
No, i am sorry. This teensy board has a complete different CPU...
OK, I got it working. Thanks for the code review and other ideas. I tried loading the original Blink program but that gave me the same "No Teensy found..." message.
So I figured something had to be...
My first efforts: I modified the Blink program that comes with it to shorten the on time to 100ms.
That worked OK so I added a few lines of code to send out a 1 microsecond pulse on another pin...
I have put this question to the MCS customer service department and will post their reply here.
That should have been MCS (not MSC). Sorry.
The 4.0 is new so it is not mentioned on the MSC website. I saw this software link in the Getting Started menu and it looks easy to use.
Has anyone tried it with the 4.0 yet?
DW
Thanks Paul. Looks like this should work well if it can cycle at 150 MHz (6 nanoseconds). 100 nanoseconds should be easy.
Why did you say "this context possibly not"?
I think I will buy one and...
I am considering a project in which the processor controls a laser to turn it on for 100 nanoseconds. With the fast speed of this new Teensy 4 I am thinking this could work. Has anyone tried...