Author |
Message |
Topic: GSM Modem AT+CMGS Error |
Mamat
Replies: 4
Views: 14714
|
Forum: General CCS C Discussion Posted: Tue Oct 11, 2011 10:22 am Subject: gsm |
so what work code now? |
Topic: xbee |
Mamat
Replies: 5
Views: 5620
|
Forum: General CCS C Discussion Posted: Wed May 25, 2011 2:47 am Subject: xbee |
when i compile it cannot work |
Topic: xbee |
Mamat
Replies: 5
Views: 5620
|
Forum: General CCS C Discussion Posted: Wed May 25, 2011 2:19 am Subject: xbee |
This receive xbee code. Why when I want to receive char 'aa' cannot be successful (x == 'a') ?
#include <18f4620.h>
#fuses HS,NOLVP,NOWDT,NOPROTECT
#use delay(clock=20000000) ... |
Topic: LM35 temp sensor reading (10°C off) |
Mamat
Replies: 18
Views: 38594
|
Forum: General CCS C Discussion Posted: Wed Feb 16, 2011 10:11 am Subject: Re: LM35 temp sensor reading (10°C off) |
Hi:
I connected a LM35 temperature sensor to my PIC16F877A MCU to take temperature readings. The following is my code:
#include <16F877A.h>
#device *=16
#device ADC=10
#include < ... |
Topic: problem with A/D |
Mamat
Replies: 48
Views: 87687
|
Forum: General CCS C Discussion Posted: Thu Feb 10, 2011 10:21 pm Subject: http://www.ccsinfo.com/forum/posting.php?mode=reply&t=32 |
I'm sorry. I not mean function but how to write coding.
#include <16F877.H>
#device adc=8
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#use rs232 ... |
Topic: problem with A/D |
Mamat
Replies: 48
Views: 87687
|
Forum: General CCS C Discussion Posted: Thu Feb 10, 2011 9:07 am Subject: problem with A/D |
Thanks. How to make code that have initial value for port analog a0, then when port a0 change make led bright? Then if any other change same happen. I don't know what function I must use. |
Topic: problem with A/D |
Mamat
Replies: 48
Views: 87687
|
Forum: General CCS C Discussion Posted: Wed Feb 09, 2011 5:48 am Subject: problem with A/D |
Here's a demo program that shows how to display the A/D voltage
on the LCD, from 0 volts to 5.00 volts.
#include <16F877.H>
#device adc=10
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, ... |
Topic: problem with A/D |
Mamat
Replies: 48
Views: 87687
|
Forum: General CCS C Discussion Posted: Thu Jan 20, 2011 8:18 am Subject: problem with A/D |
This is the line that does the voltage scaling:
volts = (float)(adc_value * 5)/1023.0;
Mathematically it is:
Volts = ADCcounts * FullscaleVolts / FullscaleCounts
So if you want to change ... |
Topic: problem with A/D |
Mamat
Replies: 48
Views: 87687
|
Forum: General CCS C Discussion Posted: Thu Jan 20, 2011 2:39 am Subject: ccs code |
Here's a demo program that shows how to display the A/D voltage
on the LCD, from 0 volts to 5.00 volts.
#include <16F877.H>
#device adc=10
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, ... |
|