Author |
Message |
Topic: Pic 16f877 writing program |
bigfish
Replies: 3
Views: 4589
|
Forum: General CCS C Discussion Posted: Tue Feb 08, 2011 9:15 pm Subject: Pic 16f877 writing program |
Hi & thanks temtronic, I just have a large main function,which operates with more than 10 if blocks. So, according to this quotation, would you suggest me to write separate functions for condition ... |
Topic: Pic 16f877 writing program |
bigfish
Replies: 3
Views: 4589
|
Forum: General CCS C Discussion Posted: Tue Feb 08, 2011 7:57 pm Subject: Pic 16f877 writing program |
Hi all,
I'm using pic16f877A. When I try to write my program in it gives error:
"Out of ROM, A segment or the program is too large MAIN"
I was able to write in it unt ... |
Topic: using switch |
bigfish
Replies: 7
Views: 8649
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2011 9:54 pm Subject: using switch |
Thanks, I used interrupt. |
Topic: pic16f877 ANx pins |
bigfish
Replies: 1
Views: 3157
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2011 6:59 am Subject: pic16f877 ANx pins |
Hi all,
I'm using pic16f877A. Currently I'm using pins B1,B2,B3,B4,D4,D5,D6,D7. I need 4 more pins for digital output. Which pins to use for this purpose? Can I use AN4-7? If yes, how?
Thanks i ... |
Topic: stepper motor |
bigfish
Replies: 3
Views: 5830
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 4:13 pm Subject: stepper motor |
I think you got me wrong. I said pic didn't get hot or the regulator. So I asked that is it risky to use like that, although my stepper motor is small? |
Topic: stepper motor |
bigfish
Replies: 3
Views: 5830
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 12:29 pm Subject: stepper motor |
I know maybe this is not the right place to ask this question, but everyone who use ccs c knows pic, so I hope I can find an answer.
I have a little stepper. I have a power circuit with L298. For + ... |
Topic: using switch |
bigfish
Replies: 7
Views: 8649
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 7:20 am Subject: using switch |
I tried as your advice, I connected "C" to input pin, NC to +5v of PIC, NO to ground of PIC with a resistance. Now its working, regulator is not getting hot. Thank you very much.... |
Topic: using switch |
bigfish
Replies: 7
Views: 8649
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 6:52 am Subject: using switch |
Hi gpsmikey, thanks for your reply, too.
I think you are right about that open-close-open-close-open-close action due to debouncing. Pic16f877 does not get hot, only regulator gets hot, and very rapi ... |
Topic: using switch |
bigfish
Replies: 7
Views: 8649
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 6:45 am Subject: using switch |
Hi vinniewryan, thanks for the reply.
I will try your code. By the way, I don't know what is On-mom or off-mom.
Throughout the motion, this "pushing" action will occur only one time, so in ... |
Topic: using switch |
bigfish
Replies: 7
Views: 8649
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 6:05 pm Subject: using switch |
Hi all,
I have a small switch as above (not actually it but similar).http://i00.i.aliimg.com/photo/v0/227929338/Hinge_lever_limit_switch_safety_switch_AML10.jpg
Now I want to try external interr ... |
Topic: rs232 sends 3 characters only |
bigfish
Replies: 3
Views: 4959
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2011 8:22 am Subject: rs232 sends 3 characters only |
Hi, thanks for the reply.
Where can I find its options? Also can't we just empty the buffer after I gather the second character, using built in function? |
Topic: rs232 sends 3 characters only |
bigfish
Replies: 3
Views: 4959
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2011 7:35 am Subject: rs232 sends 3 characters only |
Since I couldnt manage sending strings and converting them to numerical value,I decided to start it from the rough.
I used siow in csc s.I have pic16f877.
Following is the pic code :
#include < ... |
Topic: Sending integer to pic |
bigfish
Replies: 11
Views: 18609
|
Forum: General CCS C Discussion Posted: Sun Jan 09, 2011 12:08 pm Subject: Sending integer to pic |
You said, single characters are received correctly. If so, the RS232 interface should be O.K.
ASCII coded integer numbers, as send by Hyperterminal or the port monitor tool are multi character str ... |
Topic: Sending integer to pic |
bigfish
Replies: 11
Views: 18609
|
Forum: General CCS C Discussion Posted: Sun Jan 09, 2011 11:54 am Subject: Sending integer to pic |
It'd help if you showed us your PIC code.
My first guess is that you do not have the 'errors' option in the use RS232 function.
Second, sounds like you need to use a 'ring buffer' to cature the dat ... |
Topic: Sending integer to pic |
bigfish
Replies: 11
Views: 18609
|
Forum: General CCS C Discussion Posted: Sun Jan 09, 2011 5:01 am Subject: Sending integer to pic |
I tried sending multiple characters , "456" , and using integer value of every single character I tried to sum for the incoming number,which is 456.But there was an instability.Sometimes I ... |
|