Author |
Message |
Topic: how to write on SD Card? |
doryme
Replies: 8
Views: 8907
|
Forum: General CCS C Discussion Posted: Fri Apr 22, 2011 4:19 pm Subject: how to write on SD Card? |
I am using mmc card
but i think mmc card is a type of SD Cards .. seems that i was wrong |
Topic: how to write on SD Card? |
doryme
Replies: 8
Views: 8907
|
Forum: General CCS C Discussion Posted: Fri Apr 22, 2011 10:08 am Subject: how to write on SD Card? |
Hello
I use pic18f452 with 8MHz clock. about 3.3v, I use resistors for this purpose.
May you give me examples for 3.3v PIC?!
and still want to know, it is possible to make TXT file on mmc card?
th ... |
Topic: how to write on SD Card? |
doryme
Replies: 8
Views: 8907
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 1:31 pm Subject: how to write on SD Card? |
Hello
I want to make a program make TXT file on mmc card, and write on it. Any hints how to begin. Initialization?? Functions?? I made search but I didn't find useful results. |
Topic: problem with 16f877a..write and read from external memory |
doryme
Replies: 2
Views: 4400
|
Forum: General CCS C Discussion Posted: Sat Nov 27, 2010 3:51 pm Subject: problem with 16f877a..write and read from external memory |
According to the datasheet, page 13, memorymap....
...address 009cx is NOT implemented (it physically does NOT exist).
Now as to WHERE your program does this....sorry, I only work with real hardwa ... |
Topic: problem with 16f877a and RS232 |
doryme
Replies: 4
Views: 8464
|
Forum: General CCS C Discussion Posted: Sat Nov 27, 2010 10:54 am Subject: problem with 16f877a and RS232 |
Hmm..
last question first.
Yes, you can send only the 10 bits of the ADC result , if you want.
Simply create a bit-banged (software) UART.Old school, yet I do it all the time,it's a great security ... |
Topic: problem with 16f877a and RS232 |
doryme
Replies: 4
Views: 8464
|
Forum: General CCS C Discussion Posted: Sat Nov 27, 2010 10:51 am Subject: problem with 16f877a and RS232 |
Hello
Thank you for your help.
I tried the 3rd choice and got this..I expect to get 101110000
http://img152.imageshack.us/img152/6022/123gb.jpg
what are CR and LF that i use to mark data? and ... |
Topic: problem with 16f877a and RS232 |
doryme
Replies: 4
Views: 8464
|
Forum: General CCS C Discussion Posted: Sat Nov 27, 2010 6:14 am Subject: problem with 16f877a and RS232 |
Hello
This is my code to convert analog voltage to digital and send it via RS232 cable
#INCLUDE <16F877A.h>
#device adc=10
#fuses HS,NOWDT,NOPROTECT,NOLVP
#USE DELAY (CLOCK=100000 ... |
Topic: problem with 16f877a..write and read from external memory |
doryme
Replies: 2
Views: 4400
|
Forum: General CCS C Discussion Posted: Sat Nov 27, 2010 5:12 am Subject: problem with 16f877a..write and read from external memory |
Hello
I am using PIC16F877A. I want to write 8 bits in external memory, then read them again.
I enter 8 bits using 8 switches on PORTB, and read them on 8 leds on PORTD.
This is my simulation a ... |
Topic: How to set Configuration bits?! |
doryme
Replies: 1
Views: 8130
|
Forum: General CCS C Discussion Posted: Fri Nov 26, 2010 10:59 am Subject: How to set Configuration bits?! |
Hello
I am making a small project to write/read in/from external memory. I am using PIC16F877A.
The simulation on Proteus 7.7 is working very well but I get this error:
Configuration word bits CP ... |
Topic: ccs doesn't work |
doryme
Replies: 1
Views: 3269
|
Forum: General CCS C Discussion Posted: Tue Nov 23, 2010 11:16 am Subject: ccs doesn't work |
hello
When I open PIC C Compiler I get this error
C Compiler IDE has encountered a problem and needs to close. We are sorry for the inconvenience.
What should I do? |
Topic: adding offset using PIC |
doryme
Replies: 2
Views: 4980
|
Forum: General CCS C Discussion Posted: Wed Oct 27, 2010 11:30 am Subject: adding offset using PIC |
Hello
I need to add offset to my AC signals entering to adc of pic16f877A.
I should check the most -ve value of the analog signal then add it as offset.
For example if the signal varies from 2.5 ... |
Topic: how can i be sure that adc is doing well? |
doryme
Replies: 2
Views: 3575
|
Forum: General CCS C Discussion Posted: Sat Oct 23, 2010 6:06 pm Subject: how can i be sure that adc is doing well? |
Hello
This is my code to convert analog signal at RA0 to digital then send it via serial port to my pc
#INCLUDE <16F877A.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#USE DELAY (CLOCK=10000000 ... |
Topic: How use UART? |
doryme
Replies: 6
Views: 6135
|
Forum: General CCS C Discussion Posted: Fri Oct 22, 2010 3:21 am Subject: How use UART? |
I'm not sure this is the board for Proteus issues. Frankly there are way to many inquiries about RS232 that have been asked and answered several times on this board. Even a small effort at search shou ... |
Topic: How use UART? |
doryme
Replies: 6
Views: 6135
|
Forum: General CCS C Discussion Posted: Thu Oct 21, 2010 6:03 am Subject: How use UART? |
Look up the function #use_RS232() to see how to set up the UART for your pins, clock speed, and baud rate. This must be done before using printf().
The printf() function takes the binary value you g ... |
Topic: How use UART? |
doryme
Replies: 6
Views: 6135
|
Forum: General CCS C Discussion Posted: Wed Oct 20, 2010 8:55 pm Subject: How use UART? |
See this sample program:
http://www.ccsinfo.com/forum/viewtopic.php?t=42763&start=1
Thank you very much for your help. I can now program my adc using this code:
void main()
{
... |
|