Author |
Message |
Topic: Servo tester |
thaking
Replies: 6
Views: 8968
|
Forum: General CCS C Discussion Posted: Fri Mar 11, 2011 2:11 pm Subject: Servo tester |
Heck , I'm impressed the original programmer comented almost every line of code! Must be an old guy like me ,self taught in assembler then onto the high level stuff!
The only way you'll understand ... |
Topic: Servo tester |
thaking
Replies: 6
Views: 8968
|
Forum: General CCS C Discussion Posted: Fri Mar 11, 2011 1:13 pm Subject: Servo tester |
Ok tnx for advice, can you please tell me how to make
menu's on LCD, like
1.Center Servo
2.Manual mode
3.Servo Fast
4.Variable speed
while I'm pressing button (#define button PIN_A3 )
... |
Topic: Servo tester |
thaking
Replies: 6
Views: 8968
|
Forum: General CCS C Discussion Posted: Fri Mar 11, 2011 12:16 pm Subject: Servo tester |
I started with:
#include <16F877A.h>
#device ADC=10
#fuses HS, NOWDT, NOPUT, NOLVP, NOPROTECT
#use delay(clock=10M)
#include "flex_lcd.c"
#define button PIN_A3
... |
Topic: Servo tester |
thaking
Replies: 6
Views: 8968
|
Forum: General CCS C Discussion Posted: Fri Mar 11, 2011 12:10 pm Subject: Servo tester |
Can anyone please help me with "translating" code from Basic into CCS
Device 16F877A
Config HS_OSC, WDT_OFF, PWRTE_OFF, LVP_OFF
ALL_DIGITAL TRUE
XTAL = 10
;LCD
Declare LCD_TYPE ALP ... |
Topic: Sensor's and PIC |
thaking
Replies: 12
Views: 11938
|
Forum: General CCS C Discussion Posted: Wed Jan 26, 2011 8:03 am Subject: Sensor's and PIC |
So uart=rs232; if this is same so there is TX and RX +voltage? |
Topic: Sensor's and PIC |
thaking
Replies: 12
Views: 11938
|
Forum: General CCS C Discussion Posted: Wed Jan 26, 2011 4:43 am Subject: Sensor's and PIC |
This rs232 means port rs232 on PC? Or just means protocol, which also use old PC's and micro controllers? |
Topic: Sensor's and PIC |
thaking
Replies: 12
Views: 11938
|
Forum: General CCS C Discussion Posted: Tue Jan 25, 2011 12:03 pm Subject: Sensor's and PIC |
Any ideas? |
Topic: Sensor's and PIC |
thaking
Replies: 12
Views: 11938
|
Forum: General CCS C Discussion Posted: Tue Jan 25, 2011 9:42 am Subject: Sensor's and PIC |
Well I was thinking in this way:
I have for example pic12f683, with one PIN left OPEN (A3)
For beginning I would like to measure from this pin voltage and current, measures were be done in some ... |
Topic: Sensor's and PIC |
thaking
Replies: 12
Views: 11938
|
Forum: General CCS C Discussion Posted: Tue Jan 25, 2011 5:08 am Subject: Sensor's and PIC |
How can I implement code with PIC for example 12f683 if I need to read "data" from 3-5 sensors(for beginning voltage and current, then GPS...), which are connected in parallel, on only " ... |
Topic: PIC PIC16F877 -> PIC12f683 |
thaking
Replies: 28
Views: 30153
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 1:50 pm Subject: PIC PIC16F877 -> PIC12f683 |
@PCM programmer
thank you, why you are not being here at beginning You can be able to solve my problem 3 days ago |
Topic: PIC PIC16F877 -> PIC12f683 |
thaking
Replies: 28
Views: 30153
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 10:40 am Subject: PIC PIC16F877 -> PIC12f683 |
From beginning I just need this, so no one know how to configure PIN in other way like normal, so the code will not prompt error's=? |
Topic: PIC PIC16F877 -> PIC12f683 |
thaking
Replies: 28
Views: 30153
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 2:58 am Subject: PIC PIC16F877 -> PIC12f683 |
Read my post about the two types of pin definition. You have got the pins defined using the CCS method now. What do I say you _must_ do if you want to access the pins this way. These definitions _will ... |
Topic: PIC PIC16F877 -> PIC12f683 |
thaking
Replies: 28
Views: 30153
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 1:56 am Subject: PIC PIC16F877 -> PIC12f683 |
So I still don't know where is problem now in my code:
#include <12F683.h>
#device adc=8
#FUSES NOWDT,INTRC_IO,NOCPD,NOPROTECT,NOMCLR,PUT,NOBROWNOUT,NOIESO,NOFCMEN
#use delay(clock=4M ... |
Topic: PIC PIC16F877 -> PIC12f683 |
thaking
Replies: 28
Views: 30153
|
Forum: General CCS C Discussion Posted: Sun Jan 23, 2011 3:25 pm Subject: PIC PIC16F877 -> PIC12f683 |
You gotta READ the datasheet !!
Quiz? How many PORTS does the PIC12F683 have ???
Quiz? What is it called?
Quiz? Where do YOU define that PORT in your 12f683 project?
Test! Create a simple ... |
Topic: PIC PIC16F877 -> PIC12f683 |
thaking
Replies: 28
Views: 30153
|
Forum: General CCS C Discussion Posted: Sun Jan 23, 2011 11:47 am Subject: PIC PIC16F877 -> PIC12f683 |
You aren't even trying to do this!!!
Do you have port a defined .... NO... That accounts for the "undefined error".
We are not going to do this for you with no effort from you...
... |
|