For a TFT display you need to add 'data enable' and 'pixel clock' signals , 'data enable can be tied to vcc but pixel clock have to be generated , it's not needed on VGA screen , so then set the...
Type: Posts; User: darthvader
For a TFT display you need to add 'data enable' and 'pixel clock' signals , 'data enable can be tied to vcc but pixel clock have to be generated , it's not needed on VGA screen , so then set the...
I grab close to everything from Farnell Element 14 ... here the french page with 536 ohm , you can get all quantity you want :)
https://fr.farnell.com/w/search/prl/resultats?st=536+ohm
But...
Yes Frank , the resistor value are the same when you add more stage ( 1 x 536 and 1 x 270 ohm ).
Just bad that i cant help for the VGA code on Teensy :) , i was more involved in STM32 in the past ,...
Hi Frank ,
this schematic is my R2R DAC for get better colors.
The original pin description is on Jean Marc Github for the VGA library here :
https://github.com/Jean-MarcHarvengt/VGA_t4
And the...
Hi Jean Marc :)
Yea , 12bit VGA can be fun to try , but the thing with FlexIO without the right pins coming out will be tricky ;)
I get one of the PMOD Digital Video Interface , as you probably...
Hi :)
For HDMI it can be possible to use the PMOD Digital Video Interface ...
https://cdn.shopify.com/s/files/1/1069/4424/products/pmod-hdmi_1024x1024.jpg?v=1562216081
You can get it here : ...
Hi Jean Marc ,
I just fond out for audio , i activated the commented MQS in your code.
But it was allot of noise , so i made a filter and now everything goes well ;)
I forget to ask you about audio :)
On github i read that you use MSQ for audio.
Do you use MSQR , MSQL or both ?
If i understand correctly , all i have to do is to connect a little audio amplifier...
That's it :)
on gameboy emulator :
myTimer.begin(vblCount, 40000); <--- i set it to 20000 and it's more like the expected speed :)
VID_FRAME_SKIP 0x1 give a little boost too ....
To test the...
Hi ,
i tested some of the emulators , they are working up to one (.... problem.....) ,
It seems that all emulators are slower than normal , can it be that the T41 is not set at 600Mhz ?
In the...
I found why it was not working correctly :)
It was here ...
#ifdef HAS_T4_VGA
#define PIN_JOY2_A1X A3
#define PIN_JOY2_A2Y A2
#define PIN_JOY2_BTN 14
#define PIN_KEY_USER1 22...
Hi ,
i have do like you said and everything is working up to the joybut and the 3 user keys.(they work on a test sketch i have do just for testing the analog joy and the buttons).
The Emulators...
Hi , thanks for all this information's :)
I use the ILI9341 , so i will then not connect the MISO , TFT_RST will then be connected to VCC.
For the user button that is conflicting with TFT_CS i will...
Hello Jean Marc :)
I just have a question about pin-out when i want to use a SPI TFT LCD.
As i see , the 2 user keys are in conflict with TFT_RST and TFT_CD , the I2S audio data pin is in...
Hi :)
I have made your change , it's strange like this ... he he
I check on wiki for the original Amiga res , it is :
Games use less to get more colors , it's difficult to create a resolution...
Hi Jean Marc :)
I found another screen for VGA testing , now it's OK , the auto correction work and the left part of screen is finally filled :)
On Amiga workbench , the bottom pixels are off...
Hello Jean Marc :)
I'm back home and tested what you say , it change nothing for the drift to right.
It's not just on emulator but generic , it do also the same with the demo program.
I don't...
Hi Jean Marc ,
I have check your VGA driver but i have to admit ,the way it's done, it's too complex for me :D
I have then test on STM32 for try to shift the screen to right , i don't have...
Just tested on Turrican , it work :D
Image quality is great , i just get some horizontal line sometimes , but actually i don't have sound that come out of the pcm5102 , i will check my connection...
Hi ,
I tested your last version from Github , the mouse act correctly this time.
Thanks :)
It's me again :)
Just a question about the Amiga and or ST emulator.
Allot of games and apps use 2 or more disk (adf) , is it a way to have more than one adf disk file linked at start of the...
I think i found a bug with the mouse.
When you click on a mouse button it release alone and not when you release the button yourself.
The 2 mouse buttons act like that , i see this in amiga...
Hi ,
You where right , it was the 3 buttons , as i used other buttons on this test board connection was inverted ,it was like the 3 buttons was constantly pressed , now everything is ok.
Thanks ;)
Thanks for this information ,
Arduino output , compiled as smallest code (it's in french)
Le croquis utilise 1069568 octets (13%) de l'espace de stockage de programmes. Le maximum est de...
Hi Jean Marc ;)
I'm back to home and finished the teensy test-board , i get your latest source and see you added the mouse , what is the pins to use for the mouse ?
Actually the USB port got the...
Hi ;)
With the schematic it's allot easier to see how everything is connected together :)
But i see that you are using the pins D34 to D37 for the external joystick , this pins are connected to the...
Are you going to use the PCM5102 for audio ?
If yes , let me know , so i will look to add it on the new test board i have to do later this week :)
Hi Jean Marc,
Is it possible for you to made a real schematic ?
From the PCB it's not really easy to know the connection if we do it on a test board ;)
Thanks.
Hi Jean Marc :)
I will finish some code for my LCD Maximite 2 on STM32 first on this board ( https://www.waveshare.com/product/mcu-tools/development-boards/stm32-open/openh743i-c-package-b.htm ) and...
Hi Jean Marc :)
I just tested your new lib , it work well.
But i have to compile for 'smallest code' , in other mode they are more glitch in screen.
640x480 is one of the mode that work at best...
Great to ear it finally work :)
I have code other project in that time (colour maximite 2 with 1024x600 LCD)
Last code was : https://drive.google.com/file/d/1cuT6xqE7OqCBtNcQd_AwLePSVZRvaxpo/view...
Hi ,
to overcome the tiny 320x240 SPI LCD , have you consider to use something like this chip ? :
http://www.vlsi.fi/en/products/vs23s010.html
I don't know the max res we can get but it's for...
Hi Jean Marc :)
Any news on the project ? , i have work on some other project and hope you advance in your VGA problems ...
Hi ,
I finally made the drawfullpolygon , it seem to work now :)
Code is here :
https://drive.google.com/file/d/1cuT6xqE7OqCBtNcQd_AwLePSVZRvaxpo/view?usp=sharing
Cheers.
I just get my new scope :)
I see that after the last pixel from the last line you just wait 6 lines for the V front porch ... it have to be 11 (for 640 x 480) , the vsync itself is OK with 2 lines....
Hi ,
i continued with functions in VGA_T4 , now you can use polygon too :)
draw_h_line , draw_v_line mod to accept negative length value.
I will try to do a drawfilledpolygon but i got some...
What you explain with the 2D HW Block is like it work on STM32F7xx / H7xx with the LTDC and DMA2D ;) ... but you need to have the corresponding pins available ...
Hi ,
I optimized the drawcircle , the test if pixels x,y was > to 0 is now useless because it's tested in drawpixel.
The precalculed sin/cos and ABS declaration are now in VGA_t4.h , so they are...
With byte decomposed in 2 parts it will not be easy to resolve for the DMA.
And use a little SPI LCD for Amiga emulator it's not the ideal way :)
A SPI LCD with more resolution will become too slow...
I just found my Ellipse bug :)
replace
rad2 = radius1;
with
rad2 = radius2;
that's it :rolleyes:
Hi , i've found bug in VGA_T4 , i corrected it , that was the pixel who can go out the screen and it append some time a freeze from the T41. Now it's OK :)
I made 2 new easy function :
void...
Hi :)
I just tested your new VGA_T4 lib , now the 640x480 is perfect , it's just little blue but no more pixel shift ;)
Your code is so far away from what i understand on T41 !! , where do you get...
Well , i'm not good enough with this MCU to tell you if it's ok or not for triggering 2 FLEXIO with only one signal :)
But for the FLEXIO3 it's sure that it will slow down everything without DMA....
I just got a stupid idea ... but not sure that's so stupid :) and go in a total reverse way than VGA ...
As all this emulator emulate ooOOooOOooLD machines , and all this old (computer) have use PAL...
Pins 48 to 54 are in use for the PSRAM , so , it's not possible to use them :)
I have take a look at the LCDIF pins with the nxp pin tool , all what we need is on FLEXIO2 but some pins are not...
Some times ago , Bitluni made allot of test about VGA on ESP32 MCU.
https://github.com/bitluni/ESP32Lib
I compiled all timing and put them in a PDF that you can take here :...
Hi ,
I don't have try char actually , just have try to have better image , it's like the FlexIO1 and FlexIO2 are shifted on 2 pixels , but i don't understand how all it's done ...
If you have some...
Hi :)
I was involved in the 1st Maximite and Colour Maximite , and was so to say my job to made and fix keyboard for some country.
After that my work evolved and i was no more able to stay active...
The VGA Standard say to output vsync every 16.6832mS that is 1000/16.6832 = 59.94Hz
I don't have made any PCB here :o , i just take my 8 year old R2R VGA DAC PCB and fitted the some resistances that...
Hi :)
I have now 640x480 full screen , apparently the left black border was from reading empty memory (i think) , i shifted the start address from FlexIO memory start and the black band vanished ...