Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: manitou

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3,830
    Views
    392,321

    you could comment or ifdef out the line that...

    you could comment or ifdef out the line that turns off 24mhz and provide comments about the benefits/problems...

    There might be a way to use Quad Timer with one of the timer input pins as clock...
  2. Replies
    3,830
    Views
    392,321

    So your lib changes include changing the source...

    So your lib changes include changing the source clock of GPT to 150mhz? Will that be viable since the the source clock for PIT timer also changes, and things like interval timer will break? Also...
  3. Replies
    3,830
    Views
    392,321

    Well, that's discretization error from the PWM...

    Well, that's discretization error from the PWM divisors (150/4=37.5, /5 =30, 25, 21.4, 18.75, ...)
  4. Replies
    3,830
    Views
    392,321

    Well, the proof may be in the pudding -- since it...

    Well, the proof may be in the pudding -- since it doesn't want to count above 10mhz.

    So I changed the test sketch to not use the interval timer (spin on micros() for a second), and before...
  5. Replies
    3,830
    Views
    392,321

    Hmm, maybe you are lucky to get that. On the T4...

    Hmm, maybe you are lucky to get that. On the T4 the GPT is clocked at 24mhz, and ref 51.3.1 says "input frequency should be less than 1/4 of frequency of the peripheral clock (ipg_clk)". Now i do...
  6. Replies
    3,830
    Views
    392,321

    I have several QTImer examples at...

    I have several QTImer examples at https://github.com/manitou48/teensy4 including various PWM choices, timer capture, and cascaded/chained timers
  7. Replies
    3,830
    Views
    392,321

    predator/prey stochastic simulation Tested T3...

    predator/prey stochastic simulation

    Tested T3 predator/prey sketch on T4B2R with ILI9341_t3 with 24x32 cell "world". Times (us) for one simulation step (graphics time not included) is
    ...
  8. Replies
    3,830
    Views
    392,321

    FWIW, i added my sketch to post #3795

    FWIW, i added my sketch to post #3795
  9. Replies
    3,830
    Views
    392,321

    Don't you get 15 mhz with TMR3_COMP10 = 5...

    Don't you get 15 mhz with

    TMR3_COMP10 = 5 -1;
    TMR3_CMPLD10 = 5 -1;
    My scope shows 37MHz with "2-1"

    // PWM qtimer 3 chnl 0 pin 19 16-bit timer...
  10. Replies
    3,830
    Views
    392,321

    Right. it is such an intuitive architecture :(

    Right. it is such an intuitive architecture :(
  11. Replies
    3,830
    Views
    392,321

    i edited my previous post ....you need to set low...

    i edited my previous post ....you need to set low bit in IOMUXC_GPT2_IPP_IND_CLKIN_SELECT_INPUT (ref pg 1000)
  12. Replies
    3,830
    Views
    392,321

    I never tried it on 1062 cause my breakout board...

    I never tried it on 1062 cause my breakout board doesn't have pogo pin on pin 25. It should work with pin 25 just like it does with 1050.

    i've not tried GPT2 -- GPT2 CLK pin is not listed in...
  13. Replies
    3,830
    Views
    392,321

    Re: neopixel I again hooked up 8-LED neopixel...

    Re: neopixel
    I again hooked up 8-LED neopixel stick to T4B2R (3v3, gnd, pin 1) and ran simple example (with pin 1) from hardware/teensy/avr/libraries/Adafruit_NeoPixel, and it still works for me....
  14. Replies
    3,830
    Views
    392,321

    Re: QTIMER in my testing, i think the compare...

    Re: QTIMER

    in my testing, i think the compare values loaded into regs need to be n-1

    TMR3_COMP10 = 10000 -1; // 6.7nS per clock = 66.7uS for 10,000 clocks on each half cycle
    ...
  15. FWIW I have some 434MHz adafruit breakouts that...

    FWIW I have some 434MHz adafruit breakouts that i have run with T3.2. I hooked one up to T3.6 and confirmed that it works. I also ran your sketch (with 434 frequency) and confirmed your sketch on...
  16. I have an Adafruit ATWINC1500 that I used on T3.2...

    I have an Adafruit ATWINC1500 that I used on T3.2 back in 2016. Arduino WiFi101 library is the correct library to use. I got out my ATWINC1500-MR210PB (firmware 19.4.4) today and wired it up to...
  17. Replies
    3,830
    Views
    392,321

    Note, i added some edits to my post #3685 that...

    Note, i added some edits to my post #3685 that suggests for simple compare interrupts, OCR1 differs from OCR2 and OCR3 (in restart mode, FRR = 0) ref 51.5.1.1
  18. Replies
    3,830
    Views
    392,321

    can you provide one or more sketches that...

    can you provide one or more sketches that demonstrate the strange GPT2 behavior? Does the "compare 3" interrupt fire, independent of toggling the compare3 output pin? The core...
  19. Replies
    3,830
    Views
    392,321

    maybe use T4's MQS pin(s) with capacitor and...

    maybe use T4's MQS pin(s) with capacitor and speaker https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197727&viewfull=1#post197727

    AudioOutputMQS audioOutput;...
  20. Replies
    3,830
    Views
    392,321

    maybe T4 is locked up with run away interrupts,...

    maybe T4 is locked up with run away interrupts, try holding program button for 15 s to erase flash
  21. Replies
    3,830
    Views
    392,321

    T4 ISR's are finicky, are you using asm volatile...

    T4 ISR's are finicky, are you using asm volatile ("dsb") in your ISR? (or spinning til flag is cleared)

    https://github.com/manitou48/teensy4/blob/master/gpt_isr.ino
  22. Replies
    3,830
    Views
    392,321

    ? uSDFS SPI problems with uSD on audio shield ...

    ? uSDFS SPI problems with uSD on audio shield T4B2R

    I fetched the latest uSDFS and MSC from github and am running 1.8.8 1.47-beta4 on T4B2R. I modified uSDFS example to just do directory...
  23. Replies
    3,830
    Views
    392,321

    Not. for T4B2 breakout i have ...

    Not. for T4B2 breakout i have

    T4 audio header silk screen
    13 to SCK (14)
    12 MISO (12)
    10 CS (10)
    11 ...
  24. Replies
    3,830
    Views
    392,321

    The NXP SDK has examples using the GPT when...

    The NXP SDK has examples using the GPT when clocked from Peripheral clock @150mhz. Of course, SDK core structure is much different from Teensy core. The SDK also has a "clock configuration" gui that...
  25. If you're not seeing 3v3 on SDA, then you need to...

    If you're not seeing 3v3 on SDA, then you need to check your wiring/soldering. Or maybe one of your I2C devices is misbehaving. Can you disconnect each I2C device to identify the faulty device?
    ...
  26. Replies
    4
    Views
    159

    My first reply was faulty, I thought you were...

    My first reply was faulty, I thought you were trying to use AudioInputAnalogStereo() with two pins -- which required one pin on ADC0 and the other on ADC1. Your question was about just one pin...
  27. Replies
    3,830
    Views
    392,321

    I'm pretty sure GPT capture works on T4 (1062),...

    I'm pretty sure GPT capture works on T4 (1062), see https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=204630&viewfull=1#post204630
    GPT2 capture 1 GPIO_AD_B1_03 pin 15 Serial3 Rx...
  28. Wow, that's a lot of components! Do you have a...

    Wow, that's a lot of components! Do you have a scope? Observing I2C SCL and SDA in action might be enlightening.

    you also might try the i2c_t3 lib in place of Wire lib. It has a Wire.resetBus()...
  29. ADXL345 data sheet says max SPI is 5mhz. you...

    ADXL345 data sheet says max SPI is 5mhz. you might modify library to use slower SPI clock.

    ADXL345::ADXL345(int CS) {
    status = ADXL345_OK;
    error_code = ADXL345_NO_ERROR;

    gains[0] =...
  30. Replies
    3,830
    Views
    392,321

    The T4 crypto accel (DCP) is not the same as...

    The T4 crypto accel (DCP) is not the same as T3.5/T3.6 (MMCAU). Searching the first few posts of the this thread, post #4 i think, mentions crypto accel with some preliminary results at...
  31. Replies
    4
    Views
    159

    A little above my pay grade, but audio lib wants...

    A little above my pay grade, but audio lib wants to have an ADC pin on ADC0 and the other on ADC1 (A2 and A3 can satisfy that, but i don't think A16 and A17 are on distinct ADC controllers) See...
  32. Re: pullups with device powered as described...

    Re: pullups
    with device powered as described in post #6, what voltage do you read on SDA and SCL?

    A similar device, discussed at...
  33. Replies
    3
    Views
    96

    you also need to connect T3.2 DAC pin to audioIn...

    you also need to connect T3.2 DAC pin to audioIn on the shield

    here is a sketch to play a sine wave through DAC to prop shield (you need to start up serial monitor for it to work)

    // prop...
  34. Replies
    3,830
    Views
    392,321

    you might read further in that thread about...

    you might read further in that thread about adding asm volatile ("dsb") ; to ISR.
  35. Replies
    3,830
    Views
    392,321

    SPISettings strangeness?? Here is a little SPI...

    SPISettings strangeness??

    Here is a little SPI performance sketch that behaves differently if a SPISettings variable is used in SPI.beginTransaction() vs embedded settings.

    // t4 spi
    // bus...
  36. Replies
    3,830
    Views
    392,321

    visit...

    visit https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=195605&viewfull=1#post195605
  37. Replies
    2
    Views
    203

    You need to remove the heavy lifting out of the...

    You need to remove the heavy lifting out of the ISR. With only one SPI device, you can just do SPI.beginTransaction() once. You can also use digitalWriteFast() to save a few nanoseconds. Using...
  38. Replies
    17
    Views
    692

    maybe your non-playing WAV files are not...

    maybe your non-playing WAV files are not formatted correctly. here are parameters for Paul's WAV files
    SDTEST1.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
    ...
  39. FWIW, i ran your sketch adding a sine-wave on the...

    FWIW, i ran your sketch adding a sine-wave on the T3.2 DAC (A14) as my 1khz input jumpered to A3 and hooked to scope. I didn't have any FastLEDs connected. sine wave on scope had no noise. (maybe...
  40. You could use the DAC (A12) jumpered to audioIn...

    You could use the DAC (A12) jumpered to audioIn on the propshield with audio amp pin enabled to drive an 8 ohm speaker connected to shield. Here's a link on 8-bit WAV for LC ...
  41. Replies
    3,830
    Views
    392,321

    One of my GPS requries 5v, i'd just use a 2nd USB...

    One of my GPS requries 5v, i'd just use a 2nd USB to T3.2 and use its Vin to power the GPS, and jumper the PPS pin to one of the Serialx male pins on the T4 breakout.
  42. Replies
    49
    Views
    13,024

    Discussion reminds of ye old "rugged arduino" ...

    Discussion reminds of ye old "rugged arduino" https://www.rugged-circuits.com/10-ways-to-destroy-an-arduino

    Or use littlebits to help you properly connect components. :D
  43. Replies
    3
    Views
    160

    please provide the sketch you are running and...

    please provide the sketch you are running and maybe a photo of your setup and which encoder are you using? (vendor/model) Do you have soldered headers?
  44. Here is a T3.2 sketch where you can define...

    Here is a T3.2 sketch where you can define FASTISR to have the core transfer to your ISR on a pin interrupt. you are then responsible for figuring out which pin in PORTC interrupted and clearing the...
  45. Replies
    34
    Views
    1,122

    can you post your "sketch of death" that is...

    can you post your "sketch of death" that is running on your T3.6?
  46. The sparkfun library is based on Wire lib, but...

    The sparkfun library is based on Wire lib, but you have also included i2c_t3.h library which is not compatible with Wire.h -- you can't use them both in one sketch. For example, the begin() for each...
  47. Replies
    3,830
    Views
    392,321

    I have examples using internal DAC to do ADC...

    I have examples using internal DAC to do ADC compare, and using ADC_ETC to do timed ADC reads, and free-running ADC with double-buffered DMA, BUT i never found a way to do what audio lib needs: ...
  48. Did you buy your Teensy 2 from PJRC or an...

    Did you buy your Teensy 2 from PJRC or an approved Teensy distributor? Often counterfeits are unreliable.

    https://forum.pjrc.com/threads/23601-Official-Distributors
  49. Replies
    3,830
    Views
    392,321

    Sorry you misunderstood my poor attempt at humor....

    Sorry you misunderstood my poor attempt at humor. I had actually tried to reply to your post with just "sure", and the forum gui (vBulletin) would not accept such a short reply. go figure.
  50. Replies
    3,830
    Views
    392,321

    sure. "random words to get around minimum...

    sure.

    "random words to get around minimum reply threshold"
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4