Author |
Message |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Mon Mar 28, 2011 4:11 pm Subject: INT RB0 or CCP in capture mode |
Every day i have another question:)
Today question is: How can I speed up the calculation of this expression:
delayus=time/360*delay[a];
where delayus is int16, time is int16, and delay ... |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Mon Mar 28, 2011 5:35 am Subject: INT RB0 or CCP in capture mode |
I solved my problem with the incorrect values. I had to use atol() instead of atoi(), because it is for 8bit numbers...
Thanks for the const array, but how can i store a lookup table during runtime ... |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Sun Mar 27, 2011 4:06 pm Subject: INT RB0 or CCP in capture mode |
I tried to transfer the lookup table from the PC to the pic. It is an int16 array
#include <stdlib.h>
#fuses NOMCLR,NOLVP,HS,NOWDT,NOPUT,NOBROWNOUT
#use delay(clock=16000000)
#use r ... |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Tue Mar 22, 2011 4:25 pm Subject: INT RB0 or CCP in capture mode |
Yes, you are right.
But I need 2 of the lookup tables, thats about 160bytes of data, too many for the data memory. The program memory has a lot of free space, and thats why i want to store there the ... |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Tue Mar 22, 2011 1:48 pm Subject: INT RB0 or CCP in capture mode |
The device is 16F628a. I want to transfer a lookup table for the pic. I need to store it in the program memory, because the data memory is out of space. The pic is connected with the hardware usart to ... |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Sun Mar 20, 2011 7:25 pm Subject: INT RB0 or CCP in capture mode |
Thank you PCMProgrammer!
I made it, and it works!
Now I have another problem. I want to send an int16 array on the uart from the PC to the pic, and I dont know how to transfer it.
Thanks! |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Mon Feb 21, 2011 3:54 pm Subject: INT RB0 or CCP in capture mode |
I want to make a cdi ignition, with programmable advance for my scooter...
Yes, I know that there are some on the internet yet, but I want to build my own, I also need it for graduate work in the sch ... |
Topic: INT RB0 or CCP in capture mode |
CheeseE
Replies: 13
Views: 25048
|
Forum: General CCS C Discussion Posted: Thu Feb 10, 2011 8:03 am Subject: INT RB0 or CCP in capture mode |
Hello Guys!
I'm working on a project, and I'm in trouble what to use.
I have to measure the incoming signal frequency (square wave), and depending on it, I have to add a calculated delay, and then ... |
|