Author |
Message |
Topic: PIC16F1825 CCP2 Alternate Pin |
barryg
Replies: 1
Views: 5022
|
Forum: General CCS C Discussion Posted: Fri Sep 02, 2011 2:04 pm Subject: PIC16F1825 CCP2 Alternate Pin |
The only catch I can think of is that you have to set RA5 to be an output--enabling PWM doesn't do that automatically. |
Topic: Switching I2C Master to Slave ..possible? |
barryg
Replies: 9
Views: 22890
|
Forum: General CCS C Discussion Posted: Fri Sep 02, 2011 1:55 pm Subject: Switching I2C Master to Slave ..possible? |
Practical application for Slave/Master switching. In this scenario, the PIC is a slave in a larger system. The system contains a computer running Windows, that is supposed to be the i2c master. How ... |
Topic: Embed Svn revision number in code |
barryg
Replies: 8
Views: 12195
|
Forum: General CCS C Discussion Posted: Tue Aug 23, 2011 6:42 pm Subject: Embed Svn revision number in code |
I used a slightly enhanced version of the "subdirs" for many years. Namely, a *.zip file of those subdirs This works well if you do everything yourself, and on one computer. We got ... |
Topic: 18f67k22 |
barryg
Replies: 2
Views: 5676
|
Forum: General CCS C Discussion Posted: Wed Aug 10, 2011 6:11 pm Subject: 18f67k22 |
This page lists supported PICs.
http://www.ccsinfo.com/devices.php?page=devices
You need the PCH compiler for this. |
Topic: PIC18F4550 Unable to enter debug mode |
barryg
Replies: 8
Views: 17111
|
Forum: General CCS C Discussion Posted: Wed Aug 10, 2011 5:03 pm Subject: Re: Solved |
I had the same problem with the pic18f4550. To enter in mode debug, it needs the fuse #FUSES ICSP1.
Well that was huge. You nailed it! I'm not even sure if CCS would have been able to figure this ... |
Topic: PIC18F4550 Unable to enter debug mode |
barryg
Replies: 8
Views: 17111
|
Forum: General CCS C Discussion Posted: Wed Jul 13, 2011 1:16 pm Subject: Unable to enter debug mode--V4 Compiler? |
I experienced the same problem recently. I currently have no time to chase it down, so all that I know is this:
- I upgraded from V3 to V4 compiler in anticipation of another project.
- For the ... |
Topic: signed shift right - compiler generates incorrect code! |
barryg
Replies: 4
Views: 9365
|
Forum: General CCS C Discussion Posted: Thu Jun 23, 2011 5:48 pm Subject: signed shift right - compiler generates incorrect code! |
Compilers are pretty smart these days. You should test a few of these operations and look at the code that is generated. Try divides and multiplies, try right and left shifts.
What you will fin ... |
Topic: How to Convert Date And Time To System Elapse Tick |
barryg
Replies: 3
Views: 5214
|
Forum: General CCS C Discussion Posted: Fri Nov 19, 2010 2:31 pm Subject: How to Convert Date And Time To System Elapse Tick |
Cool. When I think GPS, Nixie tubes are the first thing I think of
I think your idea has merit. The conversions to and from ticks and dates are still messy, but at least people have been doing ... |
Topic: PIC16F877A E port Problem |
barryg
Replies: 2
Views: 4657
|
Forum: General CCS C Discussion Posted: Fri Aug 13, 2010 2:01 pm Subject: PIC16F877A E port Problem |
One more thing--the bit that enables the PSP is in the same TRIS E register as the customary TRIS bits. It's easy to change those extra bits when you think you're just setting the direction for E0/1/ ... |
Topic: Why doesn't this work? |
barryg
Replies: 12
Views: 11127
|
Forum: General CCS C Discussion Posted: Mon Sep 28, 2009 3:03 pm Subject: Why doesn't this work? |
This is going to be one of those “simple answer things” that I can't see. Nothing prints out, because you commented out all the printf's
As for the "I can't see" part? An editor t ... |
Topic: One ADC, reading multiple PWM |
barryg
Replies: 7
Views: 7339
|
Forum: General CCS C Discussion Posted: Mon Sep 28, 2009 2:05 pm Subject: One ADC, reading multiple PWM |
Yes, it can be done with relays, and with circuits that replace relays.
"bungee-" mentioned a 74HCT4051. That is an electronic switch, and it does just what you're asking. "nuno12345 ... |
Topic: pse info... |
barryg
Replies: 5
Views: 6369
|
Forum: General CCS C Discussion Posted: Thu Sep 24, 2009 6:44 pm Subject: pse info... |
So, taking on the other two questions...
undo the erasing.
[Why does the EEPROM function read_int32_eeprom read the bytes in the order that it does?]
I don't see a function by that name. Non ... |
Topic: pse info... |
barryg
Replies: 5
Views: 6369
|
Forum: General CCS C Discussion Posted: Thu Sep 24, 2009 6:31 pm Subject: pse info... |
"const" is a modifier, so we might need to see how you are using it. But for a general explanation, #define does not create anything in your program. It simply tells the compiler that any ... |
Topic: One ADC, reading multiple PWM |
barryg
Replies: 7
Views: 7339
|
Forum: General CCS C Discussion Posted: Thu Sep 24, 2009 6:09 pm Subject: One ADC, reading multiple PWM |
Well, yes, if you also willing to accept an additional question:
Is it possible to do measurements without an A/D converter?
Because if you are measuring resistance (like the potentiometers in ... |
Topic: Problem Writing to eeprom PIC18F4431 |
barryg
Replies: 16
Views: 19818
|
Forum: General CCS C Discussion Posted: Thu Sep 24, 2009 5:55 pm Subject: Re: Problem Writing to eeprom PIC18F4431 |
It would be rather hard to pin down a problem that was specific to that chip, unless someone has found it before. Meanwhile, there may be questions about the values you write to the EEPROM, so I'd su ... |
|