home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / tech / 1185 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.3 KB  |  52 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!u894776@postoffice.utas.edu.au
  3. From: u894776@postoffice.utas.edu.au (James McCoull)
  4. Subject: VIDC Programming Question
  5. Message-ID: <1993Jan8.051650.17939@newsroom.utas.edu.au>
  6. Sender: news@newsroom.utas.edu.au
  7. Organization: University of Tasmania, Australia
  8. Date: Fri, 8 Jan 1993 05:16:50 GMT
  9. Lines: 41
  10.  
  11. Just posting to ask for help on some low level VIDC programming.
  12.  
  13. I'm trying to program the VIDC to generate vsync interrupts after each scan
  14. line - for both screen splitting, palette changing and a few other odds and
  15. ends.  Unfortunately timers are no good for my task, I *must* have real
  16. vsyncs.  So far I'm having a little trouble due to lack of documentation
  17. (anyone know where I can find some documentation on the VIDC chip?
  18. so far all my knowledge has come from looking at the OS and playing around
  19. finding what the registers do).
  20.  
  21. Basically I have come up with two methods, but both do not work.  The first is
  22. the simplest:
  23.  
  24. (1)  I gather that a vsync occurs when the vertical position passes the
  25. value in the VDE (vertical display end) register.
  26. So I had thought by setting the VDE to VDS+1 (vertical display start), I
  27. would receive a vsync after the first line of the display - then on this
  28. interrupt i could increase the value in VDE by 1,... and so forth.
  29. However while all these registers do seem to take effect immediately
  30. (unlike the vinit,vstart,vend buffer registers - which seem to be latched
  31. on vsync) - this method doesnt seem to work.  It appears that the new VDE
  32. value is ignored (something to do with the "should i be displaying new data"
  33. logic on the VIDC chip?).
  34.    I've tried a less ambitious example of only a single midscreen interrupt
  35. but with no success.
  36.  
  37. (2)  My other 'method' is more complex it involves reprogramming the VC
  38. (vertical cycle), VSW (vertical sync width) to produce the same effect.
  39. However while i've only managed to get this method to work in a minimal sense.
  40. I've managed to get a mid screen split using this method, but the video display
  41. cuts out for at least one scan line... and i get about 8 distorted lines
  42. (due to syncing trouble?).
  43.  
  44. Would any experienced VIDC programmer care to help me?
  45. - or anyone care to post any VIDC documentation?
  46.  
  47. I'm at the hear tearing stage!!!
  48.  
  49. Preferably all followups to the news (as i don't have access to a proper
  50. unix account)
  51.  
  52.