Author |
Message |
Topic: Using the Encoder Quadrature - QEI - PIC18F2431 |
sd211
Replies: 6
Views: 16191
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2006 6:48 pm Subject: Using the Encoder Quadrature - QEI - PIC18F2431 |
Here is some code related to setting up QEI, I used it while ago. I could not find a function in CCS C to set it up, but this seemed to work:
In include file:
//Defines specific for 18F2431 whic ... |
Topic: Best way to prototype hardware with PIC |
sd211
Replies: 12
Views: 13009
|
Forum: General CCS C Discussion Posted: Sat Jun 24, 2006 6:33 pm Subject: Re: Best way to prototype hardware with PIC |
If using a breadboard to do hardware prototyping isnt feasible, what should I use? I'm hesitant go get a PCB made and then find out it doesnt work. What's the best way to do hardware prototyping ... |
Topic: 18F242 change from 3.278MHz to 20Mhz |
sd211
Replies: 5
Views: 9165
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2006 2:13 pm Subject: 18F242 change from 3.278MHz to 20Mhz |
Hi
I use 22pF caps. So that should be allright. I also use exactly the options Grouchy mentioned.
Yesterday I also tried to get a very simple program started.
Its just like:
output_high(PI ... |
Topic: 18F242 change from 3.278MHz to 20Mhz |
sd211
Replies: 5
Views: 9165
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2006 2:40 pm Subject: Re: 18F242 change from 3.278MHz to 20Mhz |
The problem is most likely with the oscillator, not I2C. What caps do you have for crystal? 20MHz usually will work well with 20-22pF caps. If you have "blink-a-led" program, does PIC restart?
Se ... |
Topic: 8x8 Multiply with 16-bit Result |
sd211
Replies: 3
Views: 47615
|
Forum: Code Library Posted: Sun Jan 01, 2006 7:46 pm Subject: Re: 8x8 Multiply with 16-bit Result |
Hi All,
The default when doing int8 * int8 with a hardware multiplier PIC is to keep only the LSB of the result (PRODL). This is C standard, I suppose, but not very useful.
If you want the full ... |
|