Author |
Message |
Topic: How does this ADC works? |
Lobobranco
Replies: 6
Views: 7229
|
Forum: General CCS C Discussion Posted: Mon Aug 29, 2011 1:19 pm Subject: How does this ADC works? |
Thank you for all guys =) |
Topic: How does this ADC works? |
Lobobranco
Replies: 6
Views: 7229
|
Forum: General CCS C Discussion Posted: Fri Aug 26, 2011 11:10 am Subject: How does this ADC works? |
Thank you guys!
Only one more question.
What if the result is a float value?
For example : 3.3V/5*255=168,3? Will this be rounded? |
Topic: How does this ADC works? |
Lobobranco
Replies: 6
Views: 7229
|
Forum: General CCS C Discussion Posted: Thu Aug 25, 2011 10:23 am Subject: How does this ADC works? |
Hello guys,
I've a question about this program that I found here.
#include <16F877A.h>
#device adc=8
#fuses XT,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
#use delay(clock=4000000)
//== ... |
Topic: Problems about gets function and PWM variable via RS232 |
Lobobranco
Replies: 9
Views: 10449
|
Forum: General CCS C Discussion Posted: Tue Jul 27, 2010 9:33 pm Subject: Problems about gets function and PWM variable via RS232 |
Ttelmah, I did a mistake, I meant \r instead \n, I did \r and did not work.
PCM Programmer, thanks for this information, I did not know that =)
But now, my program is working, if I send the string f ... |
Topic: Problems about gets function and PWM variable via RS232 |
Lobobranco
Replies: 9
Views: 10449
|
Forum: General CCS C Discussion Posted: Tue Jul 27, 2010 2:46 pm Subject: Problems about gets function and PWM variable via RS232 |
I understood.
But I must create a program (that is a part of my project) to send these strings, that is why I wanna know how to send the CR after the strings.
I tried to send, for example, 1000 0x0D ... |
Topic: Problems about gets function and PWM variable via RS232 |
Lobobranco
Replies: 9
Views: 10449
|
Forum: General CCS C Discussion Posted: Mon Jul 26, 2010 7:54 pm Subject: Problems about gets function and PWM variable via RS232 |
I am not using any terminal, i using a program that i downloaded. I can send my strings(values 0 ->1024) throught it.
I found that if i type Alt 013 before the value and send, this works =)
But, ... |
Topic: Problems about gets function and PWM variable via RS232 |
Lobobranco
Replies: 9
Views: 10449
|
Forum: General CCS C Discussion Posted: Mon Jul 26, 2010 3:22 pm Subject: Problems about gets function and PWM variable via RS232 |
Every value that i send to PIC is sent to me normally, but doubled, like if i send 500 it's sent to me like 500 500 and the PWM works just the first time.
And does not matter the value that i send, ... |
Topic: Like this |
Lobobranco
Replies: 1
Views: 2708
|
Forum: General CCS C Discussion Posted: Mon Jul 26, 2010 3:21 pm Subject: Like this |
Oh sorry, i does not meant to create a new topic, i tried to reply one that i already created lol
sorry for my mistake |
Topic: Like this |
Lobobranco
Replies: 1
Views: 2708
|
Forum: General CCS C Discussion Posted: Mon Jul 26, 2010 3:20 pm Subject: Like this |
Every value that i send to PIC is sent to me normaly,but doubled, like if i send 500 it's sent to me like 500 500 and the PWM works just the first time.
And does not matter the value that i send, the ... |
Topic: Problems about gets function and PWM variable via RS232 |
Lobobranco
Replies: 9
Views: 10449
|
Forum: General CCS C Discussion Posted: Mon Jul 26, 2010 11:03 am Subject: Problems about gets function and PWM variable via RS232 |
Hello
I have got some problems about the gets function, but after some researches i found that after sending a string i must send the Carriage Return to confirm.
I using a program that i downloaded ... |
|