UK Vintage Radio Repair and Restoration Discussion Forum

UK Vintage Radio Repair and Restoration Discussion Forum (https://www.vintage-radio.net/forum/index.php)
-   Vintage Computers (https://www.vintage-radio.net/forum/forumdisplay.php?f=16)
-   -   PIC14 edit, added save after hexload (https://www.vintage-radio.net/forum/showthread.php?t=196398)

Phil__G 29th Nov 2022 12:15 am

PIC14 edit, added save after hexload
 
It seemed strange to me that only manually keyed in programs were kept non-volatile. If you hex-loaded a program, it disappeared with the power off.
If you wanted to take your PIC14 to a show with a pre-loaded demo, say "Duckshoot", you couldnt hex-load the demo at home - you'd have to key it in manually, or hexload it at the show!
I dont think Karen did this deliberately, I think the intel hex loader was probably a 'late addition' to the firmware. Anyway this edit saves the hex-loaded program.
Its on the "Karen Orton 'PICL' NIBL Computer & PIC14 files" page of http://philg.uk right at the bottom of the page.

Phil__G 29th Nov 2022 2:49 am

Re: PIC14 edit, added save after hexload
 
Forgot to say, when a new PIC is programmed for the very first time, ie nothing has yet been manually keyed in or hex-loaded, rather
than leaving it empty, the non-volatile ram defaults to the Science of Cambridge Message demo from the MK14 manual.
This is overwritten as soon as any new program is keyed in or hexloaded.
So you can blow a brand-new pic, plug it in, press the "SC/MP Reset" button, type F 2 0 and Go, which if nothing else is a quick test,
confirming that indeed "as you can see the S of C is a jolly fine buy"
Cheers
Phil

Realtime 22nd Feb 2023 6:55 pm

Re: PIC14 edit, added save after hexload
 
I just posted a quick 2 minute video of the building of my PIC14 module. Very nice project and worked first time. It was great having the demo program already installed.

Next thing to try is the hex loader 8-)

Timbucus 22nd Feb 2023 10:17 pm

Re: PIC14 edit, added save after hexload
 
Yea nice liked the time lapse of the components being added :)

Phil__G 22nd Feb 2023 11:24 pm

Re: PIC14 edit, added save after hexload
 
Yes that was very effective! :)

Realtime 25th Feb 2023 6:10 pm

Re: PIC14 edit, added save after hexload
 
Quote:

Originally Posted by Realtime (Post 1538576)
Next thing to try is the hex loader 8-)

So the hex loader is working. I assume PIC14 doesn't recognise the execution address tagged at the end of the hex file? Currently PIC14 boots back to 0000 00 after a load.

I was trying to load a hex file that spanned the 0xB00 and 0xF00 RAM areas, only to eventually find this statement on Karen's site "although the PIC14 RAM features several times in the memory map, they are just copies – there is only 256 bytes of RAM in total". Explains why when I loaded Moon Lander ('George' version of course) I found it mirrored in the 0xB00 area. I must learn to read the documentation first :-D

SiriusHardware 25th Feb 2023 7:12 pm

Re: PIC14 edit, added save after hexload
 
Quote:

I assume PIC14 doesn't recognise the execution address tagged at the end of the hex file?
No, that 'convention' of having the execution address stored at FFFE/FFFF in the file only came about with my Pi-uploader, which Karen's PIC14 pre-dated by some years.

Phil seems to enjoy tweaking the PIC14 code though, so....?

Realtime 21st Mar 2023 8:05 pm

Re: PIC14 edit, added save after hexload
 
4 Attachment(s)
Some photos of my PIC14 fully dressed. It's actually a red LED display but the camera can't handle it.

To have a single letter for every key I used
P: PIC reset
R: MK14 reset
X: Abort

Attached is the hex file for displaying PIC14 on the 7 segment if anyone wants it. Loads and runs from 0F20.

It waits for a key press before returning to the monitor but only keys 2, 6, 8, C, F are detected as valid. The others are ignored. PIC14 keyboard decoding strikes again :o


All times are GMT +1. The time now is 10:17 pm.

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