CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 15 matches
CCS Forum Index
Author Message
  Topic: wrong uart reading in 18F4431
andredurao

Replies: 6
Views: 5456

PostForum: General CCS C Discussion   Posted: Mon Apr 14, 2008 7:58 am   Subject: Re: wrong uart reading in 18F4431
strange... I tried to simulatte 18f4431 and my version of proteus didn't have the simulator model for that device,....wich version are you using?
  Topic: dspic33f speech recognition
andredurao

Replies: 1
Views: 3314

PostForum: General CCS C Discussion   Posted: Mon Mar 10, 2008 6:36 am   Subject: dspic33f speech recognition
I don't know much about speech recognition too
but Microchip have a free library to use with dspics.

If you want to build your own you will need a neural network
using function like hidden markov ...
  Topic: I want to insert the degree symbol into the GLCD 128X64
andredurao

Replies: 3
Views: 5109

PostForum: General CCS C Discussion   Posted: Sat Mar 01, 2008 5:56 am   Subject: I want to insert the degree symbol into the GLCD 128X64
You'll have to draw it..
increase one line in const BYTE TEXT2
with the followin values....

0b00000000,
0b00011100,
0b00100010,
0b00100010,
0b00011100

and print this char (#127, or you may ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Thu Feb 28, 2008 7:32 am   Subject: trying one more time
Hi once again I'm here asking for help =)

now I've changed my code accord "Chipedit.exe" tool

and configured QEICON again,

the code it's working at the same way BUT I've noticed one ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Fri Feb 22, 2008 7:05 am   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
Well, I changed no NOLVP and back to program normally
and to fuses PUT
well at first sight nothing seemed to changed

but I noticed that qeicnt variable starts to increase
but not all the times ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Thu Feb 21, 2008 7:46 pm   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
thanks again kenny
well, about HS and XT it's already in HS you may see in the header, that I didn't change...

about LVP I've used that because in datasheet it asks to use low voltage programming ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Thu Feb 21, 2008 8:40 am   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
I guess I starting to understand what is happening

have one optical encoder 200 pulses per revolution Even when I turn encoder in the just one direction CW or CCW
the direction change interruptio ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Thu Feb 21, 2008 5:43 am   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
Hi Kenny, thanks for the reply
I tought that the problem could be the printf too
so I've added a "\f" at the begin of the string
but not changed

I've tried your code(below) but it kee ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Wed Feb 20, 2008 5:30 am   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
Thanks Kenny for the reply, but doesn't CAP2BUF and POSCNT are both in the same addresses?
what differs is that

"CAP2BUF is enabled as POSCNT when QEI mode is active."
is that right?
...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2008 6:35 pm   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
Any rags, any bones, any bottles today? Laughing Laughing
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Mon Feb 18, 2008 6:55 pm   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
once again now I'm sending the code that worked I had no troubles with interrupts thanks for the help....

But now something different is happening..

I've got the interrupts working, but the inte ...
  Topic: pic18f4431 QEI mismatch Direction of Rotation Status Bit
andredurao

Replies: 16
Views: 21601

PostForum: General CCS C Discussion   Posted: Thu Feb 14, 2008 6:30 pm   Subject: pic18f4431 QEI mismatch Direction of Rotation Status Bit
Hi!
Does anybody know if the delay_ms function call
in lcd.c may disable an interrupt to be called?

I've read this in another topic but I couldn't find the topic anymore..
It explains about ext ...
  Topic: on-change interrupt and rotatory encoder
andredurao

Replies: 6
Views: 6881

PostForum: General CCS C Discussion   Posted: Thu Aug 31, 2006 7:32 pm   Subject: on-change interrupt and rotatory encoder
I'm using a 512 pulse per revolution encoder, exactly like you said
I'll consider using the 7474 so I can divide the train pulse and do less
interrupts, I guess that is your suggestion.

About the ...
  Topic: on-change interrupt and rotatory encoder
andredurao

Replies: 6
Views: 6881

PostForum: General CCS C Discussion   Posted: Thu Aug 31, 2006 2:42 pm   Subject: on-change interrupt and rotatory encoder
thanks Ttelmah, I've read your replies in other topics in this subject.
I didn't realize that the "quadrature" term is related with this realy =) =)
thanks for that!
So I'll try to coun ...
  Topic: on-change interrupt and rotatory encoder
andredurao

Replies: 6
Views: 6881

PostForum: General CCS C Discussion   Posted: Thu Aug 31, 2006 7:15 am   Subject: on-change interrupt and rotatory encoder
I have this code running in a pic18f452, the interrupt code seems to be ok
when i turn the encoder CW the value increases and CCW it decreases, but
the problem is that when I turn 1 round it counts ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group