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

Search:

Type: Posts; User: Jean-Marc

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. here is a picture 22168

    here is a picture
    22168
  2. I just tried and the latest code published is...

    I just tried and the latest code published is working with the ILI for me.
    You can try reducing the SPI clock in tft_t_dma.cpp
    #define SPICLOCK 60000000
    you can try 40000000?
    May be some...
  3. I did not reconnect the ILI display but at least...

    I did not reconnect the ILI display but at least on the VGA:
    - when I compile the sketch I have: 508596 octets of RAM (97%)
    - my DOOM1.wad file seems to be same (see below)

    if I run it (latest...
  4. Il did not try the latest code with the ili...

    Il did not try the latest code with the ili display but I think it is because you have a non official wad file' it only works with official version. You should take it from doom95, it must be around...
  5. Replies
    3
    Views
    191

    hi Paul, Your sample did help, I could now add...

    hi Paul,

    Your sample did help, I could now add and I2S audio driver (interrupt based, for PCM5102) to the VGA output and now the disturbance on the video DMA transfers is gone.
    I updated the...
  6. Hi Defragster, Thanks confirming. It was...

    Hi Defragster,

    Thanks confirming. It was indeed a problem with T4.0 but not with T4.1!
  7. A "kind of" schematic has been added in the...

    A "kind of" schematic has been added in the project. Emulators as the Colecovision and the ZX Spectrum ones now supports sound with VGA. Others also but still few bugs to fix ;-(
  8. Replies
    114
    Views
    3,309

    I added an 'experimental' schematic next to the...

    I added an 'experimental' schematic next to the pinout and pushed the initial interrupt based I2S PCM5102 sound driver. Still a bit buggy but ok...
    VIDEO PLL is default de-activated in the library...
  9. PCM5102 Indeed. Not sure they are all the same...

    PCM5102 Indeed. Not sure they are all the same modules I only use 3 lines+ power. No master clock needed. I also use the default volume level so no real need for i2c else there is a default control...
  10. I will for sure add the schematic this w-e, I am...

    I will for sure add the schematic this w-e, I am now busy to add a dedicated audio driver to the VGA library to avoid DMA disturbance. I saw some light at the end of the tunnel yesterday!
  11. Not yet but I am working on it. It is a general...

    Not yet but I am working on it. It is a general issue with my VGA driver, that audio DMA transfer is interfering with the VGA ones. I am experimenting with interrupt based transfer. I hope some light...
  12. Replies
    3
    Views
    191

    Hi Paul, It improves. If I start it using...

    Hi Paul,

    It improves. If I start it using below code I get at least the interrupt but only once.

    I2S1_TCSR = I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE | I2S_TCSR_FRIE;

    static int ind=0;...
  13. Replies
    3
    Views
    191

    Teensy 4.0 and non DMA I2S transfer

    I am looking for a way to transfer I2S using interrupt instead of DMA.

    This library was supporting it on the Teensy 3.
    https://github.com/hughpyle/teensy-i2s

    It does not work on the Teensy4....
  14. Replies
    114
    Views
    3,309

    If someone is interested, I ported most of the...

    If someone is interested, I ported most of the emulators now to the VGA driver.
    I also released a version of DOOM yesterday.
    Everything is part of the GIT.
    ...
  15. This is a great idea! What about a Dreamcast...

    This is a great idea! What about a Dreamcast version with vmu on a little lcd ?
  16. I forgot to mention, please compile with the...

    I forgot to mention, please compile with the option "faster code" else the PSRAM seems to "hang up" the CPU at short intervals
  17. DOOM running on the Teensy 4.1 with VGA output

    Happy to share this little video with you...

    https://www.youtube.com/watch?v=adYwnctiKsg

    and the code of course:

    https://github.com/Jean-MarcHarvengt/MCUME
    (Doom is part of the tree next to...
  18. Replies
    235
    Views
    27,063

    I really appreciated the idea to solder extra ram...

    I really appreciated the idea to solder extra ram and flash devices at the bottom of the T4.1. May be same can be done to extend pins via an smd connector?
  19. Replies
    5
    Views
    310

    I never closed this thread but it actually worked...

    I never closed this thread but it actually worked fine. See vgat4 library as example. Videopll is there optional for use and needed for the 640x480 mode.
  20. Replies
    2
    Views
    495

    AFAIK nobody tried yet. I taught about it while...

    AFAIK nobody tried yet. I taught about it while developing the vgat4 library. In 8 bits mode (clut) at least the 2d DMA copy could be used for scrolling , etc
  21. Replies
    114
    Views
    3,309

    I did not notice that with the vgatestpatern...

    I did not notice that with the vgatestpatern sample but if I run your drawing test, there is indeed at some point some small horizontal lines and I also noticed that the screen becomes black few secs...
  22. Replies
    114
    Views
    3,309

    Last version of the code has been pushed to the...

    Last version of the code has been pushed to the git !
  23. Replies
    114
    Views
    3,309

    I did not know that chip but I have good news......

    I did not know that chip but I have good news...

    Since 5 mins ago, the 640x480 more is working.... yeah!!!
    I used 2 shift registers combined with a 64bit destination DMA transfer.

    I will...
  24. Replies
    114
    Views
    3,309

    Hi, No, not really. I tried isolating the DMA...

    Hi,
    No, not really. I tried isolating the DMA code to ask more support on the forum but I finally decided to work on another project too.
    And no much more luck on the new project too ;-(
  25. Replies
    114
    Views
    3,309

    I will merge your changes this evening. May be we...

    I will merge your changes this evening. May be we should introduce cropping at pixel level for every primitives...
    Another idea would be to use the 2D HW block to provide Blit/ScaledBlit. Of course...
  26. Replies
    114
    Views
    3,309

    I will merge the changes tomorrow ;-) Still no...

    I will merge the changes tomorrow ;-)

    Still no solution for the DMA ;-(
  27. Replies
    114
    Views
    3,309

    No luck with the code...;-( I really believe...

    No luck with the code...;-(
    I really believe that the DMA copy in the interrupt does not fill the 4 shift registers...
    So below code is not behaving as expected.
    triggerSelect =...
  28. Replies
    114
    Views
    3,309

    I noticed that I needed the full DMA setup in the...

    I noticed that I needed the full DMA setup in the interrupt. Then your DMA config seems to work with minorLoopOperation=4(at least I get what I would expect with a single shiftbuf, with...
  29. Replies
    114
    Views
    3,309

    The code you propose results in a black screen....

    The code you propose results in a black screen.
    I was looking at your DMA copy code, trying to use it with a single shift register (at least I know what I expect on the screen for that one!)


    if...
  30. Replies
    114
    Views
    3,309

    Thanks a lot! I will try all that today if I...

    Thanks a lot!
    I will try all that today if I have the time between the various family trips planned. It is the last opportunity as tomorrow I am back to work...

    The code I had pushed 2 days ago...
  31. Replies
    114
    Views
    3,309

    Is it possible to combine 4 shift registers to...

    Is it possible to combine 4 shift registers to store 16 pixels in one go instead of 4?

    How do I do this?

    Now it copies 4 bytes per major loop into a single 32bits shift reg and I use...
  32. Replies
    114
    Views
    3,309

    There is no DAC on the Teensy 4. I am not sure...

    There is no DAC on the Teensy 4.
    I am not sure MQS can be used for video signal.

    BTW Bitluni used a tricky feature of the DAC on the ESP32.
    It was possible to use the I2S to output on the DAC...
  33. Replies
    114
    Views
    3,309

    Thank again for you support. I understand the...

    Thank again for you support.
    I understand the video PLL now and could use it at the place of the SW PLL.
    It does not really improve but I learned at least something new!

    I found why I have so...
  34. Replies
    114
    Views
    3,309

    The 2 DMAs cannot be started exactly at the same...

    The 2 DMAs cannot be started exactly at the same time as the DMA has a kind of queue of control.
    This is why the RRRG and GGBB per pixel are not in phase.

    You have to compensate by shifting the...
  35. Replies
    5
    Views
    310

    I reused the code of the AUDIO PLL. I get...

    I reused the code of the AUDIO PLL.

    I get something but it is not fully clear what I get.
    Is the below formula correct?

    F = (24MHz * (DIV_SELECT + NUM/DENOM) ) * POST_DIV_SELECT
    Reading the...
  36. Replies
    114
    Views
    3,309

    I finished the small PCB this morning. I added a...

    I finished the small PCB this morning.
    I added a joystick connector for a second joystick and I had to remap the analog joypad + button to other pins for convenience.

    I have been playing with the...
  37. Replies
    114
    Views
    3,309

    Nice setups! I am not really a HW guy as you...

    Nice setups!
    I am not really a HW guy as you probably noticed but I was always impressed at 9 years old when my father was creating PCBs.
    I am not a fan of PCBway. I still do PCBs myself, single...
  38. Replies
    114
    Views
    3,309

    I will have a look in the evening as my VGA setup...

    I will have a look in the evening as my VGA setup wires did break again ;-(

    I have to edge my PCB but of course the toner was empty and now I have to go with my family.
    I hope I have something...
  39. Replies
    5
    Views
    310

    Good idea Paul, thank you!

    Good idea Paul, thank you!
  40. Replies
    114
    Views
    3,309

    the hsync_wide should not be added to the...

    the hsync_wide should not be added to the fb_stride.
    The stride is just the distance between 2 lines of the frame buffer.
    One full line of the frame buffer (fb_stride) is what must be copied by the...
  41. Replies
    114
    Views
    3,309

    I cannot get the DMA copy at the proper frequency...

    I cannot get the DMA copy at the proper frequency for 640xY.
    It is flashing because of a too slow pixel clock for the DMA copy.
    Using the proper frequency results in corruption of the data so I had...
  42. Replies
    5
    Views
    310

    configuring and using video PLL on T4.1

    I would like to use the video PLL to drive my Flexio DMA copy.
    I use 2 Flexios (01 and O2).

    #define flexio_clk_sel 2 (to use VIDEO PLL)

    /* Set clock for FlexIO1 and FlexIO2 */
    CCM_CCGR5 &=...
  43. Replies
    114
    Views
    3,309

    last change... I changed the H-SYNC interrupt to...

    last change...
    I changed the H-SYNC interrupt to the rising edge (iso facing edge) by adapting the QTIMER code.
    It makes the parameters more meanful for me (back porch is then indeed after the...
  44. Replies
    114
    Views
    3,309

    It is still strange to me. Is the front porch...

    It is still strange to me.
    Is the front porch not the timing before the H-pulse goes low?
    I expect the line interrupt to occur on the falling edge so why to add the front porch before the RGB data...
  45. Replies
    114
    Views
    3,309

    Unfortunately 640x480 does not work. I created...

    Unfortunately 640x480 does not work.

    I created a 320x240 mode from the spec you shared.
    I compute every parameter from the timing. You can look in the code, I pushed on the GIT together with your...
  46. Replies
    114
    Views
    3,309

    If you want to misuse LCDIF for VGA and use...

    If you want to misuse LCDIF for VGA and use lowest 8 DATA lines it is already problematic.

    GPIO_B0_00 => LCD_CLK
    GPIO_B0_01 => LCD_ENABLE
    GPIO_B0_02 => LCD_HSYNC
    GPIO_B0_03 => LCD_VSYNC
    ...
  47. Replies
    114
    Views
    3,309

    I was aware of these chapters in the...

    I was aware of these chapters in the documentation but how do you get that out of the Teensy 4.1
    I am not sure the pins are exposed to the outside. I know that Paul had to do some sacrifices when...
  48. Replies
    114
    Views
    3,309

    That is the thread I used to setup the PCM5102 on...

    That is the thread I used to setup the PCM5102 on the T4.1 last week.

    There is no need to connect MCLK1 indeed.
    With the module I have, I also had nothing else to connect than vcc,gnd,bck,lck and...
  49. Replies
    114
    Views
    3,309

    You will be disappointed. Sound really messes up...

    You will be disappointed. Sound really messes up the all VGA output and vice versa... ;-(
  50. Replies
    114
    Views
    3,309

    I found.. This code will make us both happy ;-)...

    I found..
    This code will make us both happy ;-)
    if(keymodifier == 0x40){
    // ALTGR Key modifier FR Keyboard
    switch (key) {
    #ifdef LAYOUT_FRENCH
    case 233 : key = '~' ; break;
    ...
Results 1 to 50 of 182
Page 1 of 4 1 2 3 4