Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:16 17 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM Edit update V3.5.17

Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6271
Posted: 09:40pm 08 Jun 2015
Copy link to clipboard 
Print this post

This update includes the link to TeraTerm.
The full download includes an updated help file and an updated Scintilla DLL.
There is no pressing need to download the full version if you updated to 3.5.17 from the ZIP attached to the previous message.

I hope I have made the Uploading with TeraTerm a bit clearer:

  Quote  Using MMEdit with TeraTerm:

TeraTerm is a much better VT100 terminal than the one built in to MMEdit and is recommended for extended use.

TeraTerm can also do macros and this feature allows you to easily upload programs using XMODEM.

Every time you do a save, MMEdit save two extra copies of your program. One is a true copy of your program and will always be named "LASTFILE.BAS"
The second one is a copy that has been crunched – all comments and blank lines removed to save space. This file is always named "LASTFILE.BAZ"

The files are always saved to the same location which will be similar to "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas"

You may have the location hidden but it doesn't matter. The location will be correctly written to a TeraTerm macro file in the next step.

To create two macro files for uploading the programs, normal and crunched, run File/Make TeraTerm Macros.
You should place the two macros into the TeraTerm program folder. If TeraTerm is installed under Program Files, Windows will not like you placing the file there. In this case, place the files in any convenient location and then use Windows Explorer to copy the to the TeraTerm folder.
If you are likely to play with more TeraTerm macros, it would be a good idea to install TeraTerm into another folder, NOT under Program Files.

Once created, the macros will not be changed by MMEdit so it is save to amend them.
A typical macro for uploading is:

send #3
pause 2
sendln "XMODEM RECEIVE"
pause 3
xmodemsend "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas" 1

The macro sends a CTRL-C
Waits 2 seconds
Sends the command to start XMODEM
Waits 3 seconds
Sends the program

Another useful macro is one for setting the MicroMite's clock.

send #3
pause 1
gettime now
getdate today "%d/%m/%Y"
sendln "time$ = " #34 now #34
sendln "date$ = " #34 today #34

This macro sends CTRL-C
Waits 1 second
Gets the time and date from the PC time
Sends the commands to set time and date.

You could add this macro contents to the start of the upload macros.

To always set the clock on loading, change the upload macro to

send #3
pause 1
gettime now
getdate today "%d/%m/%Y"
sendln "time$ = " #34 now #34
sendln "date$ = " #34 today #34
pause 1
sendln "XMODEM RECEIVE"
pause 3
xmodemsend "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas" 1


The macros will need modifying if you want to use them with a Maximite.

To run the macro from TeraTerm use Control/Macro and select the appropriate macro file.


The new version is available from my website.

Jim
VK7JH
MMedit
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2934
Posted: 10:15pm 08 Jun 2015
Copy link to clipboard 
Print this post

Thanks for this Jim, brilliant stuff (yet something else useful meaning my to-do list never gets any shorter these days!) Edited by WhiteWizzard 2015-06-10
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 06:08am 09 Jun 2015
Copy link to clipboard 
Print this post

Thanks Jim, works brilliantly slick, easy, and fast, spot on.

Thank you

Peter
The only Konstant is Change
 
Lou

Senior Member

Joined: 01/02/2014
Location: United States
Posts: 229
Posted: 03:01pm 09 Jun 2015
Copy link to clipboard 
Print this post

Dito Peter.

Thanks Jim, this breathes new life into the '170 Mite chip with large programs.
Perfect Job.

Lou
Microcontrollers - the other white meat
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025