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. |
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 |
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-) |
Re: PIC14 edit, added save after hexload
Yea nice liked the time lapse of the components being added :)
|
Re: PIC14 edit, added save after hexload
Yes that was very effective! :)
|
Re: PIC14 edit, added save after hexload
Quote:
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 |
Re: PIC14 edit, added save after hexload
Quote:
Phil seems to enjoy tweaking the PIC14 code though, so....? |
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.