View Single Post
  #2   Spotlight this post!  
Unread 13-02-2005, 20:26
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Timer 0/Serial Communications?

Quote:
Originally Posted by steven114
I'm trying to appropriate TMR0 on the PIC for my own use, but when I do so the RC starts scrambling all my printf() calls.
Code:
T0CONbits.T08BIT = 1;
causes this:

to look like this:


is the only printf() called.

I've isolated it to that single instruction - if I remove that line, everything works great, except I can't use the timer. I seem to remember a sheet saying exactly what the code itself uses (in terms of processor resources) but I don't remember any of the timers being listed there and I can't find it again (after extensively searching the IFI site - does anyone else find it difficult to find stuff on it?)

Any ideas/pointers to where that information is? Thanks!
Timer 0 is used for internal processes. Try using timer 2 or 4, they are both easy to use.