Mmmm. 512MB of RAM jumps out as a potential problem right away.
Try changing your Personalize settings to a non-Aero theme like classic and turn off all the video enhancements. Does the issue go away?
Are you getting any messages when the screen goes to black? Like "the display driver x has stopped"?