Author |
Message |
Topic: Out Of Memory |
mskala
Replies: 3
Views: 5480
|
Forum: General CCS C Discussion Posted: Wed Jun 09, 2010 8:55 am Subject: Out Of Memory |
Create a subroutine for the write, you only even need 2 parameters. |
Topic: 18F2450 running slow |
mskala
Replies: 6
Views: 8050
|
Forum: General CCS C Discussion Posted: Tue Jun 08, 2010 12:16 pm Subject: 18F2450 running slow |
I agree you should run his program, but unless I read the data sheet
wrong you will need to change the clock=4000000 to clock=31000.
Fuse HS won't affect the internal oscillator.
And your initial ... |
Topic: 18F2450 running slow |
mskala
Replies: 6
Views: 8050
|
Forum: General CCS C Discussion Posted: Mon Jun 07, 2010 11:28 am Subject: 18F2450 running slow |
setup_oscillator(OSC_INTRC);
on this device is going to be the 31K oscillator, I believe. So telling the
code that clock is 8000000 will be a problem. |
Topic: Capacitive Touch Slider |
mskala
Replies: 2
Views: 4039
|
Forum: General CCS C Discussion Posted: Sat May 15, 2010 7:33 am Subject: Capacitive Touch Slider |
I have not used this, but reading over, it looks like all they mean by
Captured Left Base Capacitance is the A/D reading. Do the A/D
conversions and save them for the equations. |
Topic: Оccupies a large part of the ROM :( |
mskala
Replies: 2
Views: 4724
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2010 8:22 am Subject: Оccupies a large part of the ROM :( |
I'm pretty sure people have written a more compact printf replacement that saves code space by not having to deal with floats, etc. You should look into that. |
Topic: Fast dynamic pin selection |
mskala
Replies: 3
Views: 4166
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2010 8:18 am Subject: Fast dynamic pin selection |
Look at how the sensor works. You can put them all on the same pin, because each one has a unique address. |
Topic: 18F4550 and SW I2C Problem |
mskala
Replies: 8
Views: 13746
|
Forum: General CCS C Discussion Posted: Thu Jan 28, 2010 7:56 am Subject: 18F4550 and SW I2C Problem |
I don't understand. I use 4550 with both hardware I2C and hardware UART, they do not share any pins on the QFP and I couldn't see anything in the datasheet for the other packages either. |
Topic: Drive a 2-digit segment with PIC18F4520 to display values |
mskala
Replies: 3
Views: 5234
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2009 7:43 am Subject: Drive a 2-digit segment with PIC18F4520 to display values |
http://www.ccsinfo.com/forum/viewtopic.php?t=40808&highlight= |
Topic: Need 7-segment display CCS driver for 18f4550 |
mskala
Replies: 9
Views: 14671
|
Forum: General CCS C Discussion Posted: Tue Dec 08, 2009 11:40 am Subject: Need 7-segment display CCS driver for 18f4550 |
My apologies, I cut out a bit too much.
The variable rtcc_toggle is just a global 1-bit var. Since there are 2
characters in the display, every 8.2ms we have to change which 7-seg
is being drive ... |
Topic: restarting loop |
mskala
Replies: 16
Views: 14857
|
Forum: General CCS C Discussion Posted: Tue Dec 01, 2009 4:06 pm Subject: Re: restarting loop |
so I have a problem implementing a code. I want to restart the loop I am currently in.......if a certain condition becomes true. However, the compiler see it as redundancy. How can I work around this: ... |
Topic: Need 7-segment display CCS driver for 18f4550 |
mskala
Replies: 9
Views: 14671
|
Forum: General CCS C Discussion Posted: Thu Nov 26, 2009 11:26 pm Subject: Need 7-segment display CCS driver for 18f4550 |
I have this code for 2-digit which works great and only needs 1 resistor.
See the top comments for exact parts used.
/* ========================================================================= ... |
Topic: Program PIC to interface 2x16 LCD using C code & LCD.c |
mskala
Replies: 4
Views: 10732
|
Forum: General CCS C Discussion Posted: Wed Nov 18, 2009 9:09 am Subject: Program PIC to interface 2x16 LCD using C code & LCD.c |
Not all LCD modules are the same. Some things to check are:
Do you need to wait a certain amount of time after power-up before
doing anything? Are the delays in the code enough? Does your LCD
re ... |
Topic: Window 7, CDC driver |
mskala
Replies: 2
Views: 4365
|
Forum: General CCS C Discussion Posted: Fri Nov 06, 2009 11:20 am Subject: Window 7, CDC driver |
Thanks, for me there must have been an unrelated problem.
I found another free driver that I plugged the VID into, and it is working fine. |
Topic: Window 7, CDC driver |
mskala
Replies: 2
Views: 4365
|
Forum: General CCS C Discussion Posted: Thu Nov 05, 2009 8:10 pm Subject: Window 7, CDC driver |
After upgrading to Win 7, I didn't notice until now that the CCS driver for
CDC is not allowing my previously good pic designs to be recognized.
Does anyone else have this problem or did I mess up ... |
Topic: Fixed vs Floating point - is faster possible? |
mskala
Replies: 2
Views: 3158
|
Forum: General CCS C Discussion Posted: Tue Nov 03, 2009 12:38 pm Subject: Fixed vs Floating point - is faster possible? |
Two comments:
1) This type of thing is very dependent on what fits into the variable size
in intermediate steps, so it is not so general that a future user could
just send any old values in ... |
|