Author |
Message |
Topic: I can not get out from while function!! |
Luis123migueL
Replies: 5
Views: 15931
|
Forum: 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: 15931
|
Forum: 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: 15931
|
Forum: 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: 20679
|
Forum: 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: 20679
|
Forum: 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: 20679
|
Forum: 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 ... |
|