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 31 matches
CCS Forum Index
Author Message
  Topic: 18f4520 random restart
eng/ IBRAHIM

Replies: 16
Views: 32644

PostForum: General CCS C Discussion   Posted: Sun Apr 29, 2018 7:47 pm   Subject: 18f4520 random restart
thanks all

i deleted the
enable_interrupts(INT_TIMER0);
enable_interrupts(INT_TIMER1);

from interrupts and but that in RUN loop

void run(speed,rest)
{
enable ...
  Topic: 18f4520 random restart
eng/ IBRAHIM

Replies: 16
Views: 32644

PostForum: General CCS C Discussion   Posted: Sat Apr 28, 2018 9:04 am   Subject: 18f4520 random restart
CCS compiler version. 4.014


void run(speed,rest)
setting 'speed' ;'rest'
are initial value in main() . run(55,5)
  Topic: 18f4520 random restart
eng/ IBRAHIM

Replies: 16
Views: 32644

PostForum: General CCS C Discussion   Posted: Sat Apr 28, 2018 7:53 am   Subject: 18f4520 random restart
hmm...
first delay is this..
delay_ms(500);

you say 'rest' delay is really 10 seconds, so that's 20X longer

That could be the clock isn't really running properly.

I suggest you code/compil ...
  Topic: 18f4520 random restart
eng/ IBRAHIM

Replies: 16
Views: 32644

PostForum: General CCS C Discussion   Posted: Sat Apr 28, 2018 7:04 am   Subject: 18f4520 random restart

#define start PIN_E1
#define playled PIN_C6
#define standbyled PIN_D5
#define endled PIN_C7
#define right PIN_A3
#define left PIN_C2
#defin ...
  Topic: 18f4520 random restart
eng/ IBRAHIM

Replies: 16
Views: 32644

PostForum: General CCS C Discussion   Posted: Fri Apr 27, 2018 9:41 am   Subject: 18f4520 random restart
When the problem occurred after changing the pic on the same PCB and on the same motor
I took into account the differences between them and I changed Timer 2 to Timer 3. Change #int_rb to #int_E ...
  Topic: 18f4520 random restart
eng/ IBRAHIM

Replies: 16
Views: 32644

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2018 8:06 pm   Subject: 18f4520 random restart
Use pic16f887 to control of ac motor. The code is work fine
but when use pic 18f4520, find two problems:
1- the program is randomly restart (not rest)
2- the value of delay is different at practic ...
  Topic: 16f887 not work
eng/ IBRAHIM

Replies: 7
Views: 10986

PostForum: General CCS C Discussion   Posted: Mon Jul 13, 2015 5:12 pm   Subject: 16f887 not work
OK run good

now at start freq is zero or no signal output is zero. then freq is vary and output is reading the freq


but when freq return zero or no signal . output not zero and still at last v ...
  Topic: 16f887 not work
eng/ IBRAHIM

Replies: 7
Views: 10986

PostForum: General CCS C Discussion   Posted: Mon Jul 13, 2015 2:13 pm   Subject: 16f887 not work
when change some lines as below.
the output is reading frequency input correct.
but when freq is not in range 40Hz to 250Hz . the output is incorrect

what is error
input freq rang is 20 to 10 ...
  Topic: 16f887 not work
eng/ IBRAHIM

Replies: 7
Views: 10986

PostForum: General CCS C Discussion   Posted: Sun Jul 12, 2015 6:20 pm   Subject: 16f887 not work
the output still zero.at any frequency.
but when use 16f877 the output is reading input frequency

version 4.014

#include <16F887.h>

#device PIC16F887
#list
#device adc=8

#FUS ...
  Topic: 16f887 not work
eng/ IBRAHIM

Replies: 7
Views: 10986

PostForum: General CCS C Discussion   Posted: Sun Jul 12, 2015 2:37 pm   Subject: 16f887 not work
i use this program by 16f877 and it play good
but when change to 16f887 not work.


int32 isr_ccp_delta,current_ccp,current_ccp_delta,frequency;

#int_ccp1
void ccp1_isr(void)
{
...
  Topic: tacho of motor
eng/ IBRAHIM

Replies: 0
Views: 2395

PostForum: General CCS C Discussion   Posted: Sun Oct 18, 2009 9:03 am   Subject: tacho of motor
Hi all
Anyone knows why this code not works.
I use 16f877 to control of motor speed using feedback of tachometer signal.
#use delay(clock=4000000,restart_wdt)
#ROM 0x3ff = {0x3478 ...
  Topic: DIMMER
eng/ IBRAHIM

Replies: 4
Views: 8422

PostForum: General CCS C Discussion   Posted: Sat Oct 25, 2008 8:06 am   Subject: DIMMER
Hi
Thanks RLScott
I'm not lazy but I try to make dimmer by PIC to control in AC motor since long time.
I try you said and I change a lot of function but i not understand more functions because i us ...
  Topic: DIMMER
eng/ IBRAHIM

Replies: 4
Views: 8422

PostForum: General CCS C Discussion   Posted: Sat Oct 25, 2008 6:24 am   Subject: DIMMER
hi
pls
i want to mak a lamp dimmer by use 12c508 .i find this code in microchip site but it not written by CCS how can convert to CCS compiler



#pragma option v;
#include <12C508.h>
/* ...
  Topic: universal motor
eng/ IBRAHIM

Replies: 12
Views: 12320

PostForum: General CCS C Discussion   Posted: Wed Apr 02, 2008 1:05 am   Subject: universal motor
hi all
any one have answer or help?
  Topic: universal motor
eng/ IBRAHIM

Replies: 12
Views: 12320

PostForum: General CCS C Discussion   Posted: Mon Mar 31, 2008 2:45 am   Subject: universal motor
hi all

i find the program in microchip site make a dimmer but this program use PIC12c508 I try convert it to PIC16F877A but it not play
how can use this way by PIC16f877a to control in ac motor? ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group