brucland / RP2040

Building an understanding of the Pi RP2040 by iterative programming and head-scratching.
15 stars 3 forks source link

Color NTSC ? #1

Open ganadevprajapathy opened 2 years ago

ganadevprajapathy commented 2 years ago

Can you guide how to achieve color? https://github.com/Panda381/PicoVGA, the project is using VGA but the output has generated color. I probably need some spoon feeding !

brucland commented 2 years ago

NTSC hue is encoded as phase modulation of a 3.59 MHZ carrier added to the gray scale waveform. So, start a PIO state machine running at 4x the carrier frequency, and use it to simulate a ring counter with two high bits.Use 4 and-gates to mix one or more of the four phases depending on color data from the data state machine.

========================== Bruce Land Visiting Sr.Lecturer, ECE http://people.ece.cornell.edu/land/

On Oct 30, 2021, at 6:52 AM, ganadevprajapathy @.***> wrote:



Can you guide how to achieve color? https://github.com/Panda381/PicoVGA, the project is using VGA but the output has generated color. I probably need some spoon feeding !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/brucland/RP2040/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUMOOBBLH33LPZP7YOHF3JLUJPE5NANCNFSM5HA6GNGQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.