Author |
Message |
Topic: RS232 printf - how do I send a hex value instead of ASCII |
lucky
Replies: 17
Views: 31226
|
Forum: General CCS C Discussion Posted: Fri Apr 29, 2005 10:03 am Subject: RS232 printf - how do I send a hex value instead of ASCII |
OK,
You are rite (as always).
In feable defence, I was thinking of my debug code that does indeed print the Hex in character readable form. |
Topic: RS232 printf - how do I send a hex value instead of ASCII |
lucky
Replies: 17
Views: 31226
|
Forum: General CCS C Discussion Posted: Fri Apr 29, 2005 9:43 am Subject: RS232 printf - how do I send a hex value instead of ASCII |
Mark,
printf ("%02X",0x1B);
Will print the ASCII characters 1 and B. This is what he had.
printf ("%X",0x1B);
Will send the Single HEX byte 0x1B ... |
Topic: RS232 printf - how do I send a hex value instead of ASCII |
lucky
Replies: 17
Views: 31226
|
Forum: General CCS C Discussion Posted: Fri Apr 29, 2005 9:29 am Subject: RS232 printf - how do I send a hex value instead of ASCII |
I read it.
printf ("%X",0x1B);
will do as he wants.
printf ("%02X",0x1B);
however will not. This is what he had in the original post.
I use this in l ... |
Topic: Ex_Voice.c problem |
lucky
Replies: 3
Views: 7174
|
Forum: General CCS C Discussion Posted: Fri Apr 29, 2005 8:57 am Subject: Ex_Voice.c problem |
Watch Dog Timer? |
Topic: RS232 printf - how do I send a hex value instead of ASCII |
lucky
Replies: 17
Views: 31226
|
Forum: General CCS C Discussion Posted: Fri Apr 29, 2005 8:46 am Subject: RS232 printf - how do I send a hex value instead of ASCII |
printf ("%X",0x1B); |
Topic: write sector on 128 mb card didn't work but on 32m it work |
lucky
Replies: 3
Views: 8122
|
Forum: General CCS C Discussion Posted: Thu Mar 31, 2005 10:05 am Subject: Code Libray Example |
Have a look at Douglas Kennedy code in the CCS Code Libray:
[url=http://www.ccsinfo.com/forum/viewtopic.php?t=21721]http://www.ccsinfo.com/forum/viewtopic.php?t=21721 |
Topic: proper level shifter @8Mhz |
lucky
Replies: 2
Views: 6340
|
Forum: General CCS C Discussion Posted: Tue Mar 29, 2005 5:17 am Subject: Re: proper level shifter @8Mhz |
I have used the 74LVC245. |
Topic: Flash card read and write. |
lucky
Replies: 21
Views: 31542
|
Forum: General CCS C Discussion Posted: Thu Mar 17, 2005 10:42 am Subject: CF Write code |
Young,
for(i=compactFlashPosition;i<offset;i++){
compactFlashPosition++;
CF_ReadData(0);
}
is used to seek in to the sector by the req ... |
Topic: Flash card read and write. |
lucky
Replies: 21
Views: 31542
|
Forum: General CCS C Discussion Posted: Thu Mar 17, 2005 10:18 am Subject: CF Read code |
young,
This is the calcualtions to find the correct head and cylinder for the requested sector.
sectors and heads should be read from the CF and populated in read_boot_sector() (the comme ... |
Topic: Flash card read and write. |
lucky
Replies: 21
Views: 31542
|
Forum: General CCS C Discussion Posted: Thu Mar 17, 2005 9:12 am Subject: CF Read code |
Hi young,
1) get_sector() is used to skip to the required location on the CF. This can be seen in FAT16.c when find_file() is used to read the mp3. get_sector() then writes all of the required data ... |
Topic: Flash card read and write. |
lucky
Replies: 21
Views: 31542
|
Forum: General CCS C Discussion Posted: Thu Mar 17, 2005 7:55 am Subject: CF Read code |
Hi young,
Download the MPic3 player code zip and the MPic3 player diagram and this will answer all of your questions. You are correct in what you have put and CF_SetAddress(BYTE address) is simp ... |
Topic: Fat16 write function for compact flash card |
lucky
Replies: 13
Views: 20669
|
Forum: General CCS C Discussion Posted: Mon Feb 21, 2005 3:32 am Subject: FAT16 Compact Flash Code |
www.mpic3.com look in the downloads area. Its free and works great for reads. Adding writes is easy and is just a case of switching the CF commands. |
Topic: Flash card read and write. |
lucky
Replies: 21
Views: 31542
|
Forum: General CCS C Discussion Posted: Wed Feb 16, 2005 9:12 am Subject: CF Read code |
http://www.mpic3.com
Check the Compact Flash Fat16 code in the downloads area. (reads only). |
Topic: FAT16 Compact Flash Code |
lucky
Replies: 0
Views: 27806
|
Forum: Code Library Posted: Mon Jan 10, 2005 11:29 am Subject: FAT16 Compact Flash Code |
Here is a working MP3 player project that uses Compact Flash and a simple FAT16 implementation for reading MP3's from a Windows writen CF card:
http://www.mpic3.com/downloads/ |
Topic: USB mass storage |
lucky
Replies: 7
Views: 16018
|
Forum: General CCS C Discussion Posted: Mon Jan 10, 2005 6:31 am Subject: PIC CCS FAT16 code |
Try www.mpic3.com. Look in the downloads area for the MPic3 (MP3) player code. This has my simple FAT16 PIC code written in CCS C. I only use reads from a Compact Flash but it would be quite easy to a ... |
|