Search results

  1. T

    Questions about 'navigation bar' with other IDE besides arduino.

    PlatformIO is certainly a great piece of software (I tried it), but honestly I've better go the Arduino IDE or make your own build system with VS Code with makefiles - The "in between" is not my taste Not easy but, I've managed to get a working configuration based on...
  2. T

    PWM @ 1ghz 47%-53% duty issue

    Yeah, learning about the insides of the MPU is also very fun even if sometimes difficult. I struggled a little with the FTM (but not that much) and that was worth the try : not only I need go generate a stable clock but also have to run code when the clock goes HI or LO, with very few...
  3. T

    PWM @ 1ghz 47%-53% duty issue

    Dunno if it's meaningful in your case, but this is what I do to generate a 1MHZ signal with 50% duty for a 6502 cpu #define SIG_CLOCK 33 // is PORT E BIT 24 so E24 volatile uint32_t count; volatile bool isr_flag; void setup() { pinMode(SIG_CLOCK, OUTPUT); FTM0_SC = 0; FTM0_CNT =...
  4. T

    Generating clock signal for an 8 bits 6502 CPU

    Sorry, that's a typo, the clock signal generated by the Teensy feed the pin 37 of the 6502... I meant PHI2 signal OUT (of the Teensy)
  5. T

    Generating clock signal for an 8 bits 6502 CPU

    Just re reading my post I spotted than using C10 for R/W is wrong because C port is being put in Input or Output mode depending on the cpu cycle... So I switched R/W to E26, but still get erratic behavior...
  6. T

    Generating clock signal for an 8 bits 6502 CPU

    Hi Olivier ! Glad to see that I'm not the only fool on earth to play with a Teensy and a 6502 :-) I adapted the Bus_access_simple example to my own wiring, but that did not worked. I got nothing, even lowering delay() in loop to small values Before giving a try with interrupts I did a lot of...
  7. T

    A set of scope-tested 100-500 ns delay macros

    Very unfortunately, for the moment, I don't own an oscilloscope (being said I'll follow your advice to keep enough money back and buy a good one like the Rigol 1054Z)
  8. T

    A set of scope-tested 100-500 ns delay macros

    How can these macros be adapted to a Teensy 3.6 running at 180MHZ ? I need accurate nanoseconds delays (10ns would be fine) for clock phases synchronization with an external CPU... Any hint ?
  9. T

    Generating clock signal for an 8 bits 6502 CPU

    Luni, yesterday I received a cheap Saleae LA - Seems to work fine and it helped me to find that my duty cycle was wrong so I fixed the problem until I got a more-or-less 50% duty cycle at 1 MHZ I've switched to reading and writing ports directly instead of using DigitalReadFast and...
  10. T

    Generating clock signal for an 8 bits 6502 CPU

    Ho yeah ! A clever use of a Logic Analyzer again ;-) https://forum.pjrc.com/threads/56496-About-buying-a-(not-too-expensive)-logic-analyzer I really learn a lot on this forum !
  11. T

    About buying a (not too expensive) logic analyzer

    Mmmm, seems that I could go the chinese clone LA route (which I can find easily on amazon) + open source software and try to buy a second hand digital oscilloscope, 40MHZ minimum in good shape (this point is obvious but as a newbie I'm unable to check if an oscilloscope is ok or not, if he can...
  12. T

    About buying a (not too expensive) logic analyzer

    As a beginner, my needs are a bit fuzzy but there are some use cases I can see - checking a clock signal I generate (is it the right frequency ? what is the duty cycle ? rise and fall time ?) - checking incoming digital signals from an 8 bits cpu I'm struggling with (when does this pin changes...
  13. T

    About buying a (not too expensive) logic analyzer

    As a hobbyist (and an electronic noob) I'm wondering if having a logic analyzer would help me to better understand digital/analog signals and identify problems I don't want to spend too much money as I'm not a pro, and found these analyzers from a French company (could be better for customer...
  14. T

    Generating clock signal for an 8 bits 6502 CPU

    BTW, Luni, how did you measured the execution time of the isr in nano seconds ?
  15. T

    Generating clock signal for an 8 bits 6502 CPU

    It's an "educational" attempt, for the fun, to connect an old 6502 CPU to the teensy (the 6502 was a cpu found in countless computers from the mid 70's -> 80's) I'm trying to generate a clock and read back the address and data bus - The cycle, for what I understand from the 6502 specs, is made...
  16. T

    Generating clock signal for an 8 bits 6502 CPU

    Just tried with constants, at 1MHZ the max digitalReadFast calls I can do before freezing is 8/9 (with 2 digitalWriteFast) So I'm stuck and need to switch to ports reading / writing
  17. T

    Generating clock signal for an 8 bits 6502 CPU

    Good catch luni ! I tried with fewer iterations and yes, until 4 it's ok, above TS freezes So I'll try to optimize the isr code the best I can with digitalReadFast with constants and later with direct ports access Thanks ! EDIT : It's 4 iterations max with digitalRead and 6 with digitalReadFast
  18. T

    Generating clock signal for an 8 bits 6502 CPU

    I made some progress, and managed to have a timer isr called around 1000000 times per second but I'm facing a weird crash that I don't understand I extracted all the meaningless parts of the code #include <Arduino.h> volatile uint32_t count; uint32_t last_count; uint32_t last_time; const...
  19. T

    Generating clock signal for an 8 bits 6502 CPU

    Ok thanks for the hints ! I'll give it a try and come back here if I can't find my way through low level programming ;-)
  20. T

    Generating clock signal for an 8 bits 6502 CPU

    I've read several threads on the forum about generating clock signals, timer but I'm puzzled I don't see how to achieve what I want I'm trying to use a T3.6 as a "glue" to an NMOS 6502 CPU - At this stage 28 meaningful signals from the 6502 are wired to Teensy pins and I triple checked the...
  21. T

    USB violin (sound over USB without external ADC)

    In my case it's about having at least one non usb OUTPUT, and it works fine Add AudioOutputAnalog dac1; to your code that should enable USB audio out to live its live...
  22. T

    Kinda "terminal" for the Teensy 3.6 ?

    https://github.com/Tactif-cie/Volume-Explorer Did it 2 weeks ago, you can tweak it, expend it, it's nothing but an old school 80's limited shell... ;-)
  23. T

    Is it safe to connect a 5V I2C LCD module to a 3.3v Teensy 3.6 ?

    You're welcome ;-) BTW, if you want to use the i2c_t3 library everywhere you can create a "Wire" subdirectory in your local arduino path (on a Mac it's ~/Arduino/libraries) and put an Wire.h file with only one line #include <i2c_t3.h> Because the real Wire library is not compatible with...
  24. T

    Alternativ PCB connectors...somehow

    Thanks ! That's good to know !
  25. T

    Alternativ PCB connectors...somehow

    What is a round machine pin style ?
  26. T

    Alternativ PCB connectors...somehow

    Thanks a lot !!
  27. T

    Alternativ PCB connectors...somehow

    BTW, what is the part's name of the Line in / Line out connector header to use on the audio board ? I'm struggling to find it in online catalogs because I don't know what to search ...
  28. T

    While uploading "An error occured" and serial monitor got stuck...or?

    Arduino IDE Serial Monitor again ? Because, with custom makefile outside of Arduino IDE your code runs.. as long enough to have me willing to seek a Netflix serie again ? ;-) Last output...
  29. T

    PlatformIO project creation problems

    Good to know, I had the update too but did not tried to reverd to "default"... I'll give it a try
  30. T

    Mac OS nightmare ! Bunch of Teensy devices

    In my case I used the Arduino IDE, let say 1 week max, before switching to Visual Studio - I had 360 false entries, dunno if Arduino IDE is the only cause, I'll check and see
  31. T

    PlatformIO project creation problems

    You'll never be able to debug on Teensy, at least without tough hardware mod
  32. T

    Teensy 3.6: Standard SD or SdFat library?

    SdFat provides all the call needed to iterate a directory, and for each entry you can check its type (file or dir) and its attributes (date, etc) then decide to delete the file or not - But you have to write the code for this yourself, have a look at the examples...
  33. T

    Mac OS nightmare ! Bunch of Teensy devices

    'cos I use a big bunch of apps which I don't know how they will behave on Mojave (or even run), have a lot a custom settings and tools, and it'll take me 2 days of works without any warranty that I'll not fall in a trap. Given that I never install an OS upgrade over an existing system, but...
  34. T

    Teensy 3.6: Standard SD or SdFat library?

    I'm coding a small shell utility and soon switched from SD to SdFat without problems... On teensy you only have to #include <SdFat.h> and declare variables as Sd2Card card; SdFatSdio sd; Then no pin on begin if (!sd.begin()) { term->println("sd begin error"); }
  35. T

    Mac OS nightmare ! Bunch of Teensy devices

    But I really wonder how PPPOE came into the dance ! How a Teensy can be seen as a PPPOE device ??
  36. T

    Mac OS nightmare ! Bunch of Teensy devices

    Dunno but I'll keep a eye on my network devices now ;-)
  37. T

    Mac OS nightmare ! Bunch of Teensy devices

    Okay, nightmare's end, sun is bright ;-) Thanks to these guys : https://apple.stackexchange.com/questions/349424/delete-many-network-configurations-at-once I used this Ruby script that must be sudo executed devices = `networksetup -listallnetworkservices` devices.split("\n").each do |device|...
  38. T

    Mac OS nightmare ! Bunch of Teensy devices

    I didn't noticed until today but reading this thread https://forum.pjrc.com/threads/44403-MacOS-Sierra-port-problem?highlight=usb+modem+serial+device I had a look to my network settings... I found 300+ devices in the list ! Removing them one by one with the Network Preference Panel will take me...
  39. T

    PlatformIO project creation problems

    Yeah, IntelliSense often can't find the files included by your source code... I don't use PlatformIO anymore, but Makefile builds only and my settings are { "C_Cpp.intelliSenseEngine": "Tag Parser", //"Tag Parser", "C_Cpp.default.cppStandard": "c++14"...
  40. T

    Serial Monitor missing data on some Macintosh computers

    I'm on Mac OS 10.12.6 (Sierra) and there's no problem nor with Arduino 146 with Arduino serial monitor neither with custom build (core from github master) + (iTerm2 or xterm) with tycmd monitor Tried Teensy on Mac usb Port, Teensy on Thunderbold Dock's USB, even on USB hub -> TB Dock : no loss...
  41. T

    Sequence point compiler error

    Whoo !!! This tool is sick !! Thanks for the info !
  42. T

    Sequence point compiler error

    That's beyond my skills ;-) But if you want to disable optimizations for a bloc of code you can use gcc pragmas - You can even put these lines in a function and use an attribute with optimization flags - Have a look here ...
  43. T

    Sequence point compiler error

    I had a similar situation with -Waggressive-loop-optimizations The corresponding flag to disable these optimizations is -Wno-aggressive-loop-optimizations In your case it should be -Wno-sequence-point
  44. T

    Is inheriting from usb_serial_class a bad idea ?

    Thanks a lot ! That's perfect :-)
  45. T

    Strange bug in AudioStream.h

    I fixed the problem by editing AudioStream.h and adding a dtor to AudioStream class - May be bad done but at least all my test suites passe, and new / delete of AudioStream instances does not crash anymore - I tested with 10 millions alloc/dealloc, there's only one memory leak of the audio...
  46. T

    Help with fault_isr

    This is what I did, nothing special or beautifully crafted but it works fine - Might need to be refined in the future, but for now it has been a very very precious help during the previous days where I had to debug weird freezes ;-) https://bitbucket.org/tactif/faultreporter/src/master/
  47. T

    How does usbMIDI.read() works?

    But you have to put this statement in your loop() function usbMIDI.read(); If you don't, handle_cc will never be called
  48. T

    How does usbMIDI.read() works?

    I presume that the interrupt mechanism is handled behind the scene by the midi library and that handle_cc is not an interrupt routine, but yes every time a CC is received handle_cc is executed
  49. T

    How does usbMIDI.read() works?

    You also can have a callback in your setup() for every cc message as usbMIDI.setHandleControlChange(handle_cc); Then declare the callback as void handle_cc(byte channel, byte control, byte value) { switch (control) { case 21: serial.print("knob 1 feedback: ")...
  50. T

    Strange bug in AudioStream.h

    I know it's not a typical use case but to help me debugging my app I've coded a small test suite. So, in a real app I should (and I plan to) avoid instantiating and deleting AudioConnection instances, and in my app the AudioStream instances a kept while the app is running. But in my test cases...
Back
Top