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.
cosmic frog Guru Joined: 09/02/2012 Location: United KingdomPosts: 302
Posted: 12:09am 22 Apr 2016
Copy link to clipboard
Print this post
Hello all, is there a way to change the serial console baud rate on the Micromite?
It defaults at 38400 but the manual says on page 31 it has a range of 100 to 230400bps
How can I change this.
The reason I want to change it is I want to send files from my Micromite to my Maximite
But the Maximite will not communicate at the default baud rate (38400)
I want to move the files using xmodem send and xmodem receive.
Thanks Dave.
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10216
Posted: 12:17am 22 Apr 2016
Copy link to clipboard
Print this post
5.1 manual page 62
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 767
Posted: 12:18am 22 Apr 2016
Copy link to clipboard
Print this post
OPTION BAUDRATE nbr
Set the baud rate for the console to 'nbr'. This change is made immediately
and will be remembered even when the power is cycled. The baud rate
should be limited to the speeds listed in Appendix A for COM1.
Using this command it is possible to set the console to an unworkable baud
rate and in this case MMBasic should be reset as described in the section
"Resetting MMBasic". This will reset the baud rate to the default of 38400.
Baud Rate
On the 28 and 44-pin Micromites COM1: is implemented using the onboard UART in the PIC32 while COM2: is
implemented in software and therefore cannot run as fast. The maximum speed for both COM ports is limited by
the CPU's speed as listed below (the CPU speed can be changed with the CPU SPEED command):
Micromite User Manual Page 81
CPU Speed COM1: Maximum COM2: Maximum
48 MHz 282000 19200
40 MHz (default) 230400 19200
30 MHz 115200 9600
20 MHz 115200 9600
10 MHz 57600 4800
5 MHz 38400 2400
Note that below these limits any baud rate can be chosen, for example 1111 bps is a valid speed for both ports.
Examples
Opening a serial port using all the defaults:
OPEN "COM2:" AS #2
Opening a serial port specifying only the baud rate (4800 bits per second):
OPEN "COM2:4800" AS #1
Opening a serial port specifying the baud rate (9600 bits per second) and receive buffer size (1KB):
OPEN "COM1:9600, 1024" AS #8
The same as above but with two stop bits enabled:
OPEN "COM1:9600, 1024, S2" AS #8
An example specifying everything including an interrupt, an interrupt level, inverted and two stop bits:
OPEN "COM1:19200, 1024, ComIntLabel, 256, INV, S2" AS #5
From the manual...
cosmic frog Guru Joined: 09/02/2012 Location: United KingdomPosts: 302
Posted: 12:27am 22 Apr 2016
Copy link to clipboard
Print this post
Option Baudrate -oh yes, sorry, don't know how I missed it.
Thanks for the fast response.
I'll get back to my tinkerings .
Thanks. Dave.
cosmic frog Guru Joined: 09/02/2012 Location: United KingdomPosts: 302
Posted: 02:54am 22 Apr 2016
Copy link to clipboard
Print this post
Well I've got it half to work. The Maximite talks to Geoffs VT100 ascii terminal and the terminal will talk back, but as soon as I connect a Micromite 170 the terminal will talk to the Maximite but the Maximite will not talk to the terminal. If I try a xmodem send/receive it says "remote did not respond".
My serial cable is very short about 5inch long.
The last time I used this setup was to transfer a file from my win xp machine to the Micromite 170 using a usb to ttl thing and it all worked ok, but I really want to use my Maximite to do this.
Looks like its back to Windows .
Thanks. Dave.
cosmic frog Guru Joined: 09/02/2012 Location: United KingdomPosts: 302
Posted: 06:43am 22 Apr 2016
Copy link to clipboard
Print this post
Found out you cannot use Geoffs VT100 ascii monitor at the same time as the Maximite is connected to try to send/receive a file as the VT100 interferes with the serial.
So I've gone back to Windows XP and Teraterm but seem to have completely fogotten how to send a file using that!
I send the file to the Micromite170 and save it but when I list it there is only part of the listing (about 3 incomplete lines).
I'm sure it wasn't has hard as this last time I tried.
Dave.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9590
Posted: 07:14am 22 Apr 2016
Copy link to clipboard
Print this post
Yeah, that is about the only downside to the VT100 terminal.
Get your MM talking to TT, then type XMODEM R on the MM, then goto FILE/TRANSFER/XMODEM/SEND.
Find your BAS file, and click it, and it will zap across to the MM.
I use that method all the time, and it has never failed me.Smoke makes things work. When the smoke gets out, it stops!
cosmic frog Guru Joined: 09/02/2012 Location: United KingdomPosts: 302
Posted: 07:30am 22 Apr 2016
Copy link to clipboard
Print this post
Thanks, I'll give that a try.
cosmic frog Guru Joined: 09/02/2012 Location: United KingdomPosts: 302
Posted: 09:56am 22 Apr 2016
Copy link to clipboard
Print this post
Thanks Grogster, that worked great.
Dave.
redrok Senior Member Joined: 15/09/2014 Location: United StatesPosts: 209
Posted: 01:23pm 22 Apr 2016
Copy link to clipboard
Print this post
Hi cosmic;As Grogster said, TeraTerm transfers are the best.
Let me show you how to use TeraTerm in a "MORE POWERFUL WAY".
1. Save the current TeraTerm parameters using:
Setup then
Save Setup and save the them in the .ini file,
I suggest putting it in your default uMITE directory.
2. Using a Text Editor, (I use "EditPlus"), to change
your new .ini file. Find "; Filter for send file".
Edit this line so it has the name of your uMITE
program in it. This way you don't have to search for
your uMITE program every time you send it to load it.
3. Now the fast part. Using single character entries type:
xmodem r c/r
Ctr(C)
Alt(F)
Alt(T)
Alt(X)
Alt(S)
Alt(O)
when loaded, type F2
Your new program is now loaded and running.
When I'm working on a new program I may load hundreds of times.
Learning this key sequence is very useful as I can do a load in
only a few seconds.
There are some other things you can do in the .ini file
such as change the default directory.
I have many .ini files in my director, at least one for each
program I write.
As Jim Baccus for Western Airlines says:
"It's the Only way to fly"
redrok
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 12:23am 15 Jul 2016
Copy link to clipboard
Print this post
Will the Option Baudrate 4800 work on the Micromite using 5.2
I want to change the console speed to 4800 to allow a very low power uhf transmit/receive module to be used to program the micromite remotely (if it's ever needed
Will the Micromite allow programming at this "slow" speed?