Author |
Message |
Topic: 16f628a HPWM |
OzanGazi
Replies: 3
Views: 5622
|
Forum: General CCS C Discussion Posted: Tue Apr 20, 2010 7:15 am Subject: 16f628a HPWM |
Ok it works Thank you...
But still there is a problem..
while(true)
{
if(++MotorPower>1000)
{
MotorPower=0;
}
... |
Topic: 16f628a HPWM |
OzanGazi
Replies: 3
Views: 5622
|
Forum: General CCS C Discussion Posted: Tue Apr 20, 2010 5:43 am Subject: 16f628a HPWM |
Hi all,
I cannot get pwm signal on pin_b3. Is this code wrong ??
#include <16f628a.h>
#use delay (clock=4000000)
#fuses intrc_io,Brownout,NOWDT,PROTECT,NOLVP,put,cpd,nomclr
void ma ... |
Topic: interrupt priority changed by compiler? |
OzanGazi
Replies: 5
Views: 12303
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 8:52 am Subject: interrupt priority changed by compiler? |
Thank you Ttelmah everything is clear...Now i am using INT1 and no problem.. |
Topic: interrupt priority changed by compiler? |
OzanGazi
Replies: 5
Views: 12303
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2010 3:57 am Subject: interrupt priority changed by compiler? |
Yes I have the same problem..
device 18f8722.in my program i am using
#int_timer1
#int_timer3
#int_rda high
#int_rda2 high
#int_adc
#int_ext
There is no problem except #int_ext
War ... |
Topic: SQRT of an 32bit integer |
OzanGazi
Replies: 4
Views: 49768
|
Forum: Code Library Posted: Fri Jan 02, 2009 7:44 am Subject: SQRT of an 32bit integer |
i have just tested the code and its working for 30bit integer max.
Function returns 32767 while r > 30bit..
But why?? |
Topic: Integer Fast Math Library Using 8x8 Hardware Multiplier |
OzanGazi
Replies: 0
Views: 26829
|
Forum: Code Library Posted: Fri Jan 02, 2009 6:37 am Subject: Integer Fast Math Library Using 8x8 Hardware Multiplier |
Hi all!!
in the past i was composed a fast math library for realtime RMS measurement. Now i recomposed the Library for CCS forum users.
These are functions and calculation times on 40Mhz clock.. ... |
|