Pages: [1]   Go Down
Author Topic: Simple Dumping Monitor Library version 0.14. Now Arduino Leonardo is supported  (Read 1632 times)
0 Members and 1 Guest are viewing this topic.
Saint Petersburg, Russia
Offline Offline
Full Member
***
Karma: 2
Posts: 105
Amateur
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Since version 0.14 Simple Dumping Monitor for Arduino library supports Arduino Leonardo-compatible both ATmega16U4 and ATmega32U4 microcontrollers based boards.

The Simple Dumping Monitor for Arduino library allows you to get dumps of either Flash, RAM and EEPROM memories, dump of registers, interrupt vectors table and dumps of timers.
Please read more either how to get dumps or how to debug your sketches at SourceForge.

English documentation for the library is available at SourceForge wiki.

Also you can download latest version of the library from SourceForge.

Support the Arduino libraries development, tweet the library and like its SourceForge page.

Have a nice dump! =)
--------------------------------------
Proudly developed by

Vanyamba Electronics, 2012.
Logged

Saint Petersburg, Russia
Offline Offline
Full Member
***
Karma: 2
Posts: 105
Amateur
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hidden feature of Arduino Leonardo is Timer-Counter 2!
You can get PWM at both Digital 2 and Digital 8 pins.
This is the sketch:
Code:
#include <dumpmon.h> // This sketch uses VEduino Library.

#define LED1                DEV_TIMER2_OCA         // Set up your own values here: PORT, PIN
#define LED2                DEV_TIMER2_OCB         // Set up your own values here: PORT, PIN

uint8_t potValue;

void setup() {
  dumpmonSetup(19200);
  DEV_TIMER2.setClockSelect(Prescaler2::Prescaler_64);
  DEV_TIMER2.setWaveGenMode(Timer2::FastPWM);
  DEV_TIMER2.setCompOutModeA(Timer2::Clear);
  DEV_TIMER2.setCompOutModeB(Timer2::Clear);
  setModeOutput(LED1);
  setModeOutput(LED2);
}

void loop() {
  dumpmonLoop();
  potValue = analogRead(A0) >> 2;
  DEV_TIMER2.setOutputCompareA(potValue);
  DEV_TIMER2.setOutputCompareB(potValue);
}
« Last Edit: December 14, 2012, 05:42:29 pm by Vanyamba » Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 53
Posts: 1990
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, trying your examples with 115k2 but getting garbage.. Any hint where else to set the proper baudrate?
Logged

Saint Petersburg, Russia
Offline Offline
Full Member
***
Karma: 2
Posts: 105
Amateur
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, trying your examples with 115k2 but getting garbage.. Any hint where else to set the proper baudrate?

Thank you for this BUG.  smiley
I fixed it at version 0.19
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 53
Posts: 1990
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice  smiley
Are these PortB infos correct?
Code:
<17> text watch
0158  count  0009  "2E2E"
015A  lcoun  00000009  "2E2E2E2E"
0140  text   "Example"
0025  PORTB  00  "2E"
N
>
<18> counters watch
0158  count  000A  "2E2E"
015A  lcoun  0000000A  "2E2E2E2E"
0140  text   "Example"
0025  PORTB  20  "20"
N
>
<19> text watch
0158  count  000A  "2E2E"
015A  lcoun  0000000A  "2E2E2E2E"
0140  text   "Debug"
0025  PORTB  20  "20"

PS: I would add a bin representation for the PORTx as well ie:
0025  PORTB  20  " " 00100000
« Last Edit: December 18, 2012, 12:15:08 pm by pito » Logged

Saint Petersburg, Russia
Offline Offline
Full Member
***
Karma: 2
Posts: 105
Amateur
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are these PortB infos correct?
PS: I would add a bin representation for the PORTx as well ie:
0025  PORTB  20  " " 00100000

Fixed and added to version 0.20.
« Last Edit: December 20, 2012, 02:51:25 pm by Vanyamba » Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 53
Posts: 1990
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any support for atmega1284p planned?
Logged

Saint Petersburg, Russia
Offline Offline
Full Member
***
Karma: 2
Posts: 105
Amateur
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any support for atmega1284p planned?
Why not? Ok, let's add ATmega1284p.  smiley
Logged

Saint Petersburg, Russia
Offline Offline
Full Member
***
Karma: 2
Posts: 105
Amateur
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any support for atmega1284p planned?
Added Sanguino and Daiduino boards support since version 0.21.
Logged

Pages: [1]   Go Up
Jump to: