Author |
Message |
Topic: Velocity problem |
simoes
Replies: 7
Views: 9004
|
Forum: General CCS C Discussion Posted: Fri Jun 19, 2009 10:53 am Subject: Velocity problem |
Ttelmah you are right.
In fact, i tried a version of your code and it work nice.
Now the problem is that i have interrupts of rs-232, i2c and possible of a timer.
I hope that this microcontroller c ... |
Topic: Velocity problem |
simoes
Replies: 7
Views: 9004
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2009 2:54 pm Subject: Velocity problem |
Yes, i had think in that.
I suppose that is the only way. . . or change the encoder for one with less ticks.
With the counter it's possible to lose some ticks. |
Topic: Velocity problem |
simoes
Replies: 7
Views: 9004
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2009 2:13 pm Subject: Velocity problem |
You are right. The last micro thas i use are a dsPic. . . A little diferent.
Now, with a 8MIPS system, if i want to execute 400.000 interruptions per second, i have (8M/400.000)=20 instructions fre ... |
Topic: Velocity problem |
simoes
Replies: 7
Views: 9004
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2009 1:41 pm Subject: Velocity problem |
Hi.
I wrote some days ago this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=39199
I had have some problems in setting the maximum velocity of my microcontroller (PIC18F2620).
Now, I k ... |
Topic: PIC18F2620 Oscillator configuration |
simoes
Replies: 6
Views: 11779
|
Forum: General CCS C Discussion Posted: Wed Jun 10, 2009 2:39 pm Subject: PIC18F2620 Oscillator configuration |
Got it.
I thought that the fuses are not enough.
I thought that the records OSCCON, OSCTUNE and CONFIG1H were written with the instruction setup_oscillator (...).
Doubt resolved!
Ps: sorry my ... |
Topic: PIC18F2620 Oscillator configuration |
simoes
Replies: 6
Views: 11779
|
Forum: General CCS C Discussion Posted: Wed Jun 10, 2009 2:15 pm Subject: PIC18F2620 Oscillator configuration |
Ok I have a wave of 8Mhz in the output.
Yes, I can conclude that I am working to 32MHz.
Thanks for the help.
I think my problem was the choice of "OSC_INTRC" or "OSC_NORMAL" ... |
Topic: PIC18F2620 Oscillator configuration |
simoes
Replies: 6
Views: 11779
|
Forum: General CCS C Discussion Posted: Wed Jun 10, 2009 12:44 pm Subject: PIC18F2620 Oscillator configuration |
Ok, you are right.
Tried the program that you recommend and only added "# fuses NOMCLR".
The truth is that the output waveform has the correct frequency.
Can I assume that is working ... |
|