UK Vintage Radio Repair and Restoration Powered By Google Custom Search Vintage Radio and TV Service Data

Go Back   UK Vintage Radio Repair and Restoration Discussion Forum > Specific Vintage Equipment > Vintage Computers

Notices

Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment.

Closed Thread
 
Thread Tools
Old 5th Jan 2025, 11:47 am   #1
Paul_G3WYW
Diode
 
Join Date: Sep 2020
Location: Thatcham, Berkshire, UK.
Posts: 7
Default PIC SC/MP PICLV2 upgrade?

Split from this thread:-

https://www.vintage-radio.net/forum/showthread.php?t=215623


Hi,

HNY to all.

I have a PIC SC/MP PICLV2 from Phil_G with Kitbug+ and NIBL. I'm confused about how to update the hardware to the new PICLV3 and latest KitBug++.

My PICLV2 runs at 9600 8N1 and I have to add char and line delays to load both Basic and hex files.

I see that there are two verions of Kitbug available to download 1200 and 2400 baud, but not sure how to download them into the PICL?

I thought that the SCMP Kitbug code was stored in the Dallas Static RAM chip, but now I'm not sure? Phil send me a patch to modify the D command to print 16 lines instead of just 8 (M2F32 from 08 to 10 ), which works but doesnt survive a power or reset cycle. If it was stored in the NVRAM I'd have thought it would be saved, but it gets reset to 08 every time.

Is there a step-by-step instruction set for upgrading the PICLV2 board to the latest SCMP PIC emulator and what I call Phils's latest Kitbug++?

I cut my teeth in microprocessors as a mature student at Hull Technical College in the late '70s on the SC/MP introkit board. It has always been my favourite processor.

I have a real INS8060 that seems to work, clock runs and Addr lines toggle with 1K resistors pulling data lines to NOP. Waiting for the Arduino Processor Emulator board to arrive from the USA to check it out before building a real one again.

Paul
Paul_G3WYW is offline  
Old 5th Jan 2025, 2:39 pm   #2
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,477
Default Re: PIC SC/MP PICLV2 upgrade?

Hi Paul, I dont know (or dont remember!) a PICLv3? Is it Mikes 16F18877 adaptation of the PICLv2?
The PICL version of KitbugPlus is different, it has to run in high memory as NIBL is in page zero. Expanding KB+ would mean relocating it to make room and in an 8k system theres not a lot to be gained, page 1 free memory would be very much reduced. Also many of the later KB+ additions use features which arent available or arent feasible in the emulation.
All the recent additions to KitbugPlus have been to the native (address 0000) version for 'real' scamps like the MGH8060GAL thats been a popular build on here - these have plenty of memory with a full 4k of page zero available for KB+.

Yet another alternative is Karens most recent PIC16F877 SC/MP emulation which, lacking a name, I dubbed the 'KO2019'. This has 32k ram and runs 'real' NIBL in page zero. Consequently it doesnt run KB+ but instead I've included a capable BASYS monitor in the package. The KO2019 is similar in many ways to the PICL but the extra memory over the PICL's two pages really does transform it. Personally this is my favourite of all Karens SC/MP machines: https://www.vintage-radio.net/forum/showthread.php?t=209704

I think if you've reached the limitations of the PICL you should treat yourself to a 'real' SC/MP build and I (and others, I'm sure) would highly recommend the Kris Sekula MGH8060GAL, it has everything
https://www.mccrash-racing.co.uk/philg/scmp/scmp.htm#mgh8060gal
Cheers Paul
Phil
Phil__G is online now  
Old 5th Jan 2025, 3:18 pm   #3
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 88
Default Re: PIC SC/MP PICLV2 upgrade?

Hi,
As you could read in my own thread I've made a new board out of the 32k version from, Philg. I've kitbug+ running at 0x7c00 using the I/O routines from the nibl rom. I made a new Nibl kitbug+ load program based on the one used by Philg that installs my version at 0x7c00. It works flawless. This program runs at PAGE2 only. I've included my version that runs on the 32K version. It doesn't include a bin-loader... minicom doesn't support this. I'm busy with an Intel hex loader. Here the link to my project on hackaday.: https://hackaday.io/project/202124-scamp-in-a-pic-based-on-the-design-of-k-orton
Here you can find the gerberfile for the PCB also.
Attached Files
File Type: txt kbplus010125_loader.txt (2.7 KB, 158 views)
__________________
Greetings,

Nick de PE1GOO
nlpe1goo is offline  
Old 5th Jan 2025, 4:09 pm   #4
Paul_G3WYW
Diode
 
Join Date: Sep 2020
Location: Thatcham, Berkshire, UK.
Posts: 7
Default Re: PIC SC/MP PICLV2 upgrade?

Hi Phil,
Thanks for the reply. My confusion!. I called the changes you had done to the PICLV2 emulation ( Fixed DLY and 1200Baud Fast Load with SA ?) as PICLV3.

I'm still a bit confued about the PICL2 Memory map. It has an 8K Static ram chip that has 2 x 4K pages from $1000 - 1FFF and $2000 - 2FFF and the NIBL ROM emulated in the PIC Code, presumably at $000 - 0FFF. Where is the Kitbug+ code? I was hoping I could just replace the existing Kitbug by the new one adjusting the start address accoringly. The chips came preprogrammed from you with the PICLV2 PCB.
I cant see where the boot message with "COLD WARM and Kitbug+" selection comes from?

Thanks for the pointers the KO2019 design et al. More reading! As you say the MGH8060GAL has everything.

BR Paul
Paul_G3WYW is offline  
Old 5th Jan 2025, 6:56 pm   #5
ortek_service
Nonode
 
ortek_service's Avatar
 
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 2,736
Default Re: PIC SC/MP PICLV2 upgrade?

Quote:
Originally Posted by Paul_G3WYW View Post
>>
>>

I cut my teeth in microprocessors as a mature student at Hull Technical College in the late '70s on the SC/MP introkit board. It has always been my favourite processor.

I have a real INS8060 that seems to work, clock runs and Addr lines toggle with 1K resistors pulling data lines to NOP. Waiting for the Arduino Processor Emulator board to arrive from the USA to check it out before building a real one again.

Paul
Nice to hear of someone using the Introkit, back in the day
- after I finally recently got-working, the faulty one I'd picked-up some decades ago before I knew anything about the SC/MP or MK14 etc.

Although it does use the original, slower, PMOS ISP-8A/500D ceramic-only DIL40 package version
- rather than the later NMOS INS8060(D/N) (aka ISP-8A/600(D/N) SC/MP-II) you mention you have.


Quote:
Originally Posted by Phil__G View Post
>>
>>
>>
All the recent additions to KitbugPlus have been to the native (address 0000) version for 'real' scamps like the MGH8060GAL thats been a popular build on here - these have plenty of memory with a full 4k of page zero available for KB+.
>>
>>
>>

I think if you've reached the limitations of the PICL you should treat yourself to a 'real' SC/MP build and I (and others, I'm sure) would highly recommend the Kris Sekula MGH8060GAL, it has everything
https://www.mccrash-racing.co.uk/philg/scmp/scmp.htm#mgh8060gal
Cheers Paul
Phil

Yes, the MGH8060GAL board would be a low-cost way of testing / using an INS8060 (by far the most expensive part, now that even used ones of these often cost around £40! So good to already have one, that hopefully works OK).
I built the Kris Sekula's (My Geeky Hobby) original MGH8060 PCB (that was a corrected version of Ronald Dekker's original SC/MP system design) non-GAL version, mod-ed with Ian's use of a GAL to replace the original logic
Then I added some further enhancements to the GAL etc, to make it very-close (as practically feasible on existing PCB) to the later MGH8060GAL version (where Kris had now incorporated Ian's etc original GAL mods, plus some other additions into a larger pin-count GAL).


A slightly-simpler / even lower-cost alternative, is to use the Martin Lukasek MK14 RAM (& EEPROM Alternative to original Bi-PROM's) board https://www.8bity.cz/2018/science-of-cambridge-mk14-1536b-ram-expansion/ - by itself, with an added crystal + serial connections to a USB-UART that Phil_G had prototyped and originally ran KitBug+ on.

And which Kris Sekula then did an updated PCB for, incorporating this option: https://www.pcbway.com/project/shareproject/Sinclair_MK14_co...OM_RAM_Kitbug_adapter_a7798ec1.html
- I also built a couple of these, but I've only used the original design, with the on-board crystal, in a full MK14 system so far.

Last edited by ortek_service; 5th Jan 2025 at 7:06 pm.
ortek_service is offline  
Old 5th Jan 2025, 11:57 pm   #6
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,477
Default Re: PIC SC/MP PICLV2 upgrade?

Hi Paul ok I'm with you now, you have the PIC16F18877 version. The PIC flash retains a permanent copy of KB+ which it copies into NVRAM at 2C00 hex. Its a convoluted process to reprogram the 18877 so if you want I can swap your chip for one with the 16 line dump if you like.
Quote:
Originally Posted by Paul_G3WYW View Post
I cant see where the boot message with "COLD WARM and Kitbug+" selection comes from?
Thats all part of the PIC assembler code Paul, it runs before the emulation starts.
Quote:
Originally Posted by Paul_G3WYW View Post
I'm still a bit confued about the PICL2 Memory map. It has an 8K Static ram chip that has 2 x 4K pages from $1000 - 1FFF and $2000 - 2FFF and the NIBL ROM emulated in the PIC Code, presumably at $000 - 0FFF. Where is the Kitbug+ code?
Yes exactly. Page 0 (0000-0FFF) is NIBL addressed within the PIC flash. Page 1 is (1000-1FFF) in the top half of the 8k NVRAM and page 2 is (2000-2FFF) in the bottom half of the NVRAM - note that if you read the NVRAM in a programmer you'll find Karen swapped page 1 & 2 in RAM, I never did work out if that was intentional, maybe it was for code economy somewhere.

However...
I've just checked and found my 'Karen' page on https://philg.uk has reverted to a very old copy.
Might take a couple of days to straighten out the mess, but asap!

Cheers
Phil

Last edited by Phil__G; 6th Jan 2025 at 12:16 am.
Phil__G is online now  
Old 6th Jan 2025, 12:43 am   #7
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,477
Default Re: PIC SC/MP PICLV2 upgrade?

Its all restored again now, PICLv2 etc is all there, eg the KO2019: https://www.mccrash-racing.co.uk/philg/picl/picl.htm#ko2019
Phil__G is online now  
Old 8th Jan 2025, 11:46 pm   #8
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,477
Default Re: PIC SC/MP PICLV2 upgrade?

Paul, yesterday I sent you a replacement 18877 with the current PICL code (so did we call the 18877 version PICLv3? - I dont remember) with your 16-line D command, and a 22v10 gal for your MGH8060GAL. All being well should arrive tomorrow.
Cheers
Phil
Phil__G is online now  
Old 9th Jan 2025, 11:08 pm   #9
Paul_G3WYW
Diode
 
Join Date: Sep 2020
Location: Thatcham, Berkshire, UK.
Posts: 7
Default Re: PIC SC/MP PICLV2 upgrade?

Hi Phil,

Thanks, much appreciated. The PIC’8877 is due this weekend, and the PCBs are due next Wednesday. I’ll post the board and chip,when I’ve got them.

Wondering what sort of box to mount the PCB into.

BR Paul
Paul_G3WYW is offline  
Old 10th Jan 2025, 8:25 pm   #10
Paul_G3WYW
Diode
 
Join Date: Sep 2020
Location: Thatcham, Berkshire, UK.
Posts: 7
Default Re: PIC SC/MP PICLV2 upgrade?

Hi Phil,
Thanks for the PIC and GAL that arrived today.
The replacement chip works fine with my PICL board, but i had to use a different CH340 USB TTL board as that one died as well. I'm thinking that maybe I zapped the PIC processor in taking it out to put in the TL866 programmer.

My replacement PiC 18877 is due next week along with the PCBs from China, so I'll post back to you when received.

Many thanks again. Much appreciated.
73 Paul G3WYW
Paul_G3WYW is offline  
Old 10th Jan 2025, 8:58 pm   #11
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,477
Default Re: PIC SC/MP PICLV2 upgrade?

PIC chips are remarkably durable Paul, very tolerant to mishandling, could it have been a power supply problem? especially if the CH340G went too? Not to worry as long as its working again
Phil__G is online now  
Closed Thread

Thread Tools



All times are GMT. The time now is 12:09 pm.


All information and advice on this forum is subject to the WARNING AND DISCLAIMER located at https://www.vintage-radio.net/rules.html.
Failure to heed this warning may result in death or serious injury to yourself and/or others.


Powered by vBulletin®
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright ©2002 - 2025, Paul Stenning.