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

Search:

Type: Posts; User: Tactif CIE

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. PlatformIO is certainly a great piece of software...

    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...
  2. Replies
    23
    Views
    771

    Yeah, learning about the insides of the MPU is...

    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...
  3. Replies
    23
    Views
    771

    Dunno if it's meaningful in your case, but this...

    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;...
  4. Sorry, that's a typo, the clock signal generated...

    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. Just re reading my post I spotted than using C10...

    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...
  6. Hi Olivier ! Glad to see that I'm not the only...

    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,...
  7. Very unfortunately, for the moment, I don't own...

    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. How can these macros be adapted to a Teensy 3.6...

    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. Luni, yesterday I received a cheap Saleae LA -...

    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...
  10. Ho yeah ! A clever use of a Logic Analyzer again...

    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. Mmmm, seems that I could go the chinese clone LA...

    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...
  12. As a beginner, my needs are a bit fuzzy but there...

    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 ?)
    -...
  13. 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...
  14. BTW, Luni, how did you measured the execution...

    BTW, Luni, how did you measured the execution time of the isr in nano seconds ?
  15. It's an "educational" attempt, for the fun, to...

    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...
  16. Just tried with constants, at 1MHZ the max...

    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. Good catch luni ! I tried with fewer iterations...

    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...
  18. I made some progress, and managed to have a timer...

    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 ...
  19. Ok thanks for the hints ! I'll give it a try and...

    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. 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...
  21. In my case it's about having at least one non usb...

    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. Replies
    2
    Views
    222

    https://github.com/Tactif-cie/Volume-Explorer ...

    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. You're welcome ;-) BTW, if you want to use the...

    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...
  24. Replies
    14
    Views
    556

    Thanks ! That's good to know !

    Thanks ! That's good to know !
  25. Replies
    14
    Views
    556

    What is a round machine pin style ?

    What is a round machine pin style ?
  26. Replies
    14
    Views
    556

    Thanks a lot !!

    Thanks a lot !!
  27. Replies
    14
    Views
    556

    BTW, what is the part's name of the Line in /...

    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. Arduino IDE Serial Monitor again ? Because, with...

    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. Replies
    5
    Views
    500

    Good to know, I had the update too but did not...

    Good to know, I had the update too but did not tried to reverd to "default"... I'll give it a try
  30. In my case I used the Arduino IDE, let say 1 week...

    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. Replies
    5
    Views
    500

    You'll never be able to debug on Teensy, at least...

    You'll never be able to debug on Teensy, at least without tough hardware mod
  32. SdFat provides all the call needed to iterate a...

    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...
  33. 'cos I use a big bunch of apps which I don't know...

    '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...
  34. I'm coding a small shell utility and soon...

    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;
    ...
  35. But I really wonder how PPPOE came into the dance...

    But I really wonder how PPPOE came into the dance ! How a Teensy can be seen as a PPPOE device ??
  36. Dunno but I'll keep a eye on my network devices...

    Dunno but I'll keep a eye on my network devices now ;-)
  37. Okay, nightmare's end, sun is bright ;-) ...

    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...
  38. 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...
  39. Replies
    5
    Views
    500

    Yeah, IntelliSense often can't find the files...

    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...
  40. I'm on Mac OS 10.12.6 (Sierra) and there's no...

    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...
  41. Replies
    8
    Views
    423

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

    Whoo !!! This tool is sick !! Thanks for the info !
  42. Replies
    8
    Views
    423

    That's beyond my skills ;-) But if you want to...

    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...
  43. Replies
    8
    Views
    423

    I had a similar situation with...

    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...
  44. Thanks a lot ! That's perfect :-)

    Thanks a lot ! That's perfect :-)
  45. Replies
    1
    Views
    393

    I fixed the problem by editing AudioStream.h and...

    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...
  46. Replies
    4
    Views
    251

    This is what I did, nothing special or...

    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...
  47. Replies
    7
    Views
    364

    But you have to put this statement in your loop()...

    But you have to put this statement in your loop() function


    usbMIDI.read();

    If you don't, handle_cc will never be called
  48. Replies
    7
    Views
    364

    I presume that the interrupt mechanism is handled...

    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. Replies
    7
    Views
    364

    You also can have a callback in your setup() for...

    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,...
  50. Replies
    1
    Views
    393

    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...
Results 1 to 50 of 69
Page 1 of 2 1 2