Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:00 01 Aug 2025 Privacy Policy
Jump to

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 : probably I did something that you shouldn't do....

Author Message
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 02:03pm 27 Jan 2021
Copy link to clipboard 
Print this post

...but it worked on my original monitor, an oldish 4:3 Acer 19".

So, I decided to try a different monitor today, a Vizio 19" TV/monitor, in order to take advantage of widescreen modes. In testing this out, to see if there were any issues with the different modes, all was going well until I tried it with my current project (Qbert). It 'immediately' kicked back to the prompt. It took me a few minutes to find the problem. I'm using mode 4,12...for now at least, but recently took advantage of the frame blanking interrupt capability. When I first did this, it crashed, as some objects don't exist before the interrupt 1st fires. I fixed this by not specifying the interrupt at first, but after all the objects are created, put in another 'mode 4,12,interrupt' command in and all was well....until the new monitor. Now, perhaps what I did originally is bad practice...certainly this TV/monitor doesn't like it. Fixed it by adding a flag to return from interrupt until all objects are created.

Live and learn...and share something if it seems....interesting.

Steve
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 06:15pm 27 Jan 2021
Copy link to clipboard 
Print this post

I don't see how something plugged into the VGA port can possibly affect programs running on the CMM2. Crazy voltages might fry MCU pins, but change program operation?
Visit Vegipete's *Mite Library for cool programs.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 06:54pm 27 Jan 2021
Copy link to clipboard 
Print this post

  Quote  I don't see how something plugged into the VGA port can possibly affect programs running on the CMM2. Crazy voltages might fry MCU pins, but change program operation?


Given yock1960's description it would be random if it crashed depending of the timing of the first frameblanking relative to the initialisation running
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025