3rd Apr 2023, 7:37 pm | #61 |
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
My error I meant I was using 'send' rather than 'transfer'.
But anyway still nothing working I have attached screen shots of the what gets displayed and the copy buffer etc . The delay is set to 3/300ms I don't think I have changed anything else other than enabling local echo. It looks like it is just not waiting at the end of the line long enough for NIBL to process the line but extending the time does not seem to have any affect ? I am sure it is something obvious on com port |
3rd Apr 2023, 9:45 pm | #62 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Heres my setup, its running a NIBL prog on a PICL right now:
Try 'auto' on receive, the first screen looks like Teraterm isnt doing a linefeed after carriage return Last edited by Phil__G; 3rd Apr 2023 at 9:57 pm. |
3rd Apr 2023, 11:14 pm | #63 | |
Octode
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 1,443
|
Re: Anyone building a PICL? more PCBs available
Quote:
- As it seems NIBL only sends 'LF', without a 'CR', so get this effect on most Terminal Programs I tried, without altering this setting. Although I'm not sure if it would affect the 'Send', if that is purely transmitting without waiting for any response. I've not tried sending a BASIC program into NIBL yet - Only using the Hexloader function, to upload m/c for running in Kitbug+. But I'll give it a try, to see what happens on my setup - I wonder if whether it works properly, depends on whether the file you send has CR, LF or CR+LF at the end of each line? |
|
3rd Apr 2023, 11:33 pm | #64 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Both NIBL and KitbugPlus send CR and LF at every line end David. Can you manually enter a NIBL program, list it & run it?
Does the KB+ 'D' command display properly? |
3rd Apr 2023, 11:55 pm | #65 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
This is the only demo I have where you can see an upload:
https://youtu.be/sQQYscBaKGM I've been playing with the Grant Searle Z80s for so long I'd forgotten how NIBL responds, I think your first screen shot is ok, because of the local echo, when you send a file it appears immediately on screen, but actually sends slowly to the PICL, and you see the prompts coming back from NIBL separately below. If you have receive set to CR all the pasted text will be on one line, long lines overwriting short ones, and the prompts will move diagonally across the screen, like the in video above. Set receive to auto and it scrolls the pasted text correctly, then responds with all the prompts vertically - which I prefer None of this affects loading, it looks weird on the screen but its caused by the local echo - ignore how it looks, the program loads fine! Cheers Phil Try the attachment Last edited by Phil__G; 4th Apr 2023 at 12:24 am. |
4th Apr 2023, 12:27 am | #66 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Missed the edit window
This is the only demo I have where you can see an upload: https://youtu.be/sQQYscBaKGM I've been playing with the Grant Searle Z80s for so long I'd forgotten how NIBL responds, I think your first screen shot is ok, because of the local echo, when you send a file it appears immediately on screen, but actually sends slowly to the PICL, and you see the prompts coming back from NIBL separately below. If you have receive set to CR all the pasted text will be on one line, long lines overwriting short ones, and the prompts will move diagonally across the screen, like the in video above. Set receive to auto and it scrolls the pasted text correctly, then responds with all the prompts vertically - which I prefer None of this affects loading, it looks weird on the screen but its caused by the local echo - ignore how it looks, the program loads fine! The same happens when hexloading except of course you dont see prompts coming back after every line, you just have to wait until eventually it does prompt, and the serial I/O LED stops flashing. I hadnt remembered this because for hexloading I use zero delays. Cheers Phil PS Try the attachments above, all should work fine Last edited by Phil__G; 4th Apr 2023 at 12:44 am. |
4th Apr 2023, 2:17 am | #67 | |
Octode
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 1,443
|
Re: Anyone building a PICL? more PCBs available
Thanks for the example BASIC Program files nibl_progs.zip attachment.
- Saved having to type some into an editor, and worry about whether 'PC' format CR+LF, of 'Unix' format without the 'LF' was required. I just sent Karen.BAS, using 5ms / 300ms delay in TeraTerm (4.106), and that all worked OK for me, running without any issues. Quote:
KitBug+ sends 0A 3F(=?) 0D 0A 0D 0A before sending the 'Kitbug+ > ' text to show its prompt, when Enter key is pressed on the terminal. But NIBL only sends 0A 3E (The '>' prompt), in response to 'Enter' and so NIBL is not sending a 'CR' in response - Hence the diagonal line of '>', unless terminal program adds a C'R'. However, if your type 'LIST' in NIBL,it does then send 0D 0A 0D 0A 3E (='>'), and so do get an extra blank line after listing, as well as a proper return onto next line (without requiring terminal program to do this). I assume the PIC16F877 versions of NIBL behaves the same as this PIC16F18877 one? Last edited by ortek_service; 4th Apr 2023 at 2:40 am. |
|
4th Apr 2023, 10:36 am | #68 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
KitbugPlus responds to an input error or invalid command by attempting to put a '?' under the error using linefeed, and just pressing enter is an invalid command - so what you've seen is right Owen
|
4th Apr 2023, 10:07 pm | #69 |
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
|
4th Apr 2023, 10:29 pm | #70 | |
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
Quote:
Thanks for the help on this, now I just need to find a nice transparent topped box for the PICL to live in |
|
4th Apr 2023, 10:39 pm | #71 | ||
Octode
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 1,443
|
Re: Anyone building a PICL? more PCBs available
Quote:
What I had actually been trying to show, in summarising it's behaviour alongside that of NIBL, was how NIBL seemed to be different from Kitbug+, with it only sending a LF, and no CR, when you just press 'Enter' - unless that too was trying to highlight an input error, by putting prompt under it? (However, setting TeraTerm Receive Linefeed to CR or Auto, did give you a more conventional return to the display's first column.). And it only send CR + LF's, when responding to a valid command like 'LIST' etc. I've never got to use the original NIBL on a real SC/MP yet, so not sure if that was exactly the same. But co-incidentally, I've just come across some old posts on here from Karen Orton, which detailed how difficult it was to run that anymore, as required 110baud (which it seems many modern PC Interfaces no longer support) and said this was one of the motivations in creating PICL NIBL, to allow people run this more-easily. Last edited by ortek_service; 4th Apr 2023 at 10:57 pm. |
||
4th Apr 2023, 11:23 pm | #72 | |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Quote:
Sorry I didnt explain this earlier, its been a while since I did anything with NIBL, I'd forgotten about the local echo effects in fact it didnt click until I watched a bit of the video linked above (post #66) . Last edited by Phil__G; 4th Apr 2023 at 11:29 pm. |
|
5th Apr 2023, 1:23 am | #73 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
...and here in the PICLv2 video:
https://youtu.be/d4PSkEpVwAE?t=550 With receive set to 'auto' it functions exactly the same but does look neater |
9th Apr 2023, 10:36 am | #74 |
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
Just asking for a 'friend' but is one able to trash Kitbug+ using the hex load function....
At a loose end earlier I thought I would give loading life.hex a go. I had an initial 'hiccup' which was down to me but on the second attempt the load seemed fine with the "done" message. However when I tried to run it @ 1800h it printed a line of 'H' and froze. On rebooting NIBL seems fine but Kitbug is clearly not happy... I can still get to the load / save option on reset Anyway I can re-program the PIC if needed so not the end of the world |
9th Apr 2023, 11:08 am | #75 | ||
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
Quote:
Thanks |
||
9th Apr 2023, 12:39 pm | #76 | |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Quote:
So 'yes and no'. You can, but its only temporary and fixes itself On the 877 nvram version if you overwrite KB+ just reinstall it with the hexload function, files are on philg.uk , takes seconds Cheers Phil Last edited by Phil__G; 9th Apr 2023 at 1:01 pm. |
|
9th Apr 2023, 1:17 pm | #77 |
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
Ok that makes sense it seems to be happier now, I am thinking I probably did not
Leave it unplugged for long enough - to let the elect cap fully discharge - just a reset did not seem to do it - will maybe try moding the reset to a more ‘classic’ version with a capacitor and diode etc |
9th Apr 2023, 1:27 pm | #78 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Here's a demo of me deliberately corrupting KitbugPlus (actually just the prompt), then being 'saved' and 'restored' on the PIC16F18877 version:
Other than me inserting the red comments its a straight copy & paste from my Teraterm screen: [ RESET ] Loading RAM Image: $1100-$2FFF PICL/NIBL 8K - (C) Karen Orton [C]old, [W]arm, [K]itbug+ Monitor? K [ SELECT K FOR KB+ ] [ NOW DELIBERATELY CORRUPT THE KITBUGPLUS PROMPT: ] Kitbug+ > M2C49 2C49 4B 43 2C4A 69 61 2C4B 74 . ? Catbug+ > [ NOW KB+ IN RAM HAS A CORRUPTED PROMPT! ] [ NOW TRY TO SAVE CORRUPTED KB+ TO FLASH WITH SENSE-B & RESET ] [L]oad HEX, [S]ave to Flash? S done [ RESET ] PICL/NIBL 8K - (C) Karen Orton [C]old, [W]arm, [K]itbug+ Monitor? C [ COLD START ] >LINK #2C00 [ RUN KB+ AS IT REMAINS IN RAM ] Catbug+ > [ AND ITS STILL CORRUPTED, AS EXPECTED ] [ RESET ] Loading RAM Image: $1100-$2FFF PICL/NIBL 8K - (C) Karen Orton [C]old, [W]arm, [K]itbug+ Monitor? K [ SELECT K FOR KB+ ] Kitbug+ > [ AND THE CORRECT CODE IS RESTORED ] Last edited by Phil__G; 9th Apr 2023 at 1:41 pm. |
9th Apr 2023, 1:47 pm | #79 |
Pentode
Join Date: Nov 2022
Location: Chesham, Buckinghamshire, UK.
Posts: 135
|
Re: Anyone building a PICL? more PCBs available
Phil,
Thanks as I said the difference I found was that I need to cycle power to get ut happy again, although that could have been the serial port - usb adapter playing up. Anyway It's happily running life now |
9th Apr 2023, 2:33 pm | #80 |
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
|
Re: Anyone building a PICL? more PCBs available
Since it was only a demo I just pre-set the starting pattern, before running it you can edit it with the KB+ modify command if you like, just one cell can make quite a difference!
The grid is from 18D6h to 1B15h and contains either 0 (dead) or 1 (alive), not very efficient but hey ho Pleased to hear yours is sorted BTW in the session recorded in the previous post there were no power-cycles, just a dab of the reset button... I wonder if maybe it was just crud in the Teraterm rx buffer? (Edit, Clear buffer. and Control, Reset port) are handy commands, (Setup, terminal) is 80X25, rx=auto & tx=CR, VT100 & local echo on. Cheers Phil Last edited by Phil__G; 9th Apr 2023 at 2:44 pm. |