Home  |  Contents 

Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Micromite MX270 v5.03.02 Post ReplyPost New Topic
Page of 3 Next >>
Author
Message << Prev Topic | Next Topic >>
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 17 February 2017 at 9:32am | IP Logged Quote kiiid

With Geoff's approval presenting MMBasic v5.03.02 running on 44-pin MX270 chip with USB. This version is very similar to the MX170 version, but supports direct USB communication and has three serial ports available in Basic, instead of two. I needed it as part of a specific project, but figured it might be useful to many more people as it saves the external USB bridge in small projects, hence the release.

2017-02-17_092839_Micromite-MX270D.X.production.zip

In addition to COM1 and COM2, COM4 is also available now like in MM+, and like it again it is shared with the console UART (although available on different pins), so in order to enable COM4 the console should be disabled with OPTION CONSOLE OFF. The USB console is always available, though.

The speed is also quite good - 1180 grains at 48MHz with active USB console.

In order to make USB functional a crystal is needed, 8MHz in this case. That plus the two pins taken by the USB itself required small reordering of the pinout but it is minimal. Here is the pinout for the 44-pin MX270D chip:

(Micromite MX270D) Pinout for 44-pin:
1 : 5V | DIGITAL | COUNT | I2C DATA
2 : 5V | DIGITAL | PWM 2B
3 : 5V | DIGITAL | INT4
4 : 5V | DIGITAL
5 : 5V | DIGITAL
6 : GND
7 : CAP
8 : USB D+
9 : USB D-
10: Vusb
11: DIGITAL | ANALOG | COM2-RX
12: 5V | DIGITAL | COM2-TX
13: 5V | DIGITAL
14: DIGITAL | ANALOG | SPI CLOCK
15: DIGITAL | ANALOG | PWM 2A
16: GND (AVss)
17: 3.3V (AVdd)
18: RESET
19: DIGITAL | ANALOG
20: DIGITAL | ANALOG | SPI OUT (MOSI)
21: DIGITAL | ANALOG | PWM 1A
22: DIGITAL | ANALOG | PWM 1B
23: DIGITAL | ANALOG | COM4-RX (shared with the console)
24: DIGITAL | ANALOG | COM4-TX (shared with the console)
25: DIGITAL | ANALOG
26: DIGITAL | ANALOG | PWM 1C
27: DIGITAL | ANALOG | COM1-TX
28: 3.3V
29: GND
30: OSC1 8MHz
31: OSC2 8MHz
32: 5V | DIGITAL | COM1-RX
33: CONSOLE Tx (DATA OUT)
34: CONSOLE Rx (DATA IN)
35: 5V | DIGITAL | INT3
36: DIGITAL | ANALOG | INT2
37: 5V | DIGITAL | INT1
38: 5V | DIGITAL | COM1: ENABLE
39: GND
40: 3.3V
41: 5V | DIGITAL | SPI IN (MISO)
42: 5V | Vbus
43: 5V | DIGITAL | COUNT | WAKEUP | IR
44: 5V | DIGITAL | COUNT | I2C CLOCK



__________________

http://ello.cc

--------------


Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 
sagt3k
Senior Member
Senior Member
Avatar

Joined: 01 February 2015
Location: Italy
Online Status: Offline
Posts: 273
Posted: 17 February 2017 at 8:07pm | IP Logged Quote sagt3k

Hey kiiid

.... very interesting. A small micromite with usb.
I'll try to test it right away.
Thanks
sagt3k
Back to Top View sagt3k's Profile Search for other posts by sagt3k Visit sagt3k's Homepage
 
MicroBlocks
Guru
Guru
Avatar

Joined: 12 May 2012
Location: Thailand
Online Status: Offline
Posts: 2192
Posted: 18 February 2017 at 4:23am | IP Logged Quote MicroBlocks

Any change of a version that runs on a 28 pin mx270?


__________________
Microblocks. Build with logic.
Back to Top View MicroBlocks's Profile Search for other posts by MicroBlocks
 
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 18 February 2017 at 8:36am | IP Logged Quote kiiid

Possibly yes, soon.

If anyone is trying the current 44-pin version, and come across bugs, please let me know.

Edited by kiiid on 18 February 2017 at 8:38am


__________________

http://ello.cc

--------------
Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 18 February 2017 at 9:51am | IP Logged Quote kiiid

Update to fix a small bug in the handling of pins 19 and 20.

2017-02-18_094936_Micromite-MX270D.X.production.hex.zip





__________________

http://ello.cc

--------------
Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 19 February 2017 at 1:02pm | IP Logged Quote kiiid

In case anyone is interested in the MX270 version, releasing here the gerbers for probably the simplest development board for it. I have no plans to manufacture and sell any of these but they can be easily assembled by hand at home.

All components are 1206 or similar size for easy manual assembly. PCB size is 77x37.5mm.

2017-02-19_130143_MX2.zip




__________________

http://ello.cc

--------------
Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 
jwaldha
Newbie
Newbie


Joined: 14 January 2016
Location: Hungary
Online Status: Offline
Posts: 10
Posted: 20 February 2017 at 11:19am | IP Logged Quote jwaldha

One more vote for 28 pin mx270 !

__________________
---
JWaldha
Back to Top View jwaldha's Profile Search for other posts by jwaldha
 
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 20 February 2017 at 11:44am | IP Logged Quote kiiid

jwaldha wrote:
One more vote for 28 pin mx270 !


I am not planning any work on that at the moment since there is no need for it in my development process, but hopefully Geoff may decide to release a 28-pin version based on the sources of the 44-pin version. Sure there will be room for its application.



__________________

http://ello.cc

--------------
Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 
jwaldha
Newbie
Newbie


Joined: 14 January 2016
Location: Hungary
Online Status: Offline
Posts: 10
Posted: 20 February 2017 at 11:59am | IP Logged Quote jwaldha

kiiid wrote:
jwaldha wrote:
One more vote for 28 pin mx270 !


I am not planning any work on that at the moment since there is no need for it in my development process, but hopefully Geoff may decide to release a 28-pin version based on the sources of the 44-pin version. Sure there will be room for its application.



If I was able to access the source code, maybe I could do the modification.

__________________
---
JWaldha
Back to Top View jwaldha's Profile Search for other posts by jwaldha
 
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 20 February 2017 at 12:08pm | IP Logged Quote kiiid

jwaldha wrote:
kiiid wrote:
jwaldha wrote:
One more vote for 28 pin mx270 !


I am not planning any work on that at the moment since there is no need for it in my development process, but hopefully Geoff may decide to release a 28-pin version based on the sources of the 44-pin version. Sure there will be room for its application.



If I was able to access the source code, maybe I could do the modification.


You will need to discuss that with Geoff. I am ok if he provides the sources for the 44-pin version to you.


Edited by kiiid on 20 February 2017 at 12:09pm


__________________

http://ello.cc

--------------
Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 
jwaldha
Newbie
Newbie


Joined: 14 January 2016
Location: Hungary
Online Status: Offline
Posts: 10
Posted: 04 April 2017 at 8:35am | IP Logged Quote jwaldha

Here is the hex file for 28 pin version (PIC32MX270F256B).
(With Geoff's approval)

2017-04-04_081919_MX270B.X.production.zip

For testing I used a CHIPKIT DP32 board. (Ofcourse I replaced the MX250 chip to the MX270.)
If you have a hw related question, please refer to the documentation of this board.
ChipkitDP32

The original documentation is valid in the following exceptions:
The following pins they have lost the original functions:

9, 10  Connect here the 8MHz crystal (and two neccessary capacitors based on the datasheet of the crystal)
23     Connect this pin to the 3V3 (eg. pin13)
15     Connect this pin the 5V comes from USB connector
21     Connect this pin to the D+ signal on the USB connector
22     Connect this pin to the D- signal on the USB connector

According the MM+ documentation, the serial console can turn off/on:
Quote:
Serial Console
This is the traditional method of communicating with a Micromite and it is turned on by default when the
Micromite firmware is programmed into the chip.
The default baud rate is 38400 and the performance of the editor and the speed of displaying text can be
improved considerably by selecting a higher baud rate (see the OPTION BAUDRATE command in the
"Micromite Manual").
If the serial console is not required it can be disabled. This allows the two I/O pins previously used by the
console to be used as general I/O pins or as a fourth serial port (COM4:). The command to disable the serial
console is:
OPTION CONSOLE OFF
If you want to re-enable the serial console you can do so with the command OPTION CONSOLE ON.



The current pinmap:
1 - RESET
2 - DIGITAL | ANALOG
3 - SPI OUT | DIGITAL | ANALOG
4 - PWM 1A | DIGITAL | ANALOG
5 - PWM 1B | DIGITAL | ANALOG
6 - PWM 1C | DIGITAL | ANALOG
7 - DIGITAL | ANALOG
8 - GROUND
9 - 8MHz crystal wasted: COM2:TRANSMIT | DIGITAL
10 - 8MHz crystal wasted: COM2: RECEIVE | DIGITAL
11 - CONSOLE Tx (DATA OUT) | COM4 Tx | DIGITAL
12 - CONSOLE Rx (DATA IN) | COM4 Rx | DIGITAL
13 - POWER (+2.3 to +3.6V)
14 - SPI IN | 5V | DIGITAL
15 - VBUS wasted: DIGITAL | 5V | COUNT
16 - DIGITAL | 5V | COUNT | WAKEUP | IR
17 - DIGITAL | 5V | COUNT | I2C CLOCK
18 - DIGITAL | 5V | COUNT | I2C DATA
19 - GROUND
20 - 47uF TANT CAPACITOR (+)
21 - USB D+ wasted: DIGITAL | 5V | COM1: TRANSMIT
22 - USB D- wasted: DIGITAL | 5V | COM1: RECEIVE
23 - VUSB3V3 wasted: ANALOG | DIGITAL
24 - ANALOG | DIGITAL | PWM 2B
25 - ANALOG | DIGITAL | SPI CLOCK
26 - ANALOG | DIGITAL | PWM 2A
27 - ANALOG GROUND
28 - ANALOG POWER (+2.3 to +3.6V)


Edited by jwaldha on 04 April 2017 at 8:40am


__________________
---
JWaldha
Back to Top View jwaldha's Profile Search for other posts by jwaldha
 
kiiid
Guru
Guru
Avatar

Joined: 11 May 2013
Location: United Kingdom
Online Status: Offline
Posts: 667
Posted: 04 April 2017 at 7:35pm | IP Logged Quote kiiid

This is great! I hope a 28-pin USB version might be useful to some people. I believe this is based on the 44-pin version released by me earlier, which means nice working power saving modes for battery operated devices.

Only one suggestion - COM2 is software UART, so it is probably worth moving it over to another pair of pins to increase the overall functionality. I would suggest pins 6 and 7 (sacrificing PWM1C when COM2 is used)


Edited by kiiid on 04 April 2017 at 7:36pm


__________________

http://ello.cc

--------------
Back to Top View kiiid's Profile Search for other posts by kiiid Visit kiiid's Homepage
 


Page of 3 Next >>
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.1250 seconds.
Privacy Policy     Process times : 0.02, 0, 0, 0.11