Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:25 25 Nov 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 : How fast is a DruinoMite ?

Author Message
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 10:21pm 26 Mar 2012
Copy link to clipboard 
Print this post

Hello

One of the considerations I took into account when programming in assembly langauge and PIC's was the clock freq.

This was important for baud rates and wait cycles and loops etc

What is the specs for the DuinoMite ?

If you set a pin high, pause, set a pin low and cycle, how "fast" can the Duinomite work ?

What is its max baud rate and minimum pin transition ?

I need to know this so I can see of the DuinoMite cuts the mustard for some projects at high speed.

- Andrew -


Andrew Rich VK4TEC
www.tech-software.net
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 11:38pm 26 Mar 2012
Copy link to clipboard 
Print this post

Hi Andrew,

The DM is based on ver 2.7 of the MM so speed would be the same between the 2 types.

As to Max Baud Rate, Comm1 and Comm2 on both the MM and DM are `bit banged' and as such has a limit of 19200 baud (from memory, I stand corrected here if I am wrong)
The DM also has 2 other comm ports (3 & 4) that use internal UARTs on the PIC32 chip and is part of the reason that the DM was created, to use some of the internal PIC32 devices for their intended use.

These Comm ports can got to at least 115200 baud (maybe more but I need to check first).

However it has recently been found that the latest version of firmware had these pins configured incorrectly (early versions worked so its not hardware) and, hopefully, will be fixed in the next release...

The correct forum for DM specific advice is located here.

DM Support Forum

Regards,

Mick

Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3800
Posted: 07:06am 27 Mar 2012
Copy link to clipboard 
Print this post

MM/DMBasic is an interpreter and there's a separate thread about its speed on here. It's hundreds of times slower than C (or ASM) except when it has a specific feature coded in. E.g. it uses DMA to output the video.

It's worth pulling down any of the source versions and reading them to get a feeling for how it hangs together.

You can of course program the DM in C (or ASM) directly, i.e. overwrite Basic, if you want real speed. You can always restore it but unless you have a PICkit3 or the like be careful not to overwrite the bootloader. (You might want to check any hex files don't have anything in the address range used by it.)

It's an 80MHz chip with pipelines etc so actual speed depends what the code does (jumps of any kind slow it down) but in the region of 20MIPS (from C).

Do read the chip data sheet - big job, granted - as many I/O things can be done without bit banging. Far more silicon than PIC16 / PIC18.

JohnEdited by JohnS 2012-03-28
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 04:06pm 27 Mar 2012
Copy link to clipboard 
Print this post

  JohnS said  ... unless you have a PICkit3 ...


It works also with Pickit2 without the need to modify anything. Use this:
http://code.google.com/p/pic32prog/ Edited by vasi 2012-03-29
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3800
Posted: 07:40pm 27 Mar 2012
Copy link to clipboard 
Print this post

Excellent.

(I don't have a 2 but do have a 3. lol)

John
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 07:46pm 27 Mar 2012
Copy link to clipboard 
Print this post

  JohnS said  ...
Do read the chip data sheet - big job, granted - as many I/O things can be done without bit banging. Far more silicon than PIC16 / PIC18.

John


What you used before?
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3800
Posted: 11:02am 28 Mar 2012
Copy link to clipboard 
Print this post

A crazy number of chips!!

John
 
Print this page


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

© JAQ Software 2024