Topics Topics Edit Profile Profile Help/Instructions Help Member List Member List  
Search Last 1|3|7 Days Search Search Tree View Tree View  

Using Notepad In TK3

:: EPE Chat Zone ­:: ­Radio Bygones Message Board :: » EPE Forum Archives 2005-2006 » Archive through 13 September, 2006 » Using Notepad In TK3 « Previous Next »

  Thread Last Poster Posts Pages Last Post
  ClosedClosed: New threads not accepted on this page        

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul_goodson
Frequent Contributor
Username: Paul_goodson

Post Number: 541
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 11:26 am:   Edit Post Delete Post Print Post

Hi all
I am writing quite a large asm within TK3 using Notepad as my editor
Unfortunately Notepad seems to have ran out of space!!!!!!!!!!

I know I could use Inc files but not sure if they will help in this case
As most of it is the main code
As a good bit of the code is used to call sub routines to send data to a LCD I wonder if it’s possible to use an inc-file for this separately.


But then again I think I could still be struggling with Notepad
May I ask what others use with tk3 instead of notepad or haw they get over this.


Thanks Paul
The bluntest pencil is better than the sharpest memory!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Joe
Frequent Contributor
Username: Joe

Post Number: 200
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 12:49 pm:   Edit Post Delete Post Print Post

Paul,

I used to use this (used to as I don't do ASM programming any more)

http://www.editplus.com/


You can define your own syntax so that you get colour for keywords etc.

Joe
Do one thing each day that scares you – work here !
Top of pagePrevious messageNext messageBottom of page Link to this message

Philwarn
Regular Contributor
Username: Philwarn

Post Number: 22
Registered: 04-2005

Rating: 
Votes: 1 (Vote!)

Posted on Wednesday, 06 September, 2006 - 01:15 pm:   Edit Post Delete Post Print Post

Paul,

Two suggestions for you.

1) THe other free editor with Windows is Word Pad so you can use that as it has no limit (except memory) on the size of file being edited.

2) The Programmer's File Editor which is no longer supported - is British and still available to be downloaded, nice, with many nifty features.

It can be found here

<www.download.com> and search for Programmer's editor - it will be called pfe10*.* - i use wild cards - it was last improved in 1999 I think

HTH

Phil

Orpington's Openly Obsessive Ogler
Top of pagePrevious messageNext messageBottom of page Link to this message

Grab
Frequent Contributor
Username: Grab

Post Number: 266
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 02:03 pm:   Edit Post Delete Post Print Post

Go to any shareware/freeware download site (Filemine, for instance) and look for text editors. There's hundreds of them.

If you've exceeded the limits of Notepad though, then there's probably something wrong with how you're structuring your files. I try to keep every major bit of functionality in a separate file, so that it's easy to find them and edit each bit individually. More than a thousand lines of code in a file and I reckon it's probably time to look at partitioning it up a bit more.

Include files will certainly work. And I don't know about TK3, but MPLAB certainly allows you to compile multiple code files into object files for linking afterwards. That way each file compiles individually, which makes your builds a damn sight faster because only the files that change need rebuilding.

Graham.
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul_goodson
Frequent Contributor
Username: Paul_goodson

Post Number: 542
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 05:00 pm:   Edit Post Delete Post Print Post

Thanks all
Joe thanks, that looks good but Id rather use a free one if I can

I also have MPLAB that I am just getting the hang of using and copied the asm in to its text editor.
And created a hex file from that.
Well after going through a big list of errors I finally make a hex file from it
Then used this hex file in Tk3 to program the chip, but it didn’t work, even though the code was sent to the pic and tk3 verified it

Does anyone know If its possible to do this? I will have another go later but I wonder if it’s down to the configuration settings in some way!
Or just something Iv got wrong within MPLAB again




Hi Phil

who has been voting for you?

thanks I have WordPad and it doesn’t seem to like being used in TK3 as a asm editor but it will work as a list file!!!!!

Thanks also Graham

I have never had to split a program up before as I quite like it all in one file and up till now didant see a need to..
But then again some of my programs are now started to get a lot bigger and a lot more complex, in this case I am getting close to finishing a current project and cant add anymore code to notepad to finish the dam thing.
I guess I will have to start using include files but didn’t think you could use them as subroutines to be called from the main program!!!
I will have to have a look at the object files you mentioned in MPLAB.


Thanks Again
The bluntest pencil is better than the sharpest memory!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Joe
Frequent Contributor
Username: Joe

Post Number: 201
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 05:03 pm:   Edit Post Delete Post Print Post

Paul,

After the 30 days or so it just pops a nag screen every so often than you just click OK on, but it keeps on working.
Do one thing each day that scares you – work here !
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul_goodson
Frequent Contributor
Username: Paul_goodson

Post Number: 543
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 05:10 pm:   Edit Post Delete Post Print Post

Thanks again Joe
I will give it a look to.
By the way
I have someone that lives with me like that!!!!

Nags a bit then carries on working

Paul

(Message edited by paul_goodson on 06 September, 2006)
The bluntest pencil is better than the sharpest memory!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul_goodson
Frequent Contributor
Username: Paul_goodson

Post Number: 545
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 06:54 pm:   Edit Post Delete Post Print Post

Hi Joe
I have downloaded the program (Edit plus)but cant get it to work in TK3 as a text editor

Did you use this in TK3 ?


Thanks
Paul
The bluntest pencil is better than the sharpest memory!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

John_becker
:::: Super User ::::
Username: John_becker

Post Number: 612
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 07:44 pm:   Edit Post Delete Post Print Post

Paul, I use TK3 with a link to DOS Edit which has no size restrictions that I've ever found. I find it ideal as it gives line counts etc, a good search & replace facility (which Notepad does not so far as I can discover). It is also totally free of formatting commands and does not present problems when assembling.

I'm surprised Notepad does not give you the option of using Wordpad instead if the file size is too great.

You can always give TK3 a link to Wordpad through the facility for changing Editors I've supplied, then using the Swap Editors click-link on the main screen.

J
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul_goodson
Frequent Contributor
Username: Paul_goodson

Post Number: 546
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 08:05 pm:   Edit Post Delete Post Print Post

Thanks John

I can use wordpad as an editor in Tk3 but when I try and assemble it
I get a message about
No ORG file found in the assemble file!!!!!!!

Paul
The bluntest pencil is better than the sharpest memory!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Magnum4
Frequent Contributor
Username: Magnum4

Post Number: 314
Registered: 04-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 08:22 pm:   Edit Post Delete Post Print Post

Thanks Phil,
PFE was my fav editor untill I lost it in a crash:-(
Will have to download it asap.Thanks.
Regards,
Jim
Top of pagePrevious messageNext messageBottom of page Link to this message

Mikehibbett
Frequent Contributor
Username: Mikehibbett

Post Number: 542
Registered: 04-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 06 September, 2006 - 09:54 pm:   Edit Post Delete Post Print Post

Paul,

Wordpad isn't really very good as a programmer's editor because it is really a simple word processor. More to the point, its default file format isn't ASCII, but RTF. Saving the file as RFT ( or indeed any format other than ASCII ) will guarantee that the file will not assemble.

My personal favorite is an old version of ultraedit, or crimson editor ( free, very good ).

Mike
-----
www.drivesentinel.co.uk - Home build GPS Speed Camera Detectors
Top of pagePrevious messageNext messageBottom of page Link to this message

Obiwan
Frequent Contributor
Username: Obiwan

Post Number: 693
Registered: 12-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 12:00 am:   Edit Post Delete Post Print Post

Now would be a good time to start wrestling with MPLAB.

Keep your main code in one file, and put all the LCD stuff into another and include it.

Easy, just look at some examples from MC, like the PICDEM board examples.

You can put all your timing loop stuff into one file and include that.

Grouping your code in groups like that can make it easy to troubleshoot.

If you have a timing loop problem, you know where to go, if you have trouble talking to the LCD, you know where to go.

It's easier because you're not opening a file and then hunting and hunting for that little bit of code in that huge file somewhere.

But to each his own....
Do Not Hit The Fly That Lands On The Tigers Head.
Top of pagePrevious messageNext messageBottom of page Link to this message

Zeitghost
Frequent Contributor
Username: Zeitghost

Post Number: 340
Registered: 01-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 08:54 am:   Edit Post Delete Post Print Post

How big was the file when Notepad died?

I've just created a file bigger than 1Mb & it was still going strong...
Top of pagePrevious messageNext messageBottom of page Link to this message

John_becker
:::: Super User ::::
Username: John_becker

Post Number: 615
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 09:38 am:   Edit Post Delete Post Print Post

Paul, TK3 always looks for at least one ORG statement so that it knows where to place the code in the PIC according to address. If it doesnt find one, it will object. But you should have found that the same ASM written in other editors will produce the same result. Perhaps you'd send me an ASM written in Wordpad & I'll try it on my TK3.

I'm also emailing this to you from my private email.

J
Top of pagePrevious messageNext messageBottom of page Link to this message

Atferrari
Frequent Contributor
Username: Atferrari

Post Number: 236
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 12:46 pm:   Edit Post Delete Post Print Post

Hola Paul,

I know it's not exactly to the point but please look at how I do it (from the very first times when I started with the 16C57, long time ago, yes...)

Splitting in include files helps to avoid getting lost in long programs (printing much less every time you change something) and organizing your work much better and quite easily.

Perhaps this will give you a different point of view and save you lot of pains.
application/octet-streamHow I do it
000 SKELETON 00.asm (3.1 k)


I always used MPLAB and Picstart Plus.

(Message edited by atferrari on 07 September, 2006)
Agustín Tomás - Buenos Aires - Argentina
Top of pagePrevious messageNext messageBottom of page Link to this message

Mikehibbett
Frequent Contributor
Username: Mikehibbett

Post Number: 543
Registered: 04-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 12:58 pm:   Edit Post Delete Post Print Post

> ;program ends here - Nice to meet you.

What very polite code you write, Agustin

:o)
-----
www.drivesentinel.co.uk - Home build GPS Speed Camera Detectors
Top of pagePrevious messageNext messageBottom of page Link to this message

Zeitghost
Frequent Contributor
Username: Zeitghost

Post Number: 342
Registered: 01-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 02:32 pm:   Edit Post Delete Post Print Post

Ah.

The dear dead days beyond recall when people weren't afraid of 10 page DO loops in FORTRAN IV...

And editors were line editors, though somewhat more sophisicated than "edlin"...

@1/5,P to list the file header.
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul_goodson
Frequent Contributor
Username: Paul_goodson

Post Number: 547
Registered: 05-2005


Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 07 September, 2006 - 07:31 pm:   Edit Post Delete Post Print Post

Hi All
Thanks for all the very good advice

Joe I did download EditPlus and Jim helped me to get it working within TK3 last night as I was having problems.
Probably just me as usual.


Anyway my first thoughts on Editpluss after using it briefly last night was EXCELLENT and can straight away see a lot more benefits to it than using Notepad or Wordpad.

Mike
I don’t think I will be using Wordpad now I have seen the light!
I will have a look for a download for ultraedit, or crimson (free sounds good too) and give it a go.
Thanks
Paul
The bluntest pencil is better than the sharpest memory!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Pwillard
Regular Contributor
Username: Pwillard

Post Number: 34
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, 12 September, 2006 - 04:29 am:   Edit Post Delete Post Print Post

Totally Free, progammers editor.

Context http://www.context.cx/
Top of pagePrevious messageNext messageBottom of page Link to this message

Obiwan
Frequent Contributor
Username: Obiwan

Post Number: 701
Registered: 12-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 13 September, 2006 - 02:03 am:   Edit Post Delete Post Print Post

Line editors! Ugh!

I knew a guy that was fixated on using VI in UNIX. He loved it.

I tried it, I really gave it a go, and I just couldn't stand it.

EDLIN actually had a place, for very simple batch files that you needed in a emergency. But I'd never try to use it to actually "edit" anything.

I had actually forgotten about both of those. I wish they had stayed that way.

Paul, I sent you a provate email about trying to split that file up so you can use the include feature.
Do Not Hit The Fly That Lands On The Tigers Head.
Top of pagePrevious messageNext messageBottom of page Link to this message

Zeitghost
Frequent Contributor
Username: Zeitghost

Post Number: 359
Registered: 01-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 13 September, 2006 - 08:30 am:   Edit Post Delete Post Print Post

I used EDLIN in a batch file to delete EOF records in an intel hex file so that two hex files could be concatenated automagically without me doing anything.

Useful for that.

And then there's SED...

Administration Administration Log Out Log Out   Previous Page Previous Page Next Page Next Page