Search results

  1. A

    High sampling ADC for teensy 3.6

    Thank you for your suggestion. I was also trying this out and it gave really good results too. The only issue I have now is not being able to sample at low frequencies (lower than 1 kHz) without having the PDB getting stuck in that range and it won't go above 1 kHz anymore.
  2. A

    teensy 3.6 ADC resolution problem

    another thing if I may ask and sorry for that, so I am using the PDB to sample at different frequencies using ADC0 the problem is whenever I go below a threshold the PDB stops working properly in a way that it gets stuck at a specific sampling frequency or something and I can run it back at...
  3. A

    teensy 3.6 ADC resolution problem

    Thank you so much, I have double checked my circuit and after some testing, I was able to clearly see that it is the noise from the circuit that is affecting but I wasn't able to see it at first in the oscilloscope.
  4. A

    teensy 3.6 ADC resolution problem

    Hello, I am using the ADC_0 in the teensy 3.6 as follows: std::array<volatile uint16_t, 4096> buffer1; volatile size_t write_pos1 = 0; \\the setup void setup() { adc.adc0->setAveraging(1); adc.adc0->setResolution(12); adc.adc0->setConversionSpeed(ADC_CONVERSION_SPEED::HIGH_SPEED)...
  5. A

    High sampling ADC for teensy 3.6

    Thank you, I am looking for a good envelope follower circuit that can work in the range between 100 kHz to 1 MHz. I tried overclocking the F_BUS but I started losing some information and it doesn't work like it should. Also as Paul said reaching 5 MSample/sec would be difficult (if not...
  6. A

    High sampling ADC for teensy 3.6

    Hello everyone, I am working on a project where I need to sample a sine wave then fit it to get it's magnitude, I need to cover the range of 1 Hz to 1 MHz. I have already accomplished the range from 1 Hz to 100 kHz with the internal ADC of the teensy 3.6 and I connected it to python to fit...
  7. A

    teensy 3.6 is getting hot and not booting

    Thanks a lot, everyone, I have already ordered a new one and I hope it was only caused by the tolerance and this won't happen again.
  8. A

    teensy 3.6 is getting hot and not booting

    I believe the AD8950 is not sending any data to the controller but it might be drawing some current. I have just double checked and it can work with 3.3V and I will connect it like that and hopefully, this won't happen anymore.
  9. A

    teensy 3.6 is getting hot and not booting

    VCC is 5V, and GND is connected to the ground. I am just using the lesft side of the module and taking the sine-wave from pin 1. I would attach a photo but it is on a breadboard and won't be so clear. thats all from the module and I am also connecting 3 switches to pins 1,2,3 and using the ADC...
  10. A

    teensy 3.6 is getting hot and not booting

    directly using those pins W_CLK_PIN = 6; FQ_UD_PIN = 7; DATA_PIN = 9; RESET_PIN = 10; I am using the module in the below picture
  11. A

    teensy 3.6 is getting hot and not booting

    yes I believe it is the fuse. I did disconnect it and it is still not working and it heats up once I connect it to the USB. Is there any way of fixing this!? since it is not the first time so I would guess it is something I am connecting maybe the AD9850 (I am using the module for that which...
  12. A

    teensy 3.6 is getting hot and not booting

    I am working with a teensy 3.6 and I am just connecting it to control some switches and the AD9850 DDS and using one of the two internal ADCs. this is not the first time this happens, I thought I was doing something wrong at first but now I am pretty sure I didn't do anything but it is being...
  13. A

    Teensy 3.6 SPI transaction speed problem

    Thank you so much and sorry for asking a lot but my programming skills are limited when it comes to using the registers and stuff like that. I tried the transfer function you mentioned and it is still taking too much time I guess 1.3us like the previous one. Now I was trying the code you wrote...
  14. A

    Teensy 3.6 SPI transaction speed problem

    Thanks alot for making it clearer, but as I mentioned before I am interested in much lower time per sample and I want to use a higher clock to achieve 5 MSPS which is around 0.2us per sample. I am not even able to get 1 MSPS which is 1us even after seting the sck to values > 24 MHz. Is that not...
  15. A

    Teensy 3.6 SPI transaction speed problem

    Actually, in my case the CS pin is what triggers the ADC to sample, and then the SPI should read 2 Bytes. I tried to use setCS but it doesn't work and it was mentioned ( setCS() is a special function, not intended for use from normal Arduino programs/sketches)!! Also, you mentioned that it would...
  16. A

    Teensy 3.6 SPI transaction speed problem

    it is still not working and the transaction takes around 2 micro seconds I mean this portion digitalWriteFast (slaveAPin, LOW); SPI0_SR = SPI_SR_TCF; SPI0_PUSHR = 0 | SPI_PUSHR_CTAS(1); while (!(SPI0_SR & SPI_SR_TCF)) ; // wait values[blinkCount]=SPI0_POPR...
  17. A

    Teensy 3.6 SPI transaction speed problem

    How can I do that? simply by SPI.begin? and what if I had 2 devices?
  18. A

    Teensy 3.6 SPI transaction speed problem

    Hello, I am using teensy 3.6 to interface with the LTC2315-12 ADC demo board. The ADC can reach 5 MSPS if the clock (SCK) is 87.7 MHz. I was able to make the ADC work but for a maximum of 500 kSPS with SCK = 16 MHz, the problem I am facing that the transaction (from SPI.beginTransaction to...
  19. A

    High speed (10Mhz) parallel transfers from a 10MSPS ADC on a Teensy 3.6?

    That's great thank you so much this would really help a lot. so we can say that the maximum we can go to is 28 MSPS if we used a 10 bit ADCs right? .. regarding what you said about the short bursts what I am planning to do is taking around 1024 sample at frequencies from 1 Hz to 1 MHz, I believe...
  20. A

    High speed (10Mhz) parallel transfers from a 10MSPS ADC on a Teensy 3.6?

    Hi there, I was wondering if things worked at the end. in my case I need to sample a 2 MHz sin wave and I want to sample it with at least 10 MSPS, if things worked out with you at the end can you share the method (the ADC reading part code) that you used or is it the same in comment #8, in my...
  21. A

    Teensy 3.6 ADC_1 stuck when using PDB

    Thank you very much that was really helpful, the problem is now solved now and both interrupts are working now and I am able to stop the PDB and re-run it.
  22. A

    Teensy 3.6 ADC_1 stuck when using PDB

    Thanks a lot for your time and help, I guess my teensy has a problem since the ADC_1 isn't working and when I turn the PDB off, I can't actually get it working again and I keep getting the previous values. and does it matter what clock frequency I choose?! I modified the code as follows to see...
  23. A

    Teensy 3.6 ADC_1 stuck when using PDB

    Thank you very much, that would be really helpful. However, the ADC1 interrupt doesn't seem to work still since my results are as follows: Current Buffer index the ISR is writing to: 905 0 [4095, 0] [ 0, 0] [4095, 0] [ 0, 0] [4095, 0] [ 0, 0] [4095, 0] [ 0, 0]...
  24. A

    Teensy 3.6 ADC_1 stuck when using PDB

    Thank you for your reply, I think I got your point but the idea is I need to use the timing of the PDB to have that precise frequency which is why I am reading in the PDB intterupt. When I try to use the ADC interrupt I don't get the right sampling frequency that I set in the PDB. Also, ADC_1...
  25. A

    Teensy 3.6 ADC_1 stuck when using PDB

    Hello, I am using teensy 3.6 to read from two pins using ADC_0 and ADC_1 using PDB, I was able to read on different frequencies using the following code which works fine, but for one reading only. After reading the values if I tried to start the PDB again and read the valyes it works for ADC_0...
  26. A

    Teensy 3.6 ADC sampling error

    Okay that make sense, Thanks a lot. Is there any reference for those since I haven't really used them before. Thanks in advance :D
  27. A

    Teensy 3.6 ADC sampling error

    This is the portion you asked about from my code: void setup() { adc->setAveraging(1); // set number of averages adc->setResolution(16); // set bits of resolution adc->setConversionSpeed(ADC_CONVERSION_SPEED:: HIGH_SPEED); // change the conversion speed...
  28. A

    Teensy 3.6 ADC sampling error

    Thanks for your reply, actually I am letting it run so I can see whats the maximum, and the 1 micro sec error is there all the time even if I had some delay inside the loop. I even tried to run a simple test with the for loop just counting the time as follows: for (int i=0;i<=1025;i++)...
  29. A

    Teensy 3.6 ADC sampling error

    I am using the teensy 3.6 and I need to sample 2 signals at the same time to get the phase and amplitude of each, and I am having the following problems: - There is a 1 micro sec delay in the sampling period, so for example if I set it to 1 micro which gives me 1 MHz sampling rate the ADC...
Back
Top