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 7 matches
CCS Forum Index
Author Message
  Topic: Settings of timer1 interrupt
isoment01

Replies: 0
Views: 5711

PostForum: General CCS C Discussion   Posted: Fri Jun 30, 2017 6:42 am   Subject: Settings of timer1 interrupt
Hello everyone again. I have a problem with Timer1 interrupts in my code. I want to generate pulses that drive my stepper motor. My motor is gonna work 8 sec (3200 pulses) and stop 4 sec continuously ...
  Topic: getchar sending char. randomly
isoment01

Replies: 4
Views: 10387

PostForum: General CCS C Discussion   Posted: Thu Jun 29, 2017 4:34 am   Subject: getchar sending char. randomly
No.

You have a hardware problem.
The software is also faulty, but the hardware has to be fixed first.

What smoothing do you have on the PIC itself?.
How is your supply generated?.
How are the ...
  Topic: getchar sending char. randomly
isoment01

Replies: 4
Views: 10387

PostForum: General CCS C Discussion   Posted: Thu Jun 29, 2017 3:52 am   Subject: getchar sending char. randomly
Getchar is receiving two characters.

You wait 100mSec after you have seen kbhit, before you call getchar.
In that time another character has sometimes arrived.
Remember (for instance), that the e ...
  Topic: getchar sending char. randomly
isoment01

Replies: 4
Views: 10387

PostForum: General CCS C Discussion   Posted: Thu Jun 29, 2017 2:04 am   Subject: getchar sending char. randomly
hello everyone. I have problem with getchar. After loading my codes when the program comes getchar line, getchar sending chars two times. Getchar doesn't do waiting for input char. at that moment, see ...
  Topic: Stepper motor control with using timer1 and rda interrupts
isoment01

Replies: 5
Views: 11515

PostForum: General CCS C Discussion   Posted: Wed Jun 21, 2017 7:15 am   Subject: Re: Stepper motor control with using timer1 and rda interrup
I don't know how to call Timer1 interrupt when the program is in rda interrupt.

Simple answer, You don't.

Spend as little time as possible in the interrupts (i.e. set flags etc then get out). ...
  Topic: Stepper motor control with using timer1 and rda interrupts
isoment01

Replies: 5
Views: 11515

PostForum: General CCS C Discussion   Posted: Wed Jun 21, 2017 7:13 am   Subject: Stepper motor control with using timer1 and rda interrupts
The location of your interrupt directives is wrong:

#int_rda
#int_timer1
#priority rda, timer1
void serihaberlesme_kesmesi ()
{
klavye=getchar();
.
.
.
}

void timer1_interrupts()
...
  Topic: Stepper motor control with using timer1 and rda interrupts
isoment01

Replies: 5
Views: 11515

PostForum: General CCS C Discussion   Posted: Wed Jun 21, 2017 4:49 am   Subject: Stepper motor control with using timer1 and rda interrupts
Hello everyone, this is my first topic here. Let me introduce what will i try to do. I want to control stepper motor by using serial comm. interface rs232. Firstly I set a Timer1 interrupt to produce ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group