Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 03:22 02 May 2024 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 : Micromite and Micromite Plus Beta 32

     Page 1 of 3    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 05:19pm 26 Sep 2015
Copy link to clipboard 
Print this post

I have a new beta version (B32) for the Micromite and Micromite Plus and it can be downloaded from the usual place: http://geoffg.net/Downloads/Micromite/Micromite_4.7_Beta.zip (clear your browser cache first).

The big feature in this version is that it supports the 100-pin chip . The User Manual (included in the download) has been updated to list the pinouts for the 100-pin chip (page 12).

This module is useful if you are experimenting with the 100-pin Micromite Plus: http://www.microcontroller-board.com/snadpic-board-32/14-snadpic-pic32mx470f512l-development-board.html#/crystal_oscilla tor-20mhz/crystal_rtcc-no_without_crystal_r

This is the company's standard PIC32 experimental board modified to suit the Micromite Plus firmware (it has a 20MHz crystal and does not include a RTC crystal). If you are purchasing this board make sure that you specify these two details and the words "For Micromite" in the comments field.

On this module the SD Card Chip Select (CS) signal is on pin 14 and the Card Detect (CD) signal is on pin 18. So, to enable the SD Card on this module the command is: OPTION SDCARD 14, 18

Note that on the 100-pin Micromite Plus pin 18 is used for driving a SSD1963 based LCD panel and will conflict with its allocation as Card Detect. In this case the zero ohm resistor J3 on the underside of the SnadPIC board must be removed so that SD Card Detect is no longer on pin 18. Another pin may be selected via the CD pin on the top of the board.

Geoff

Geoff Graham - http://geoffg.net
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 12:34am 27 Sep 2015
Copy link to clipboard 
Print this post

Hi,

tried it with the modified snadpic rev 1.02 (it has a 20MHz crystal and does not include a RTC crystal).
I use an External Power Supply, Power Switch to EX.PWR.
USB shows a new com Port (3).
But with terraterm no Output.....

What do i wrong ?

What PINs on the snadpic are used for serial console?
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 12:56am 27 Sep 2015
Copy link to clipboard 
Print this post

Serial console on pin 87/89 works fine.
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 01:07am 27 Sep 2015
Copy link to clipboard 
Print this post

BUG ???



> option list

CPU exception #7 (bus error on load or store) at address 0x9D02E2D8
Processor restarted
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 02:27am 27 Sep 2015
Copy link to clipboard 
Print this post

@Geoff,

From MM Advanced Features (Page 14):

  Quote  To seek to a record within the file you would use the SEEK command which will position the read/write pointer to a specific byte. The first byte in a file is numbered one so, for example, the fifth record in a file that uses 64 byte records would start at byte 257. In that case you would use the following to point to it:
SEEK #1, 257


Should this not be 231? I am currently reading about SD file access (not in a position to try it just yet) and am either missing something, or, this is a 'typo'?

Please can someone confirm . . .

WW

EDIT

GOT It now! my mistake (can't add up at the moment!! Edited by WhiteWizzard 2015-09-28
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 04:16am 27 Sep 2015
Copy link to clipboard 
Print this post

  atmega8 said  I use an External Power Supply, Power Switch to EX.PWR.
USB shows a new com Port (3).
But with terraterm no Output.

I just tested it on a SnapPIC and the USB console works fine. It must be something in your configuration of Tera Term.

  atmega8 said  > option list
CPU exception #7 (bus error on load or store) at address 0x9D02E2D8
Processor restarted

Thanks and I do apologise. It is impossible to test all variations of commands like this and there always seems to be a bug hiding where I did not look. This only occurs on a MM+ when there is no LCD panel configured.

I will fix it in the next beta.

Geoff
Geoff Graham - http://geoffg.net
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 09:28am 27 Sep 2015
Copy link to clipboard 
Print this post

Hello,

what is the default baudrate for USB console?

Device manager shows a Microsoft Driver, is this as expected?

I use WIN 10!Edited by atmega8 2015-09-28
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 11:55am 27 Sep 2015
Copy link to clipboard 
Print this post

The MM+ ignores the baud rate so you can set it to whatever you want.

I have not tested the USB on Win 10, that is next.
Geoff Graham - http://geoffg.net
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1803
Posted: 02:10pm 27 Sep 2015
Copy link to clipboard 
Print this post

I've had an enforced holiday in hospital, so just catching up. In the latest (b32) advanced manual there are no pin numbers listed for the Displays to connect to the 100 pin chip.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 02:17pm 27 Sep 2015
Copy link to clipboard 
Print this post

Best wishes to you, Paul. I hope it was not a long stay in hospital, and hope you have a speedy recovery.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5907
Posted: 05:17pm 27 Sep 2015
Copy link to clipboard 
Print this post

  palcal said   In the latest (b32) advanced manual there are no pin numbers listed for the Displays to connect to the 100 pin chip.
Paul.

In the micromite manual page 12, the 100 pin pins are labeled with the display pin descriptions so it should be relatively easy to work it out.

I will try and fill out the table sometime today....

Jim
VK7JH
MMedit   MMBasic Help
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1803
Posted: 05:22pm 27 Sep 2015
Copy link to clipboard 
Print this post

Thanks Grogs, 4 days but they can make a mess in that time with a scalpel. It's been 2 weeks and I'm still very sore.
BTW I wasn't reporting an error in the Manual, I have a SnadPic board up and running and want to connect a display, I need the pinout.
Paul.


"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 07:30pm 27 Sep 2015
Copy link to clipboard 
Print this post

  palcal said  In the latest (b32) advanced manual there are no pin numbers listed for the Displays to connect to the 100 pin chip.

Sorry, I missed that. I have updated the manual in the download (http://geoffg.net/Downloads/Micromite/Micromite_4.7_Beta.zip - clear your browser cache first).

Geoff
Geoff Graham - http://geoffg.net
 
Greg Fordyce
Senior Member

Joined: 16/09/2011
Location: United Kingdom
Posts: 153
Posted: 04:20am 28 Sep 2015
Copy link to clipboard 
Print this post

Another update required to the Advanced Features manual. Find and replace this sentence
'#ref' is the control's reference (a number from 1 to 50).
with
'#ref' is the control's reference (a number from 1 to 100).
to reflect the increase in controls from 50 to 100 in beta 29.

I was going to ask if this could be increased as I need 51 controls!
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 04:55am 28 Sep 2015
Copy link to clipboard 
Print this post

Thanks (that sentence is used a lot).
Geoff Graham - http://geoffg.net
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 05:33am 28 Sep 2015
Copy link to clipboard 
Print this post

MM Advanced Features manual (Page 31):

MM.ERRNO refers to .... For the MaxiMite (colour and monochrome).....

(can I suggest a word search for MaxiMite)

WW
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 06:25am 28 Sep 2015
Copy link to clipboard 
Print this post

  WhiteWizzard said   MM Advanced Features manual (Page 31): MM.ERRNO refers to .... For the MaxiMite (colour and monochrome).....

Thanks.

On another subject addressed to everyone. I have to report that fixing the USB and Windows 10 issue will take much longer than I anticipated. There appears to be two issues - the first is that Win10 is not enumerating the USB correctly on the initial connection. I believe that I have fixed that but the second issue (the Win10 driver hanging after the initial connection) is much harder, mostly because is proving difficult to identify the culprit.

The current MM+ beta works fine with Windows 7, so that points the finger at Win10. But the Maximite (which runs essentially the same USB code) works fine on both Win7 and Win10, so that implies that there is a subtle difference between the MX795 and MX470 chips. If you ask Microchip about this they say use the code from Harmony (Aaaggghhh). To make it worse the problem seems to be a timing issue as sometimes it almost works and other times it does not.

So, for the moment the MM+ USB and Win10 are incompatible.

Geoff
Geoff Graham - http://geoffg.net
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 07:18am 28 Sep 2015
Copy link to clipboard 
Print this post

@Geoff,

Please could you consider adding a 'default' backlight parameter to the OPTION LCDPANEL SSD1963.... command (ideally in-between the 'default-font' and the 'optional backlight pin)?

This should work in the same way that the 'default-font' works, i.e. on a reset or power-up, the backlight is set to the default value. Any other time, it can be changed by the existing BACKLIGHT command.

Thanks for your consideration,

WW




For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 08:30am 28 Sep 2015
Copy link to clipboard 
Print this post

MM Advanced Features manual (Page 13):

  Quote  CLOSE #nbr [,#nbr] ...
Close the file(s) previously opened with the file number ‘nbr’.


To keep consistency, each occurrence of '#nbr' should be replaced with #fnbr

ALSO, in the same section:

Currently there are three 'SD-file' commands incorporating #fnbr, and also having one other parameter (as follows):
LINE INPUT #fnbr, variable$
SEEK #fnbr, pos
INPUT$(nbr, #fnbr)

Can I suggest that #fnbr always comes first and hence the last command becomes INPUT$(#fnbr, nbr).

I'm not sure if the above follow any 'standard' forms of BASIC, but keeping things 'simple' can only be a benefit to a user (and it saves repeatedly looking at a manual to work out which sequence parameters need to come in for 'similar' commands)

Just a suggestion . . . .

WW
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 09:45am 28 Sep 2015
Copy link to clipboard 
Print this post

@Geoff

Strange restarting issue (bug?)

My usual set-up (SSD1963, PS2, standalone system) with latest Beta

OPTION ERROR CONTINUE
OPEN "test.dat" FOR RANDOM AS #5
if MM.ERRNO = 1 then print "No SD Card"
if MM.ERRNO = 2 then print "Write Protected"
SEEK #5,1
A$=INPUT$(100,#5)
? A$


With SD card in then I see data within the 'test.dat' file.
With SD out, then correct message: 'No SD Card'
If I then switch WP on (on the SD card), then system resets
Subsequent running with WP on results in the expected message: 'Write Protected'

Seems like this may be a bug . . .

WW

Now I can't get this 'error'??? Working correctly 100% of the time without a single reset . .

Please can anyone else try this to see if you get any strange resets? Thanks

Edited by WhiteWizzard 2015-09-29
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
     Page 1 of 3    
Print this page
© JAQ Software 2024