Author |
Message |
Topic: Hi everyone |
drzxoulis
Replies: 1
Views: 7135
|
Forum: General CCS C Discussion Posted: Tue May 18, 2004 6:04 am Subject: Hi everyone |
I am trying to make an interface between the PC and a pic using the max232a chip
I wonder about my code.
i know what should the command for such a thing be but i would like some help for the printf ... |
Topic: HELP!!a little more!!! |
drzxoulis
Replies: 3
Views: 10334
|
Forum: General CCS C Discussion Posted: Sat Apr 17, 2004 7:29 am Subject: HELP!!a little more!!! |
As you said the whole loop doesn't really work.
what i want to achieve is just a way of presenting the limits on the lcd.
this means having for each limit something writen eg."low temp" and silmutan ... |
Topic: HELP!!a little more!!! |
drzxoulis
Replies: 3
Views: 10334
|
Forum: General CCS C Discussion Posted: Fri Apr 16, 2004 10:08 pm Subject: HELP!!a little more!!! |
Is any possible way i could really make the expression below look simpler without loosing its functionality.?????
if (temp>80)
printf(lcd_putc,"\fPRESSURE:%4.0f mB\nHIGH TEMP",pres);
e ... |
Topic: special character printing |
drzxoulis
Replies: 4
Views: 12044
|
Forum: General CCS C Discussion Posted: Thu Apr 15, 2004 7:22 pm Subject: special character printing |
Thanks once more for your help!!!!!!!!!
The help you get in the site is the best support you could always think of!!!
Thank you again!!! |
Topic: special character printing |
drzxoulis
Replies: 4
Views: 12044
|
Forum: General CCS C Discussion Posted: Thu Apr 15, 2004 2:02 pm Subject: special character printing |
Hi again,
Alittle more help needed.
I am trying to print the degree character after my temp value obtained by my a/d on my lcd.
I know that has to be done with lcd_send_byte("1,223") whhich repres ... |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Wed Apr 14, 2004 6:51 am Subject: 10 bit a/d |
The problem my friend has is posted with title:
how to pass 2 dimentional CONST array to a function?
from coder.
Thanks!! |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2004 9:34 pm Subject: Hi again and big thank you to anyone that helped!!!! |
Just to make some things clear.
First of all sorry to PCM programmer if I was mean I have seen his huge help in the forum.
Secondly I ran the progs both approches and they both work perfe ... |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2004 1:30 pm Subject: 10 bit a/d |
languer thanks for the remarks
First of all i left value like that because i am not going to use it after all.
Being new to the thing i don't see a problem printing with %ld. i get the exa ... |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2004 9:54 am Subject: 10 bit a/d |
If i am not mistaken is the same thing the only i do extra is also making sure to define the pic.but the ADC=10 is defined.Anyway you stillhave to use the ADRESL and ADRESH registers.this is the worki ... |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2004 7:10 am Subject: 10 bit a/d |
Even doing all the above I still get a maximum of 255 samples on the LCD screen. Regarding what is in page 117 of the manual about how the values obtained from the a/d are stored on the pics m ... |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2004 9:55 pm Subject: 10 bit a/d |
oopppsss...forgot to do it in the previews message...anyway thats the code
#include <16F876.h>
#define PIC16F876 ADC = 10
#FUSES XT,NOWDT,NOPROTECT,NOLVP,PUT,NOBROWNOUT
#use delay (cloc ... |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2004 9:42 pm Subject: 10 bit a/d |
i just checked it....it is not working ....this is the code...if you have any comments let me know...it is based on the EX_ADMM file...but it doesnt give the proper resolution i want....10 bits. |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2004 9:27 pm Subject: 10 bit a/d |
is that simple???I was looking around and they said something about ADRESH and ADRESL and got kind of worried........I will try and see.....thank you for now!!!! |
Topic: 10 bit a/d |
drzxoulis
Replies: 19
Views: 39185
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2004 9:17 pm Subject: 10 bit a/d |
Is there anyone around knowing how to read a 10 bit a/d input from my PIC16F876. I want to read an input voltage and need a resolution of 1024.I have looked around and it has to do with the 8 bit repr ... |
|