Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Does Debugger or Visual Micro use Timer0? (Read 4006 times)
JohnB
Junior Member
**
Offline


Posts: 14
Joined: Jun 1st, 2013
Does Debugger or Visual Micro use Timer0?
Jun 5th, 2013 at 6:45pm
Print Post  
I have an arduino sketch that disables Timer0 and uses Timer1 for timing functions.  The sketch does not complete Setup (where the timers are swapped) properly unless I do not enable Timer1 interrupts and leave Timer0 interrupts enabled.

Does Visual Micro or the debugger depend on Timer0 and/or Timer1?

John
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Does Debugger or Visual Micro use Timer0?
Reply #1 - Jun 5th, 2013 at 8:44pm
Print Post  
By default Visual Micro uses Hardware Serial which uses the timer.

You can switch over to softwareSerial if you have an FTDI cable or similar and 2 spare digital pins.

This article describes how to configure the project properties for SoftwareSerial

You do not need to include the SoftwareSerial lib in your sketch, Visual Micro will do that automatically.
« Last Edit: Jun 5th, 2013 at 8:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
JohnB
Junior Member
**
Offline


Posts: 14
Joined: Jun 1st, 2013
Re: Does Debugger or Visual Micro use Timer0?
Reply #2 - Jun 5th, 2013 at 9:12pm
Print Post  
Thank you.

I do have some FTDI serial devices available.  I will look at the link you provided and see if that will help.

John
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Does Debugger or Visual Micro use Timer0?
Reply #3 - Jun 5th, 2013 at 9:32pm
Print Post  
Hi John,

Other users report it works okay. If you don't need break/pause then you only need 1 digital pin (RX). 

Please keep in mind that SoftwareSerial uses interrupts for receive, I am not sure about send but that means you have to use pin(s) that support interrupts.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint