Author |
Message |
Topic: When I turn On |
feitanx
Replies: 14
Views: 13628
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 8:29 am Subject: When I turn On |
I read some pdf but I dont know what will happen in detail if a reset will occur. |
Topic: When I turn On |
feitanx
Replies: 14
Views: 13628
|
Forum: General CCS C Discussion Posted: Mon Jun 14, 2010 8:26 pm Subject: When I turn On |
When you say reset, what do you mean?
Is it the program in the memory will be erased?
The problem still persist. When I it turn on after I turn it off for a while , the pic doesnt run and erroneou ... |
Topic: When I turn On |
feitanx
Replies: 14
Views: 13628
|
Forum: General CCS C Discussion Posted: Mon Jun 14, 2010 6:13 am Subject: When I turn On |
I use a 4 mhz crystal oscillator(ECS-40-20-1)
what does brownout and powerup do?
why is there a restart_wdt in the delay?
What do you mean in the rail? what is your point? |
Topic: When I turn On |
feitanx
Replies: 14
Views: 13628
|
Forum: General CCS C Discussion Posted: Sun Jun 13, 2010 9:02 pm Subject: When I turn On |
The problem is when I turn on the PIC again there is no output and sometimes an error output. It should produce a correct output when you supply voltage to the pic right?
What's the use of #fuse mc ... |
Topic: When I turn On |
feitanx
Replies: 14
Views: 13628
|
Forum: General CCS C Discussion Posted: Sun Jun 13, 2010 7:45 am Subject: When I turn On |
#include <16F877a.h>
#fuses XT,NOWDT,NOPROTECT,NOLVP,NOCPD,NOBROWNOUT,NOWRT
CCS VERSION IS PCWHD 4.078 |
Topic: When I turn On |
feitanx
Replies: 14
Views: 13628
|
Forum: General CCS C Discussion Posted: Sun Jun 13, 2010 4:47 am Subject: When I turn On |
Supposedly when you program a pic and turn it on again it should run correctly but when I turn it on again it runs incorrectly?
what is the problem? is it the fuse? |
Topic: Binary to decimal |
feitanx
Replies: 13
Views: 11812
|
Forum: General CCS C Discussion Posted: Wed Jun 02, 2010 7:54 am Subject: Binary to decimal |
yes I connect the ground as well. but still i get some errors. it neccessary to parallel a capacitor on the input? |
Topic: HOW TO SEND DATA IN RS232 |
feitanx
Replies: 4
Views: 5356
|
Forum: General CCS C Discussion Posted: Tue Jun 01, 2010 9:21 pm Subject: HOW TO SEND DATA IN RS232 |
Can you give me example on how to put a header with a known sequence? I have no idea to how to do this
What CR/LF? |
Topic: How to multiplex the adc channel on this code |
feitanx
Replies: 16
Views: 13749
|
Forum: General CCS C Discussion Posted: Tue Jun 01, 2010 9:09 pm Subject: How to multiplex the adc channel on this code |
5.) what do you mean? The Vdd of the pic? A 100nf should be paralleled? |
Topic: HOW TO SEND DATA IN RS232 |
feitanx
Replies: 4
Views: 5356
|
Forum: General CCS C Discussion Posted: Tue Jun 01, 2010 7:25 pm Subject: HOW TO SEND DATA IN RS232 |
If I use any of these will it be decodable in VB? Will I be able to use the data in VB?
What I want to send is the result from the adc and I will use it in the VB for conversion and display. Which ... |
Topic: Binary to decimal |
feitanx
Replies: 13
Views: 11812
|
Forum: General CCS C Discussion Posted: Tue Jun 01, 2010 7:22 am Subject: Binary to decimal |
still has error. Best way to reduce them? |
Topic: HOW TO SEND DATA IN RS232 |
feitanx
Replies: 4
Views: 5356
|
Forum: General CCS C Discussion Posted: Tue Jun 01, 2010 7:11 am Subject: HOW TO SEND DATA IN RS232 |
What should I use in sending data (NUMERICAL DATA) over RS232 PRINTF(), PUTS() or others? What is the appropriate? And how to put distinction on them like a frame so it wont be mixed. |
Topic: Binary to decimal |
feitanx
Replies: 13
Views: 11812
|
Forum: General CCS C Discussion Posted: Mon May 31, 2010 7:48 pm Subject: Binary to decimal |
No voltage on other input pins. When I use the formula the output is 0.00
HERE IS THE WHOLE CODE:
#include <16F877a.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP,NOCPD,NOBROWNOUT
#device *=16 ADC=8 ... |
Topic: Binary to decimal |
feitanx
Replies: 13
Views: 11812
|
Forum: General CCS C Discussion Posted: Mon May 31, 2010 7:20 pm Subject: Binary to decimal |
Did you declare A2 as float? when I use the formula the answer is still incorrect, I already change the divisor to 255. Maybe there are some parameters to set. I did not ground the other AD pin by th ... |
Topic: How to multiplex the adc channel on this code |
feitanx
Replies: 16
Views: 13749
|
Forum: General CCS C Discussion Posted: Mon May 31, 2010 6:24 am Subject: How to multiplex the adc channel on this code |
supply voltage is 5
Vref is 5
AN2 is 3v
EXPECTED READING for 1.5v--->(1.5/5)*255=76.9
readings=73
FOR 3v
(3/5)*255=153
readings=148 |
|