Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Micromite EXTREME b5v6, VGA
Page 2 of 4 | |||||
Author | Message | ||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
To increase colour with VGA you need to change the RGB outputs to analogue signals where the analogue level modulates the intensity of the three primaries Completely impossible without three external high speed DACs and even then the PIC wouldn't be fast enough to drive them. Excellent Attached is a minor update that should fix most of your issues 2016-12-09_085722_MicromiteEXTREMEb5v8.zip |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Thanks Peter for b5v8. Just finishing some customer orders then I will begin testing it . . . For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Checkout this topic about increasing the colors to 16 on the Maximite. http://www.thebackshed.com/forum/forum_posts.asp?TID=3774&PN=638&TPN=5 Microblocks. Build with logic. |
||||
Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 815 |
Hi to all, can anybody tell me which 64 and 100 pin variants are ok for the Maximite Extreme? The Snadpic-board is with different chips available: PIC32MZ2048ECM100 PIC32MZ2048ECH100 PIC32MZ2048ECG100 PIC32MZ2048EFG100 PIC32MZ2048EFH100 PIC32MZ2048EFM100 Which chip is the correct one??? Thanks! Frank |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Hi Frank, From an earlier post by Peter: I seem to remember it will not work on the 'EC' range. The 'EF' is the floating point range (I do believe) and hence you need to look out for an EF part. Not sure about the EFM so personally I would go for either the EFG or EFH. For what it is worth; I am running EFH064 devices here, but strongly recommend the 100pin version based on Peters comments above regarding I2C, SPI, SD card. WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
Any of the EFs are fine |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Peter, v5b8 been running fine for a while now with nothing obviously of concern. I can also confirm that the cropped pixel line, and the startup background colour both work as expected. One thing I have noticed (which I believe is unavoidable; unless you say otherwise), is that the screen goes blank whenever the SD card is accessed. I assume the SPI lines are 'halted' whilst the MM does its stuff with the SD card. Will shout if I find anything else . . . . WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
It shouldn't go blank when you load a picture, but will if you load/save a program or update and OPTION. It isn't the SPI that interferes but the writing to flash |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Yep - that makes sense. I have just had a loss of red signal again. Immediately done a reset and all ok. Tried to re-create the issue but no joy yet. I was drawing a box with green edge, and blue fill (within a program) then changed the code to alter the edge colour from green to magenta. Upon pressing F2 the border went blue (i.e. red signal loss). Do you think this is a 'random' issue, or could it be a sequence of events that triggers it? I will keep trying to get a recognised sequence that causes the issue but don't want to spend many hours chasing it if you think it is 'random' For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
Don't know but if it happens again please do the following print hex$(peek(word &HBF821410)) note down what it prints and let me know then try poke word &HBF821410,0 and see it it recovers |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Peter, Will do some intensive testing tonight to see if I can get it to repeat the issue. As soon as I see it, I will post back . . . WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Peter, Bug found (I think!): With v5b8, in the Editor with ColourCode ON, I believe the numbers should be shown in red. However, on the VGA console they are being shown in white. All other colours seem to be correct and follow the 'TeraTerm' editor. WW For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 815 |
Many thanks to WW and Peter! Unfortunately is no EF-chip at the moment from SnadPIC over Ebay available... Did anybody know when Kon's new boards are available? (I love his very nice boards...) Frank |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Peter, Another Editor Bug: I am using Font 1 so editor is 80 columns wide. If you type a line that is too long, then you get the 'Line Too Long message in the left side of the footer, BUT the previous text is still visible beneath it (i.. ECS:Exit . . . .) I have not tried other font sizes but assume you can sort this issue from this description WW EDIT: This issue is present regardless of COLOURCODE setting; and on v5b8 For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
These are the colours set up in the editor by Geoff. I haven't touched these yet. #define GUI_C_NORMAL WHITE #define GUI_C_BCOLOUR BLACK #define GUI_C_COMMENT RGB(192, 192, 0) #define GUI_C_KEYWORD CYAN #define GUI_C_QUOTE RGB(0, 200, 0) #define GUI_C_NUMBER RGB(255, 128, 128) #define GUI_C_LINE GRAY #define GUI_C_STATUS (Option.ColourCode ? BROWN : gui_fcolour) Remember we have only 8 colours including black to play with and the way the colour map works is that if R or G or B intensity is > 0 then that colour is switched on. Numbers are set to 255,128,128 so they will be white. I can make these pure red easily if that is required. Gray will also be white Brown will be yellow Comments will also be yellow We don't appear to be using magenta or green. Blue is probably too dark as a single colour |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Yep - got that. Green is being used for string (quotes) and works! From the time I recently asked Geoff, he replied with (excuse formatting): I don't think that they are documented but here they are: //====================================================================================== // Attribute VT100 Code VT 100 Colour LCD Screen Colour //====================================================================================== #define VT100_C_NORMAL "\033[30m" // Black Foreground Colour #define VT100_C_COMMENT "\033[33m" // Yellow Yellow #define VT100_C_KEYWORD "\033[36m" // Cyan Cyan #define VT100_C_QUOTE "\033[32m" // Green Green #define VT100_C_NUMBER "\033[31m" // Red Red Taking the last column of defined colours, then if you could make the 'numbers' in red, then what you have will follow accurately. Status bar in yellow is fine as it is, and also the status 'line' (but you could arguably make this yellow too so it matches the status bar). Possibly make Status bar & line magenta? Then this will be different from comments! Something to think about! For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Above table not clear so try this: Normal = White Comment = Yellow Keyword = Cyan Quote = Green Number = Red (but currently white) Status = Currently Yellow (bar) and White (Line) - make both Magenta? For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2294 |
could one use an extra SPI channel to get half-intensity colours by switching in three schottky diodes (0.3v) for the video clipping? this would take the 8 colours up to 15 available colours (there would be 2 black colours, so not 16). just an idea, and it may not work well - something more complex than 3 schottky diodes may be needed. this would also increase the required video buffer size by 33%. cheers, rob :-) |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2794 |
Peter, Not able yet to get red signal failure (typical!). Have run some 'older' programs on this MMX VGA to see what 'performance' is like. Your 3D cube rotation program looks great! Still trying to break it . . . . One thing to raise is that I think the internal TIME$ drifts a few seconds per hour. Can't quantify yet as I keep resetting the thing! Will keep an eye out on this one. For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
This version has additional protection for the red channel issue and the editor colours modified. Also I've corrected a potential RTC timing error In addition PIXEL can now be used as a function on the VGA display SO PIXEL 100,100,rgb(red) sets the pixel red ? hex$PIXEL(100,100)) will return &HFF0000 which is the code for red. Finally, the code now supports overlay text on VGA. Just use 1 as the background colour and only the foreground pixels in the font will update the display leaving the existing pixels that would have been overwritten by the background untouched I've done a fair bit of tidying up of the code so it is not impossible I've introduced something. 2016-12-10_103432_MicromiteEXTREMEb5v12.zip |
||||
Page 2 of 4 |
Print this page |