Search results

  1. Sandro

    Teensy 4.1 and MCP23S17 question

    In my case, the SPI1 bus is also used by the display, and managed somewhere inside Adafruit_ILI9341.h library
  2. Sandro

    Teensy 4.1 and MCP23S17 question

    Solved.. I din't notice, Adafruit_MCP23X17 has a specific function, which reads all 16 pins: uint16_t readGPIOAB(); I know this library, and I'd like to use it, because it seems very simple and essential but I've not been able to configure SPI1 as "hardware SPI"
  3. Sandro

    Teensy 4.1 and MCP23S17 question

    Hi all, in my application I would connect n.6 MCP23S17 to my T4.1, with SPI1 bus, using these pins: CS1: 38 MISO1: 39 MOSI1: 26 SCK1: 27 The purpose is reading Encoders and pushbutton; here is a sample of my schematics: My requirement are: 1) using the SPI1 bus; 2) read all 16 GPxy pins of a...
  4. Sandro

    External register for flash memory files, on T4.1

    Solved! I had neglected to code the new derived class constructor!: class HSerialFlashFile : public SerialFlashFile { public: HSerialFlashFile() : SerialFlashFile() {} void setAddress(uint32_t newAddress, ....) { this->address = newAddress; .... } };
  5. Sandro

    External register for flash memory files, on T4.1

    Hi all! In my audio application, I need to open many audio files (stored in the external flash chip on the Audio Adaptor) in the "same time". Each activity with an audio file starts with: SerialFlashFile rawfile; rawfile = SerialFlash.open(file_name); SerialFlash.open looks for file attributes...
  6. Sandro

    Adding more PSRAM memory chips on T4.1

    @joepasquariello: sorry for my late replay; In my application, each update() some audio objects open 16 files, read an average of 16KB from each of them, than close all files, using max 1600us of CPU time; this is possible if data is on RAM, not on Flash memory chip, and very far from SD card...
  7. Sandro

    Adding more PSRAM memory chips on T4.1

    Thank all for your replys and your suggestions; @jmarsh that project is super interesting but (unforunately) far beyond my actual capabilities! @Paul I hope future Teensy boards will host and drive more powerful PSRAM chips... I'm so hungry of (fast) memory!! :) @BriComp it looks Teensy41Memory...
  8. Sandro

    Adding more PSRAM memory chips on T4.1

    Hi all, in my application (real time audio processing, with many large audio file and complex processing), there is a point where RAM memory is not enough to host audio samples and both SD card and Flash memory chip are unsufficien, haveing "poor" read speed. Two 8MB PSRAM memory chips, that...
  9. Sandro

    Is it possible multicore programming on T4.1?

    Ooops!! Hope my post will be deleted! ;) Thank you!
  10. Sandro

    Is it possible multicore programming on T4.1?

    Hi all, after haveing successfuly tested multicore programming on a Raspberry Pi Pico, I wonder if Teensy T4.1 allows to separately address the cores; I didn't find even a mention about this topic either here nor on the internet. So, I just tried this "brute-force" experiment, with Arduino IDE...
  11. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    @WMXZ: ok. I updated Teensyduino, deleted previous MTP_t4, and installed the new version. Now with mtp-basic the SD is displayed with its real capacity and occupation: Thank you so much for perfect and super fast fix!!
  12. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    Wow super! later I'll try. Thinking I have to update other tools and libraries also (Teensyduino and SD.h, at least).
  13. Sandro

    Calculating transfer function

    Mhhh ... Do you mean Z-transfer function maybe? If F(z) is the Z-transform of the input sequence, and G(z) the Z-transform of the output, S(z) = G(z)/F(z) should be an estimate of the transfer function of your system.
  14. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    @WMXZ I'm using a 16GB Sandisk Ultra micro-SD card, formatted FAT32; this it the printout at startup:
  15. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    So, MTP_basic.ino works perfectly, as far as I've checked. I only noticed that the free/used space is not shown: is this expected, either I did some mistake somehow?
  16. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    @WMXZ I haven't found any description about mtp_logger.ino, so I don't know what to expect... Maybe it still runs correctly on my Teensy...
  17. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    In my application, it is not fundamental that T1.4 appears on Explorer with a letter: it's enough the "Teensy device" label. MTP_basic.ino is perfect for me :)
  18. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    Hi all, I apologize for this long delay; today I finally found time and room for testing your suggestions. @mjs513 and @KurtE: I tried the new mtp-logger.ino; I can build and upload the example on my T4.1. but it doesn't do what I expected, since the T4.1 (with an SD on it) doesn't appear as an...
  19. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    Thank you @defragster and @WMXZ; as soon as possible I'll experiment both your suggestions
  20. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    if I select MTP Disk I get this error: C:\Users\dell\Desktop\mtp-logger\mtp-logger.ino:57:1: error: 'MTPD' does not name a type 57 | MTPD mtpd(&storage); | ^~~~ C:\Users\dell\Desktop\mtp-logger\mtp-logger.ino: In function 'void storage_configure()'...
  21. Sandro

    MTP_Teensy example "mtp-logger.ino" compile error, on T4.1.

    Hi all, I would try to make the SD card on T4.1 accessible as a mass storage from my Windows PC via USB connection; I manually installed MTP_Teensy. I use Arduino IDE 2.2.1 with Teensy tools (https://www.pjrc.com/teensy/package_teensy_index.json) and Teensy library 1.58.1 installed. Than, trying...
  22. Sandro

    TFT touchscreen ILI9341 + XPT2046, on Teensy 4.1

    Thank you so much for this suggestion, I'll try the connection on the same SPI bus.
  23. Sandro

    TFT touchscreen ILI9341 + XPT2046, on Teensy 4.1

    Hi, in my application I use a T.41 + Audio Board Rev.D + W25Q512JV (flash memory) + n.2 ESP-PSRAM64H. The TFT display uses SPI1 pins (instead of SPI0, because there where issues on SPI0): and everything works perfecly. I have problems with the touch fuctionality; using the suggested pins: the...
  24. Sandro

    What's the simplest way to make my teensy-synth able to store a few presets?

    Here's a link to the tool: https://playground.arduino.cc/Code/EEPROMWriteAnything/ Also, if you will store not single variables but structures, I suggest you to use __attribute__((__packed__)) as descibed here: https://cs50.stackexchange.com/questions/22297/i-am-getting-an-unexpected-sizeof-error
  25. Sandro

    Additional audio output for Teensy 4.1

    Hi Mark sorry for my late reply; it's a really nice schematics, I'll try to realize it :)
  26. Sandro

    Additional audio output for Teensy 4.1

    PWM secondary audio output testing: all good!! :)
  27. Sandro

    Additional audio output for Teensy 4.1

    just for curiosity: if I don't mistake "normal" pwm pulses have a temporary fixed start point; we would prefer that the center of each pulse had a fixed position in time, so we modulate their phase to get a better distribution; but, doing this, don't we risk to overlap adiacent pulses?
  28. Sandro

    Additional audio output for Teensy 4.1

    Set up 1 instance, on a naked T41; sweeping a sinus tone from 20Hz to 15KHz I just notice an increase of distorsion above 2KHz (maybe due to the filter? I should at least compare with the Audio Board's output.. ) that anyway is absolutely not critical for my application; I upload some shots...
  29. Sandro

    Additional audio output for Teensy 4.1

    Now I just loaded AudioOutputNoiseShapedPWM, and set: begin (3) [ instead of begin(2) ] in order to use the existing connection to the output filter... It works fine! (sorry, but I always feel surprised when software runs correctly!)
  30. Sandro

    Additional audio output for Teensy 4.1

    I'm sorry that I ignore the use of this tool... But interesting that it includes a 1pin/hi-frequency PWM ... Maybe it could be used as "simple" PWM audio output?
  31. Sandro

    Additional audio output for Teensy 4.1

    Ok, found the mistake in code... It was simply due to a wrong Audioconnection. So, actually AudioOutputPWM works fine on T41 togheter with Audio Board and all other objects I'm using! Now, my last wish is to solve the mysterious issue that afflicts my output filter !! ;)
  32. Sandro

    Additional audio output for Teensy 4.1

    Yes, I'm working around it; as soon as I can I'll share the shortest code that suffers for the problem. Thank you so much again!
  33. Sandro

    Additional audio output for Teensy 4.1

    Hi MarkT, my waveform is very different; this is the test code: #include <Audio.h> AudioSynthWaveformSine Tone; AudioOutputPWM PWM; AudioConnection patchCord1(Tone, 0, PWM, 0); void setup() { AudioMemory(5); Tone.amplitude(1.0); Tone.frequency(1000); } void loop()...
  34. Sandro

    Additional audio output for Teensy 4.1

    Hi MarkT, I just replaced the resistors, now their values are the same of the schematics above.. But it doesn't change much: looks like only pin3 is significant, pin4 only adds noise... I also tried different couple of pins in output_pwm.cpp : void AudioOutputPWM::begin(void) { begin(5, 6); }...
  35. Sandro

    Additional audio output for Teensy 4.1

    Yes MarkT, the resistors I used had not the same values of the schematics, I neglected they are critical; I tried with the only MSB connected, as you suggested, and it works fine! Now I can route the audio stream both to Audio Shield and to PWM; tomorrow I'll swap the resistors with new ones...
  36. Sandro

    Additional audio output for Teensy 4.1

    Hi MarkT I tried the new object downloaded from https://github.com/PaulStoffregen/Audio/pull/432; I didn't modify the begin call: void AudioOutputPWM::begin(void) { begin(3, 4); } and connected pins 3, 4 from T41 to the raccomanded filter: than I uploaded a test sketch (Guitar.ino) with the...
  37. Sandro

    Additional audio output for Teensy 4.1

    Just read... Great news MarkT! Tomorrow I'll try the new PWM :)
  38. Sandro

    Additional audio output for Teensy 4.1

    Noway... I'm using SPI2 for n.2 PSRAM chips... Uff!! :/
  39. Sandro

    Additional audio output for Teensy 4.1

    I'm using SPI0 for Flash chip (not the SD card) but I assume the issue is the same... So, actually I have: - Flash chip on SPI0 - SPI Display on SPI1 (both cannot share the same SPI bus, because flash memory reading performance degrades too much).. Maybe I could move the Flash chip to SPI2..
  40. Sandro

    Additional audio output for Teensy 4.1

    More dubts: SPI0 is used as kind of PWM by MQS, so should be incompatible with any other device on it..
  41. Sandro

    Additional audio output for Teensy 4.1

    Thank you Paul for replying; I read about MQS, my dubt is about the possible "overload" of the SPI0 bus (used by MSQ, if I don't mistake) that will be shared with a Flash memory chip (intensively used both for write and read)... ok, it's only a dubt .. I have no idea of the amount of time the...
  42. Sandro

    Additional audio output for Teensy 4.1

    Dear Audio Library developers, actually AudioOutputPWM does not support Teensy 4.1: is there any chance for this feature? I'm using a T41 @600MHz + Audio Board for the main audio in/out, but I also need an additional audio output (even mono, even 8-10 bit should be fine) compatible with the...
  43. Sandro

    XPT2046 touchscreen problem

    Hi all, I'm trying to get a 2.8TFT SPI 240x320 touch display working with T41, SPI1. If I use this code: #include <XPT2046_Touchscreen.h> #include <SPI.h> // T_CLK --> 27 #define CS_PIN 35 // T_CS // T_DIN --> 26 // T_DO --> 39 #define TIRQ_PIN 33 // T_IRQ XPT2046_Touchscreen...
  44. Sandro

    SerialFlash: can erase command have lower precedence than write?

    Maybe I found the answer : noway (at least with my Winbond chip)... 1) On the datasheet of the flash chip W25Q512 it is repeatedly written that Erase operation disables both read and write operations... This explains why write process is interrrupted. 2) Since SerialFlash allows reading even...
  45. Sandro

    SerialFlash: can erase command have lower precedence than write?

    Hi all, reading SerialFlash official description I undestand that I can read the flash chip while erasing a (createErasable) file without any interruption; but (anyone know if) is there any possibility to write a file without interruption while erasing another file? This should be a very...
  46. Sandro

    Winbond W25Q512 Flash support

    I did some tests, using the following setups: a) T41@600MHz + W25Q256FVFG b) T41@600MHz + W25Q512JVFM Both setup run the same code, an audio application reading a bunch of contiguous audio-samples (2 bytes each), with many operations for each reading. Both Winbond chips contain the same file...
  47. Sandro

    Winbond W25Q512 Flash support

    Checking again... SerialFlashChip.cpp does not need any change for W25Q512. Just to correct the first post of this thread, using 25Q512JVFM the ID is: id[0]:239 id[1]:112 id[2]:32 (not "56" that I had read with a wrong connection..)
  48. Sandro

    Winbond W25Q512 Flash support

    Hi mjs512, I just forked SerialFlashChip.cpp with few additional lines which allow to recognize the W25Q512 and set the correct capacity value (64MB). Next days I'll check (and share here) the read/write performance of the chip compared to the W25Q256 (that I was using before this one). Thank you!
  49. Sandro

    Winbond W25Q512 Flash support

    Problem solved.. W25Q512 is perfectly working with SerialFlash without any change.. my fault, there was an error in a connection...
  50. Sandro

    Winbond W25Q512 Flash support

    Hi mjs513, thank you for your suggestions; I didn't change the original Write Enable command: CSASSERT(); SPIPORT.transfer(0x06); CSRELEASE(); I compared the W25Q256 (which is supported by SerialFlash.h) and W25Q512 datasheets: the main commands and parameters seem identical..
Back
Top