Author |
Message |
Topic: A couple of simple coding questions |
madcat
Replies: 2
Views: 3515
|
Forum: General CCS C Discussion Posted: Sat Jan 03, 2009 11:30 pm Subject: A couple of simple coding questions |
Normally, you don't put a semi-colon at the end of a #define statement.
Ouch !
Thats what happens when you work 20h on a program without a break
I have lots of ... |
Topic: A couple of simple coding questions |
madcat
Replies: 2
Views: 3515
|
Forum: General CCS C Discussion Posted: Sat Jan 03, 2009 5:57 pm Subject: A couple of simple coding questions |
Hi to all,
I'm writing a code that will display various information screens on LCD.
The following code supposed to get an up/down key and cycle through the available screens.
#define key_u ... |
Topic: FatFs - FAT File System Module - CCS Port |
madcat
Replies: 10
Views: 17212
|
Forum: General CCS C Discussion Posted: Wed Dec 31, 2008 2:00 pm Subject: FatFs - FAT File System Module - CCS Port |
Hi, Andrew
My project is for educational and non commerical use, so paid software is not an option for me.
For such use It would be nice to have a free open source version.... |
Topic: FatFs - FAT File System Module - CCS Port |
madcat
Replies: 10
Views: 17212
|
Forum: General CCS C Discussion Posted: Wed Dec 31, 2008 9:10 am Subject: FatFs - FAT File System Module - CCS Port |
Actually i was surprised no one did it so far. And with all the
Initially i thought that it wont be too hard. It is written in ANSI C. The low level MMC access library from CCS works fine. So i th ... |
Topic: FatFs - FAT File System Module - CCS Port |
madcat
Replies: 10
Views: 17212
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2008 11:49 pm Subject: FatFs - FAT File System Module - CCS Port |
Hi everyone!
I was wondering if there is a port of FatFs for CCS out there ?
http://elm-chan.org/fsw/ff/00index_e.html
I'm trying to use FAT for MMC cards and nothing seems to work (direct spi ... |
Topic: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
madcat
Replies: 9
Views: 10168
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2008 8:04 pm Subject: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
Found these 2 threads (4620) :
1. from 2004 (!) : the second poster says that he had to remove #zero_ram.
http://www.ccsinfo.com/forum/viewtopic.php?p=37454
2. from 2008 (unsolved) : the OP complai ... |
Topic: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
madcat
Replies: 9
Views: 10168
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2008 7:41 pm Subject: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
......I would get rid of ...... #zero_ram.....
THANK YOU !
It works and even in my original test program (with GLCD, PWM etc..)
and even with ADC_CLOCK_INTERNAL and 40 MHz
I've ... |
Topic: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
madcat
Replies: 9
Views: 10168
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2008 7:08 pm Subject: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
#use delay(clock=37188789)
Do you really have a crystal or oscillator that runs at that frequency ?
Yes I do. Exactly at this frequency.
Also I've just tried the :
#fuses INTRC and setup_ad ... |
Topic: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
madcat
Replies: 9
Views: 10168
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2008 6:47 pm Subject: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
The table says that 18F4620 at 40MHz needs TAD of 32 TOSC or 64 TOSC
from the .h file :
// Constants used for SETUP_ADC() are:
#define ADC_OFF 0 // ADC ... |
Topic: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
madcat
Replies: 9
Views: 10168
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2008 5:59 pm Subject: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
Here is my test program (simplified from the one that works with 4520)
I don't feel comfortable with the "itoa" but even when I watch the value of "light_lvl" in IDE it is zero. ... |
Topic: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
madcat
Replies: 9
Views: 10168
|
Forum: General CCS C Discussion Posted: Tue Dec 16, 2008 5:30 pm Subject: ADC does not work after PIC18F4520 to PIC18F4620 upgrade |
Hi to all,
I've used an 4520 to develop my software & hardware until 4620 arrived.
I had a perfectly working ADC routines.
I use MPLAB 8.1 as my IDE, ICD2 as debugger and CCS v4.068 compile ... |
Topic: Help! Software UART with EXT interrupt on 18F4520 |
madcat
Replies: 14
Views: 21977
|
Forum: General CCS C Discussion Posted: Thu Nov 13, 2008 5:07 pm Subject: Help! Software UART with EXT interrupt on 18F4520 |
Hi all again !
After some break I'm back to this project.
Now I have FTDI usb module which I use for debugging this problem. It is configured for 5v i/o which eliminates the voltage level problem. ... |
Topic: Help! Software UART with EXT interrupt on 18F4520 |
madcat
Replies: 14
Views: 21977
|
Forum: General CCS C Discussion Posted: Fri Aug 01, 2008 9:13 pm Subject: Help! Software UART with EXT interrupt on 18F4520 |
PCM programmer,
Yep. MCU stands for "Micro Controller Unit"
You've told a very interesting point! thanks! I've totally missed that in interrupt mode the input voltage levels are different ... |
Topic: Help! Software UART with EXT interrupt on 18F4520 |
madcat
Replies: 14
Views: 21977
|
Forum: General CCS C Discussion Posted: Thu Jul 31, 2008 6:14 pm Subject: Help! Software UART with EXT interrupt on 18F4520 |
H4.... now i see it. Thanks. I do have the list of all fuses in the .h header but no explanation on their meaning. So i was searching somth with "PLL" in its name.
My platform:
PIC1 ... |
Topic: Help! Software UART with EXT interrupt on 18F4520 |
madcat
Replies: 14
Views: 21977
|
Forum: General CCS C Discussion Posted: Thu Jul 31, 2008 11:53 am Subject: Help! Software UART with EXT interrupt on 18F4520 |
Error 111 "test1.c" Line 5(7,56): Unknown keyword in #FUSES "HS_PLL"
Previously i even tried to run a text search on 18F4520.h for "PLL" and it has only #def ... |
|