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 6 matches
CCS Forum Index
Author Message
  Topic: I can not get out from while function!!
Luis123migueL

Replies: 5
Views: 15286

PostForum: General CCS C Discussion   Posted: Tue Aug 13, 2019 6:06 pm   Subject: I can not get out from while function!!
hi Ttelmah

I took your idea and did this code (below). It works as i wanted. I simulated and did it on breadboard. I will appreciate if you check my code.

Thanks a lot!!


#include <16f6 ...
  Topic: I can not get out from while function!!
Luis123migueL

Replies: 5
Views: 15286

PostForum: General CCS C Discussion   Posted: Tue Jul 30, 2019 11:41 pm   Subject: I can not get out from while function!!
hi temtronic thanks for your answer!!

I consider the problem is more than a debouncing problem. I think the problem is in the __delays__ms(), I mean, at the beginning when the while(pin_B0) is tr ...
  Topic: I can not get out from while function!!
Luis123migueL

Replies: 5
Views: 15286

PostForum: General CCS C Discussion   Posted: Tue Jul 30, 2019 12:12 pm   Subject: I can not get out from while function!!
Hello everyone !!

First, i explain what my code should do:

At the beginning a LED(pin A0) should blink automatically time1 seconds high and time1 seconds low and when i press button (pin B0)
T ...
  Topic: blinking led - my code does not work
Luis123migueL

Replies: 9
Views: 19830

PostForum: General CCS C Discussion   Posted: Thu Jul 18, 2019 8:26 pm   Subject: blinking led - my code does not work
Hi dluu13

I proved <stdint.h> header in breadboard and it works well, thanks for your advice.


#include<16f628.h>
#include <stdint.h>//for signed and unsigned variables
#fus ...
  Topic: blinking led - my code does not work
Luis123migueL

Replies: 9
Views: 19830

PostForum: General CCS C Discussion   Posted: Thu Jul 18, 2019 6:53 pm   Subject: blinking led - my code does not work
Hi everyone!!

Thank for your help.

Hi MassaM

I use breadboard now. I wrote your code with own function and it works very well . Also thanks to temtronic i notice by default int is equals to ...
  Topic: blinking led - my code does not work
Luis123migueL

Replies: 9
Views: 19830

PostForum: General CCS C Discussion   Posted: Thu Jul 18, 2019 12:12 am   Subject: blinking led - my code does not work
Hello everyone!!

I started to learn programing with ccs compiler many days ago.

I want to blink 4 LEDs, but i have problems.

If you see the code below, it works perfectly. I simulated it usi ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group