Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/25/05 16:28
Read: times


 
#102931 - video, timing, speeds etc.
Responding to: ???'s previous message
Phillip M Gallo said:
The ongoing work is baseband NTSC, monochrome, 256x192, resulting in a square addressable pixel.


OK so let's calculate a bit - correct me if I am wrong.

With direct generation of video in mcu, the mcu is occupied during the active display. For NTSC, there are 525 scan lines per field, so assuming you double the lines (don't interlace), active field is 2*192/525 = cca 73% in the vertical scale; assuming square pixels it means 0.73*0.73=cca 53% of the whole frame (it also means some displayed border, but that was the standard of those fun-8-bitters anyway). Of course the blank/sync generation takes up some time, too, but I think, overally we some 1/3 of the raw performance is still left.

This time might be enough for most of the applications, as for the 1-clocker DS89C4x0 my "mini-benchmark" gives a cca 22x performance enhancement compared to 12MHz plain vanilla 8051, so after the video-cut it has still has the power equivalent of a 30MHz 6-clocker or so (the SiLabs gave me extra 4x, but that does not take into account the jump cache misses, so it's probably slightly less).

This is only the raw power consideration. When it comes to "response", the main restriction is that during the active line the mcu cannot do anything else. This means that a minimum "tick" for any timing is around 64us; assuming, that only the most necessary processing will be performed during the rather short horizontal blanking period; and most of the computing will remain for the vertical blanking period occuring in a 60Hz pace. This also imposes limits for UART reception, but that seems to be quite OK, as the character time for 115200 bauds (8N1) is 87us so 2 characters should not occur during one horizontal line.
However, I2C/SPI slave is more-less excluded even if it would have hardware support (this is valid also for the faster SiLabs or anything else).

As the horizontal scan duration is around 64us, the square pixel and the 73% active field and 256 horizontal pixels give me some 5.5MHz pixel clock, which approximately can be generated as 1/6 of the maximum 33MHz (rotation takes 1 cycle and bit move takes 2, so 3 cycles are left for byte fetch etc. per pixel).

As for color, it is not impossible to produce some 2-bit, 4-bit or even 8-bit output per pixel at the given rate assuming fast external memory. However, this comes at a cost - not only the memory itself, but also the handling of it takes more time - 2, 4, 8 times (although some algorithms might come out faster for the 8-bit version...), and also the addressing space of the '51 is "eaten up"... (from 6kB for the monochrome version up to 48kB for the 8-bit "full color" :-) ).

All in all, I think this is doable and might work quite well; although later we migh find out that a hardware video would be better. And, this is still NTSC (ok I think PAL is not substantially differen); but for VGA, the horizontal scan rate doubles so that would be one order of magnitude harder to achieve.. maybe with the SiLabs, with some considerations?

Jan Waclawek


List of 67 messages in thread
TopicAuthorDate
8051 8-bit computer            01/01/70 00:00      
   (or z80)            01/01/70 00:00      
   8051 computer            01/01/70 00:00      
      I never cringe on a "fun exercise" I do,            01/01/70 00:00      
         awesome?            01/01/70 00:00      
            Computer            01/01/70 00:00      
               8051 Computer.            01/01/70 00:00      
               Minor corrections            01/01/70 00:00      
                  11MHz?            01/01/70 00:00      
                     Not sure            01/01/70 00:00      
                        Congratulations            01/01/70 00:00      
                           Actually it's teh same            01/01/70 00:00      
                        11MHz            01/01/70 00:00      
                        Re: 8051 computer            01/01/70 00:00      
                           Just us            01/01/70 00:00      
                              Project Team            01/01/70 00:00      
                                 me tried            01/01/70 00:00      
                                    thoughts on project            01/01/70 00:00      
                                       What is a true multitasking controller?            01/01/70 00:00      
                                          multitasking controller            01/01/70 00:00      
                                             video            01/01/70 00:00      
                                             continued..            01/01/70 00:00      
                                          continued..            01/01/70 00:00      
                                             I don't think so            01/01/70 00:00      
                                                color display?            01/01/70 00:00      
                                                   Predko Video            01/01/70 00:00      
                                                      yes            01/01/70 00:00      
                                                      video, timing, speeds etc.            01/01/70 00:00      
                                                         Video Timing.            01/01/70 00:00      
                                                            6.2MHz pixel clock?            01/01/70 00:00      
                                                               Pixel Clock            01/01/70 00:00      
                                                                  pix clock            01/01/70 00:00      
                                                                  overclocking            01/01/70 00:00      
                                                                     pad pixels            01/01/70 00:00      
                                                just a suggestion            01/01/70 00:00      
                                                   Speed            01/01/70 00:00      
                                                      DS'4x0            01/01/70 00:00      
                                                      DIP / surface mount            01/01/70 00:00      
                                                         a 100MHz chip in a perf board? methinks            01/01/70 00:00      
                                                Hardware multitasking            01/01/70 00:00      
                                                Multitasking redefined            01/01/70 00:00      
                                             Misplaced self belief...            01/01/70 00:00      
                                                Daunting?            01/01/70 00:00      
                                                breadboarded            01/01/70 00:00      
                                                   TRS-80            01/01/70 00:00      
                                                      TRS80?            01/01/70 00:00      
                                                         in the beginning there was ..            01/01/70 00:00      
                                                         TRS-80 Info            01/01/70 00:00      
                                                            Man those were the days.            01/01/70 00:00      
                                                               That fast?            01/01/70 00:00      
                                                                  More retroinfo            01/01/70 00:00      
                                                                  TRS-80 forward speed.            01/01/70 00:00      
                                                                  Like I said, It was a long time ago            01/01/70 00:00      
                                                               hrm            01/01/70 00:00      
                                                                  TRS80 model 1 speed...            01/01/70 00:00      
                                                         TRS80            01/01/70 00:00      
                                                            You think?            01/01/70 00:00      
                                                               OK so both            01/01/70 00:00      
                                                   No pictures yet            01/01/70 00:00      
                                                      Video Capture Card?            01/01/70 00:00      
                                                         Nope            01/01/70 00:00      
                                                      video output            01/01/70 00:00      
                                                Qui?            01/01/70 00:00      
                                                Multitasking            01/01/70 00:00      
                                                   Real Time and Multi Tasking            01/01/70 00:00      
                                             Maybe whomever has "no idea what I'm tal            01/01/70 00:00      
      It's probably at least fast enough ...            01/01/70 00:00      

Back to Subject List