Search results

  1. D

    Teensy 4.0 PORT manipulation to read/write data to multiple pins

    @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.
  2. D

    Teensy 4.0 PORT manipulation to read/write data to multiple pins

    @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 of these on the card? Also, what is meant by "// move two two bit fields from the lower word into...
  3. D

    Reading and writing words on Teensy 4.0

    @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 speed? Is it 1/600 million seconds per cycle?
  4. D

    Reading and writing words on Teensy 4.0

    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 difficult to work with and do not have 10 bits. So I want to create a little test code to see how fast I...
  5. D

    Teensy 4.0 FOR statement not working

    @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 realize, but should have, that the setup() should be complete (with end bracket) before starting the...
  6. D

    Teensy 4.0 FOR statement not working

    "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 my code. So I put "void loop() {" above the LED blink FOR statement and here is what happened...
  7. D

    Teensy 4.0 FOR statement not working

    @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 suppose Arduino used it because it is open sourced. It has way too many rules and punctuation...
  8. D

    Teensy 4.0 FOR statement not working

    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 there is no ending bracket to close the starting bracket in the "void loop () {" line. So I put it...
  9. D

    Teensy 4.0 FOR statement not working

    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 and putting it under void SETUP. That did not fix it but moving the bracket around to make it look...
  10. D

    Teensy 4.0 FOR statement not working

    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 description means nothing to me! So here is a description of how to use the FOR loop in Arduino C...
  11. D

    Teensy 4.0 pulse output

    @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 1 MHz sample rate max. so I would still need an external A/D.
  12. D

    Teensy 4.0 pulse output

    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 1425 but there are probably others that are better. Yes, this is high speed data acquisition. An...
  13. D

    Teensy 4.0 pulse output

    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 chip is over 1000 pages and I couldn't find it in there. Where did you get the 10 MHz number for...
  14. D

    Teensy 4.0 pulse output

    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 the timing would look something like this (see attachment). What I don't know is if the built in A/D...
  15. D

    Teensy 4.0 pulse output

    More questions 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 have never seen a description of: Someone told me that I could increase the speed...
  16. D

    Teensy 4.0 pulse output

    @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 a lot to work through to make this function the way I want. If we eliminate the delay at the...
  17. D

    Teensy 4.0 pulse output

    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 but when I run the software now all I get is a 7.2 seconds period square wave on pin 13 and no...
  18. D

    Teensy 4 not supported by ADC examples

    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 the multiple iterations from the conversionSpeed file in the examples for ADC and having a problem...
  19. D

    Teensy 4 not supported by ADC examples

    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 please post that describes these codes (they must be specific to the Teensy I guess). For example...
  20. D

    How to setup externally triggered DMA transfer from ADC to RAM (T3.5/T4)

    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 fastest way to do this is by the readContinuous command that is in the Teensy 4.0 ADC examples. I...
  21. D

    Teensy 4 not supported by ADC examples

    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 0.0000 Volts at the end. Can you please take a look at the results below? Also, what is the...
  22. D

    Teensy 4 not supported by ADC examples

    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 is PDB? It also sounds like the "Continuous mode" might be useful if can go faster than a single...
  23. D

    Teensy 4 not supported by ADC examples

    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 to VERY_HIGH_SPEED and Sampling set to VERY_HIGH_SPEED. This is disappointing for my project. I...
  24. D

    Teensy 4 not supported by ADC examples

    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 move on to testing the speed and accuracy (at speed) of the Teensy 4.0 A/D.
  25. D

    Teensy 4 not supported by ADC examples

    Still nothing printed on the screen. What do you mean by opening a serial monitor. How do I do that?
  26. D

    Teensy 4 not supported by ADC examples

    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 intend to use. The program is attached. The LED blinks rapidly as I see the code for that but...
  27. D

    Teensy 4 not supported by ADC examples

    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 overwrite the old version but I guess that is what it did. Kurt E -- I can see that the ADC_TEST...
  28. D

    Teensy 4 not supported by ADC examples

    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 the voltage on the screen but it does nothing. So I reloaded the last program that I had been...
  29. D

    Teensy 4 not supported by ADC examples

    So no one proofed this example?
  30. D

    Teensy 4 not supported by ADC examples

    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.
  31. D

    Teensy 4 not supported by ADC examples

    Thanks. I seem to have 1.48. Will download the 1.50 version tomorrow.
  32. D

    Teensy 4 not supported by ADC examples

    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.
  33. D

    Teensy 4 not supported by ADC examples

    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 says #error Board not supported. So what is the best way to use the AD converter? Will the Arduino...
  34. D

    Solved: ADCs on Teensy 4.0 are way too fast?!

    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 and having the comments in German makes it much harder. Any possibility you could translate the...
  35. D

    Teensy 4.0 no longer found

    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 consistent I can work with that. Thanks for the help. Nothing like bothering the chief engineer...
  36. D

    Teensy 4.0 no longer found

    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.
  37. D

    Teensy 4.0 no longer found

    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 program from running. Here are the results logged by the small Teensy loader program that runs in the...
  38. D

    Teensy 4.0 no longer found

    Frank, why is it not more accurate?
  39. D

    Teensy 4.0 no longer found

    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 this code that will explain what is going on here? "For Teensy_4 there is a " static inline void...
  40. D

    Will Teensy 4.0 work with MSC Bascom software?

    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 architecture. ===================================== Best regards, MCS support
  41. D

    Teensy 4.0 no longer found

    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 really wrong. I restarted the Arduino IDE program. No luck. I shut off the computer (Windows 10)...
  42. D

    Teensy 4.0 no longer found

    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 once a second. Now the program compiles OK but upon upload I get a message "No Teensy boards found...
  43. D

    Will Teensy 4.0 work with MSC Bascom software?

    I have put this question to the MCS customer service department and will post their reply here.
  44. D

    Will Teensy 4.0 work with MSC Bascom software?

    That should have been MCS (not MSC). Sorry.
  45. D

    Will Teensy 4.0 work with MSC Bascom software?

    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
  46. D

    Teensy 4.0 pulse output

    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 start experimenting. Where is the best place to get one in the US?
  47. D

    Teensy 4.0 pulse output

    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 generating pulses this short with it yet? How short a pulse can it output at full speed? Thanks.
Back
Top