element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
At The Core Design Challenge
  • Challenges & Projects
  • Design Challenges
  • At The Core Design Challenge
  • More
  • Cancel
At The Core Design Challenge
Blog ATCDC: Digimorf, Day 20, The project SEGA SG-1000 Emulator, VGA on PSoC62S4 Pioneer kit - part 5
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join At The Core Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Digimorf
  • Date Created: 19 Mar 2023 7:10 PM Date Created
  • Views 944 views
  • Likes 11 likes
  • Comments 8 comments
  • infineon
  • PSoCTm︎ 62 MCU
  • gpio
  • video
  • pwm
  • PSoC 62S4 pioneer kit
  • 320x240
  • vga
Related
Recommended

ATCDC: Digimorf, Day 20, The project SEGA SG-1000 Emulator, VGA on PSoC62S4 Pioneer kit - part 5

Digimorf
Digimorf
19 Mar 2023
ATCDC: Digimorf, Day 20, The project SEGA SG-1000 Emulator, VGA on PSoC62S4 Pioneer kit - part 5

I think that the first goal is reached. the Pioneer Kit is able to show a real 320x240 8bpp image!

image

image

Now it's time for making the VGA video driver more flexible so that I can change the horizontal and vertical resolution for my emulator. I need also to build a better 8-bit resistor DAC to improve the colors.

This driver makes use of one TCPWM that drives the HSync pulse with a PWM wave. An interrupt fired by this counter launches an ISR that handles the VSync, and the stream of pixels for every scanline of the vertical active area.

The clocking system uses the ECO clock, and the PLL to generate a 100MHz clock signal for the peripheral clock. I decided not to go at 150 MHz because the peripheral clock can only work at maximum 100MHz, and I should have divided the clock by 2, resulting in a peripheral clock of 75MHz, not enough fast for the DMA to transfer all the pixels of a scanline.

Thanks to misaz for helping with suggestions, especially for saving me a lot of soldering work for the 8-bit RGB port assigned to pins P2_0..7

What to say, I am very impressed by this MCU so far, and this successful step gives me a lot of enthusiasm and energy to move on in this project!

  • Sign in to reply

Top Comments

  • dougw
    dougw over 2 years ago in reply to Digimorf +1
    Great progress - impressive.
  • baldengineer
    baldengineer over 2 years ago in reply to Digimorf +1
    I prefer the former because it makes code more compact. But, it is more important to be consistent. I can adapt even when people use the wrong one.
  • genebren
    genebren over 2 years ago in reply to Digimorf

    I also like the latter (and I have been writing 'C' for more than 40 years).  I find that it allows indented blocks to stand out better (begin and end in the same column).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Digimorf
    Digimorf over 2 years ago in reply to baldengineer

    Right, consistency matters Thumbsup tone1

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 2 years ago in reply to Digimorf

    I prefer the former because it makes code more compact.

    But, it is more important to be consistent. I can adapt even when people use the wrong one. Slight smile

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Digimorf
    Digimorf over 2 years ago in reply to dougw

    Thanks, I am falling in love with this PSoC6 Grin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Digimorf
    Digimorf over 2 years ago in reply to dougw

    can't count how many times I have read posts on Facebook that ask which method is best.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube