Author |
Message |
Topic: Timers to keep lights on |
A_L_E_X
Replies: 3
Views: 4004
|
Forum: General CCS C Discussion Posted: Fri May 17, 2013 7:31 am Subject: Timers to keep lights on |
The maximum time is 12 seconds. Do you know any example similar to my case ? |
Topic: Timers to keep lights on |
A_L_E_X
Replies: 3
Views: 4004
|
Forum: General CCS C Discussion Posted: Fri May 17, 2013 5:47 am Subject: Timers to keep lights on |
I have a system with two light bulbs and two buttons. When a button is pressed the corresponding light bulb should be on. But after the button is released the light must stay on for a specific time. I ... |
Topic: Control a BLDC motor with PIC16F877A |
A_L_E_X
Replies: 7
Views: 20544
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2012 8:41 am Subject: Control a BLDC motor with PIC16F877A |
Have a look at Microchip AN857, which shows how to have a 877A, handle a BLDC motor, including reading a pot to set the speed.
I did that but the code is in ASM and i don't know ASM. Is there a vers ... |
Topic: Control a BLDC motor with PIC16F877A |
A_L_E_X
Replies: 7
Views: 20544
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2012 7:50 am Subject: Control a BLDC motor with PIC16F877A |
I want to control a BDLC motor using a PIC16F877A. The min rpm is 1500 and the max is 45000. I want to modify the speed from a potentiometer and to display the rpm using a lcd. The speed displayed on ... |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Thu Jul 01, 2010 12:20 pm Subject: Exiting from a do while loop |
All pins are used. In fact i've already made the board and I don't want to do it again. I'm looking for a simpler solution like making the modification in the software. |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Tue Jun 29, 2010 12:27 pm Subject: Exiting from a do while loop |
So there is there any other solution ? I must use those pins. |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Mon Jun 28, 2010 5:56 pm Subject: Exiting from a do while loop |
Looks like the code
if(kbhit())
{
break;
}
works only in Proteus. In real hardware it doesn't work and I don't know why.
Also I've looked at my code and looks like I ... |
Topic: Why wont pin toggle??? |
arloedx
Replies: 1
Views: 2999
|
Forum: General CCS C Discussion Posted: Fri Jun 04, 2010 10:18 am Subject: Why wont pin toggle??? |
I am trying to make PIN_A4 of a PIC18F252 toggle from low to high but it will not work. I try the same code on PIN_A3 and it works perfectly. What am I doing wrong???
#include <18f252.h>
... |
Topic: Keeping data in order |
arloedx
Replies: 1
Views: 3491
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 11:04 am Subject: Keeping data in order |
Question: Whether I am communicating in RS232, RS485, or I2C between a master and a slave both of which have a buffer to store data, how can I ensure that the data from buffer[0] of the slave ends up ... |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Tue May 25, 2010 2:50 pm Subject: Exiting from a do while loop |
How can i remap the IO ports ? Do you have a link or a document ? |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Sun May 23, 2010 9:31 am Subject: Exiting from a do while loop |
It worked with this code :
if(kbhit())
{
break;
}
But then it exits from the loop only if I press a button 3 or more times. Can I do something else ? It is good this wa ... |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Sun May 23, 2010 9:08 am Subject: Exiting from a do while loop |
If i don't use USART port, can i still use that code ? i can't use the usart ports because other peripherals are conected to those ports. |
Topic: Exiting from a do while loop |
A_L_E_X
Replies: 12
Views: 19673
|
Forum: General CCS C Discussion Posted: Sun May 23, 2010 4:51 am Subject: Exiting from a do while loop |
I have a pic16f648A connected to RS232. The system reads a pressure and sends data to an LCD and to RS232 in a do while loop. When i press a button (may be any button but it would be better to be a sp ... |
Topic: how to tell if done receiving chars |
arloedx
Replies: 9
Views: 8789
|
Forum: General CCS C Discussion Posted: Thu Apr 08, 2010 9:18 am Subject: how to tell if done receiving chars |
Ok. Thanks.
-Alex |
Topic: how to tell if done receiving chars |
arloedx
Replies: 9
Views: 8789
|
Forum: General CCS C Discussion Posted: Thu Apr 08, 2010 8:50 am Subject: how to tell if done receiving chars |
Hi Ben,
Thanks for the quick reply. In my app, data is being processed by an external A/D Converter then saved on the PIC. That part is easy enough. I then need to send the data from one PIC t ... |
|