Author |
Message |
Topic: Please help for ADC voltage measurement |
rberek
Replies: 24
Views: 36486
|
Forum: General CCS C Discussion Posted: Tue Jan 25, 2011 9:17 am Subject: Please help for ADC voltage measurement |
My comment about Proteus ,is that if you wire up the real parts following the schematic that was shown to us ,it will not work, and can never work.
While it may be obvious that this PIC needs a cr ... |
Topic: Please help for ADC voltage measurement |
rberek
Replies: 24
Views: 36486
|
Forum: General CCS C Discussion Posted: Tue Jan 25, 2011 6:25 am Subject: Please help for ADC voltage measurement |
Temtronic
Actually, in this particular case, you'd have little to no money at all.
Proteus can do both digital and analog simulation, but in this case, it is a purely digital simulation. Thus n ... |
Topic: PIC18F452 device is not working in maximum speed for RS485 |
rberek
Replies: 1
Views: 3622
|
Forum: General CCS C Discussion Posted: Fri Aug 28, 2009 7:32 am Subject: PIC18F452 device is not working in maximum speed for RS485 |
Well, what frequency is the crystal/oscillator you are using? You just can't pick random numbers and put them in the #use delay statement. You need to use the value that represents the clocking inpu ... |
Topic: Need help for this servo controller source code |
rberek
Replies: 3
Views: 5933
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 9:45 am Subject: Need help for this servo controller source code |
Your main problem here is that this is written for the CC5X compiler, which is totally different from the CCS compiler. You should go to their website, http://www.bknd.com/cc5x/, to seek help
r.b. |
Topic: Electronic Notebook |
rberek
Replies: 11
Views: 9335
|
Forum: General CCS C Discussion Posted: Thu Jun 18, 2009 9:53 am Subject: Electronic Notebook |
I think this would be even worse. Its one time programmable and has less RAM and program memory than the 877. And fewer IO too.
r.b. |
Topic: getting out from while loop |
rberek
Replies: 15
Views: 15435
|
Forum: General CCS C Discussion Posted: Thu Apr 09, 2009 7:42 am Subject: getting out from while loop |
Of course the problem is still the same. That's what we were discussing.
You've written code that will drop from case '1' to case '2' if y is anything other than 5. The break statement prevents ... |
Topic: getting out from while loop |
rberek
Replies: 15
Views: 15435
|
Forum: General CCS C Discussion Posted: Wed Apr 08, 2009 11:41 am Subject: getting out from while loop |
That semicolon then might just be a finger error in placing the code in the post. In which case, your observation is the correct one. I'm betting that's exactly what it is. |
Topic: getting out from while loop |
rberek
Replies: 15
Views: 15435
|
Forum: General CCS C Discussion Posted: Wed Apr 08, 2009 11:32 am Subject: getting out from while loop |
Clearly I was partially asleep when I wrote my response, and I was incorrect, but doesn't the semicolon at the end of the if statement mean that the break at the end of case '1' will still be executed ... |
Topic: getting out from while loop |
rberek
Replies: 15
Views: 15435
|
Forum: General CCS C Discussion Posted: Wed Apr 08, 2009 10:54 am Subject: getting out from while loop |
You have a semicolon after your if statement.
This means that if x == '5', nothing is done. Then the break statement is executed no matter what x is.
r.b. |
Topic: Large Character Format LCDs |
rberek
Replies: 6
Views: 6783
|
Forum: General CCS C Discussion Posted: Tue Mar 24, 2009 12:55 pm Subject: Large Character Format LCDs |
I have used a monochrome 128x64 Graphics LCD to do something similar (RPM Indicator). They are cheap and easy to control (I believe CCS has a driver for them). The Samsung KS01018 controller is bog ... |
Topic: rs232 between pic |
rberek
Replies: 5
Views: 6273
|
Forum: General CCS C Discussion Posted: Thu Feb 19, 2009 9:35 am Subject: rs232 between pic |
Did you try a null modem cable? Do you know what that is?
A computer always transmits data on pin 3 of the DB9 connector, and receives it on pin 2. Any device that is designed to connect to a com ... |
Topic: rs232 between pic |
rberek
Replies: 5
Views: 6273
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2009 2:09 pm Subject: rs232 between pic |
Did you use a null modem cable instead of a normal serial cable? If not, you'll have to.
r.b. |
Topic: problem with GPS OEM modules |
rberek
Replies: 2
Views: 2990
|
Forum: General CCS C Discussion Posted: Thu Dec 04, 2008 7:22 am Subject: problem with GPS OEM modules |
What are you using for an antenna and where are you trying to achieve lock/ (inside, outside, around tall buildings, etc)?
r.b. |
Topic: Fonts for GLCD |
rberek
Replies: 6
Views: 16218
|
Forum: General CCS C Discussion Posted: Wed Aug 27, 2008 4:13 pm Subject: Fonts for GLCD |
I recently generated some fonts for a KS0108 GLCD (specifically, the digits 0-9). I used PhotoShop and selected a font I liked, then created a new image for each digit. I reduced the image size to t ... |
Topic: And operation |
rberek
Replies: 4
Views: 4222
|
Forum: General CCS C Discussion Posted: Mon Jul 14, 2008 7:36 am Subject: And operation |
Use a single "&" and don't use "&&"
"&&" does an AND comparison. The single "&" is for the mathematical operation.
r.b. |
|