Author |
Message |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Sun Sep 22, 2013 8:59 am Subject: SD Card FAT CCS |
I wrote and read the SD Card, but no in FAT format, then the hardware is correct |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Sat Sep 21, 2013 6:10 am Subject: SD Card FAT CCS |
I was testing a "new hardware"... but is solved... short circuit
patience ckielstra...
I'm using a 5V processor and it is functioning properly
have a voltage regulator to 3.3V
I re ... |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Fri Sep 20, 2013 12:41 pm Subject: SD Card FAT CCS |
I was testing new hardware and noticed something very strange
when I run output_high(MMCSD_PIN_SELECT); //port D7 (18F87k90).... the voltage was 3.3 V for 0.3V with or without the SD card
when ... |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Fri Sep 13, 2013 12:46 pm Subject: SD Card FAT CCS |
thanks PCM programmer, I compiled
I will make tests and then post the results here
ckielstra, I learned my lesson |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Fri Sep 13, 2013 9:46 am Subject: SD Card FAT CCS |
I changed the extensions to .c and
fat.c" Line 607(26,27): Undefined identifier -- mmcsd_write_data
fat.c" Line 614(28,29): Undefined identifier -- mmcsd_read_data
when I changed t ... |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Fri Sep 13, 2013 8:45 am Subject: SD Card FAT CCS |
PCM progammer:
1 - 4.120
2 - 18F87k90
3 - fat.h and mmcsd.h (I changed the extension to .h, both were .c)
4 -
fat.h" Line 607(26,27): Undefined identifier -- mmcsd_write_data
fat.h&qu ... |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Thu Sep 12, 2013 7:29 pm Subject: SD Card FAT CCS |
temtronic, what can be obvious for you, can not be for others...
my SD card is 2G, but I can't compile the FAT library |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Thu Sep 12, 2013 3:28 pm Subject: SD Card FAT CCS |
My hardware was tested. It´s okay. I make a simple communication by SPI and it´s okay.
But the problem is FAT format.
I tried to use the library of CCS, but not compiled.
I have not found here to ... |
Topic: SD Card FAT CCS |
hemasc_
Replies: 17
Views: 32628
|
Forum: General CCS C Discussion Posted: Thu Sep 12, 2013 2:52 pm Subject: SD Card FAT CCS |
Guys, I'm trying to write data to an SD Card (FAT).
I tried to use the library of CCS but no success.
Could anyone help me which way to go? |
Topic: Change serial parity |
hemasc_
Replies: 2
Views: 5217
|
Forum: General CCS C Discussion Posted: Fri Jul 19, 2013 12:48 pm Subject: Change serial parity |
SOLVED
#locate RCSTA = 0xFAC
#locate TXSTA = 0xFAB
#use rs232(baud=9600,xmit=pin_c6,rcv=pin_c7,errors,stream=COMM_1,enable=PIN_B1)
if(bit_with_parity)
{
bit_set(TX ... |
Topic: Change serial parity |
hemasc_
Replies: 2
Views: 5217
|
Forum: General CCS C Discussion Posted: Sat Jun 29, 2013 2:11 pm Subject: Change serial parity |
Hi!
I'm developing a device that the user has the option to change the serial parity.
There is the possibility that I do change the parity among the firmware?
For example:
if(true) # ... |
Topic: RTC does not run when debugging? |
hemasc_
Replies: 18
Views: 20423
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2012 2:46 pm Subject: RTC does not run when debugging? |
Eduardo__, I tried to use:
hora = read_clock.tm_hour;
hora = configura_ext(hora,0,24);
rtc_write(&write_clock);
in MAIN function, ok, but in others functions, I have problem
Error 12: ... |
Topic: RTC does not run when debugging? |
hemasc_
Replies: 18
Views: 20423
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2012 11:27 am Subject: RTC does not run when debugging? |
Eduardo__, thanks!!!
The crystal was in short-circuit.
I pulled the short and worked... |
Topic: RTC does not run when debugging? |
hemasc_
Replies: 18
Views: 20423
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2012 9:52 am Subject: RTC does not run when debugging? |
I used the CCS example and I can write and read, but after some seconds, I read again and value of second doesn't modify.
I used RTCOSC_T1 fuse
I have a crystal of 32kHz in hardware.
I think ... |
Topic: RTC does not run when debugging? |
hemasc_
Replies: 18
Views: 20423
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2012 8:28 am Subject: RTC does not run when debugging? |
Edward (rs), I want to use 18F87k90 RTC.
I would like to configure hour and date.
Can you send me some example? |
|