{"id":1149,"date":"2020-11-18T21:21:26","date_gmt":"2020-11-18T21:21:26","guid":{"rendered":"https:\/\/pdp2011.sytse.net\/wordpress\/?p=1149"},"modified":"2020-11-18T21:21:26","modified_gmt":"2020-11-18T21:21:26","slug":"playing-around-with-minc","status":"publish","type":"post","link":"https:\/\/pdp2011.sytse.net\/wordpress\/playing-around-with-minc\/","title":{"rendered":"Playing around with MINC"},"content":{"rendered":"\n<p>In the first volume of the MINC book set &#8216;Introduction to MINC&#8217; several demonstration programs are mentioned. These demonstration programs (and a few more) are on the demo diskette image that you can find on Bitsavers. And if you follow the process I described in the previous post, the demo programs will end up on the RK image.<\/p>\n\n\n\n<p>So, playtime. I selected the DADEM to give a try &#8211; a demonstration of the DA module.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"799\" src=\"https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-1024x799.png\" alt=\"\" class=\"wp-image-1150\" srcset=\"https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-1024x799.png 1024w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-300x234.png 300w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-768x599.png 768w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-1536x1199.png 1536w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-1200x936.png 1200w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10-600x468.png 600w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-18-at-20.58.10.png 1694w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>For the D\/A part, I had already added a driver for the PMODDA2 &#8211; I had one of those lying around. Not ideal maybe, since it only has two channels, and it&#8217;s limited to 0V-3.3V &#8211; the original MNCAA could be set to 5 different voltage ranges with knobs on the front panel, up to -10.24V to +10.235V!<\/p>\n\n\n\n<p>Anyway, of course in my first experiments I hooked up my trusty digital voltmeter and everything worked great &#8211; but digital voltmeters do lack the proper mad scientist feeling that real meters with swinging needles give. So I just had to go into my storage room and dig out the box with old toys to find something more fitting.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-1024x683.jpg\" alt=\"\" class=\"wp-image-1151\" srcset=\"https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-1024x683.jpg 1024w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-300x200.jpg 300w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-768x512.jpg 768w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-1536x1024.jpg 1536w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-1200x800.jpg 1200w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055-600x400.jpg 600w, https:\/\/pdp2011.sytse.net\/wordpress\/wp-content\/uploads\/2020\/11\/D85_8055.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>And there it is. I&#8217;m not quite sure how old it is, but definitely older than I am &#8211; my dad took it home with him for his kids to play with, in the early 70s. It came from a laboratory instrument that his employer had discarded &#8211; probably a heavy power supply with lots of valves in it. For years the meter figured next to the transformer in various Fischer-Technik setups, later on I used it for my dangerous electrolysis prototypes&#8230; and it&#8217;s brother, taken from another instrument became the show piece on the front panel of my home made audio amplifier that I used in various offices until late in 1999. The amplifier is no more, but I still have the meter.<\/p>\n\n\n\n<p>Anyway, the demo. It makes the voltmeter swing around for a settable number of seconds, and it&#8217;s remarkably unimpressive &#8211; given that the range of 0V-3.3V is not really doing a lot on a 0-20V scale. I&#8217;ll have to look into level converters next. It&#8217;s not that bad with MNCAA really, but the &#8216;wrong&#8217; input range conversion with MNCDA is a bit jarring &#8211; that needs fixed.<\/p>\n\n\n\n<p>For convenience, here&#8217;s the listing of the test program. If you are going to give it a go, take line 22 out &#8211; it will likely mess up the terminal emulator. Yes, it would be great if the terminal emulator in PDP2011 would be vt105 compatible&#8230; hmm, I&#8217;ll think about it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">10 REM -----DADEM\n20 REM ----------Program to put analog out to digital volt ohmmeter\n22 DISPLAY_CLEAR\n30 PRINT 'DIGITAL-TO-ANALOG DEMONSTRATION PROGRAM' \\ PRINT\n40 PRINT 'The digital-to-analog demonstration program  generates a voltage'\n50 PRINT 'at the D\/A output causing the volt-ohmmeter to oscillate starting'\n60 PRINT 'with a small amplitude and slowly increasing until a maximum'\n70 PRINT 'amplitude is reached.'\n80 PRINT\n90 PRINT 'Connect the volt-ohmmeter to one of the four channels of the D\/A'\n100 PRINT 'converter.  Set the volt-ohmmeter to DC volts and select a range'\n110 PRINT 'that will give  full-scale deflection for a 5 volt input.'\n120 PRINT\n130 REM Request user input\n140 REM\n150 PRINT 'How many seconds do you wish to run (1 to 30)'; \\ INPUT T\n151 PRINT 'How many D\/A converters do you have in your configuration';\n152 INPUT N\n153 IF N&gt;=1 THEN IF N&lt;=4 THEN  GO TO 157\n156 PRINT 'please specify an integer between 1 and 4' \\ GO TO 151\n157 IF N&gt;1 GO TO 600\n160 PRINT USING 'What channel did you connect the volt-ohmmeter to (0 to ##)',4*N-1; \\ INPUT C\n170 L=127 \\ M=.5 \\ A=16 \\ D=1 \\ V=0\n180 REM Schedule an interrupt T seconds from now\n200 S=0\n210 SCHEDULE('Interval',T,420)\n270 REM Repeat the following code until interval complete\n290 IF S=1 THEN 500\n300 AOUT(,V,,,C)\n310 GOSUB 330\n320 GO TO 290\n330 V=V+A*D\n334 IF D*V&lt;ABS(L) THEN 400\n336 D=-D\n340 L=-L\n350 IF L&lt;0 THEN 400\n360 IF L&lt;200 THEN 380\n370 IF L&lt;2000 THEN 390\n380 M=1\/M\n390 L=L*M\n400 RETURN\n410 GO TO 150\n420 REM Set the done flag.\n430 S=1\n440 RETURN\n500 PRINT  \\ PRINT 'AGAIN (Y or N)'; \\ INPUT A$\n510 IF A$='Y' THEN 120 \\ IF A$='y' THEN 120\n520 IF A$='N' THEN 800 \\ IF A$='n' THEN 800\n530 PRINT 'Please answer Y or N' \\ GO TO 500\n600 PRINT 'If you have followed the suggested configuration rules then your modules'\n601 PRINT 'are addressed as follows:' \\ PRINT\n602 PRINT 'The rightmost d\/a converter in the chassis has lines    0-3'\n610 PRINT 'The next d\/a converter to the left has lines:           4-7'\n620 IF N=2 THEN 700\n630 PRINT 'The next d\/a converter to the left has lines:           8-11'\n640 IF N=3 THEN 700\n650 PRINT 'The next d\/a converter to the left has lines:           12-15'\n700 GO TO 160\n800 END\n<\/pre>\n\n\n\n<p>Another thing with this test program &#8211; and the other one that I played around with, the DODEM for digital output &#8211; is that they use statements like SCHEDULE and PAUSE. Those require that the SJ monitor is sysgenned with timer support &#8211; if you didn&#8217;t, then those statements won&#8217;t work. And another thing: the sysgen needs to match the actual rate of the KW11 line clock in your system. Yes, I managed to get that wrong too \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the first volume of the MINC book set &#8216;Introduction to MINC&#8217; several demonstration programs are mentioned. These demonstration programs (and a few more) are on the demo diskette image that you can find on Bitsavers. And if you follow the process I described in the previous post, the demo programs will end up on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[8],"class_list":["post-1149","post","type-post","status-publish","format-standard","hentry","category-minc","tag-minc","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/comments?post=1149"}],"version-history":[{"count":0,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1149\/revisions"}],"wp:attachment":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/media?parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/categories?post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/tags?post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}