Author |
Message |
Topic: putchar & getch error?? |
sambyte
Replies: 8
Views: 10351
|
Forum: General CCS C Discussion Posted: Tue Jan 06, 2009 3:06 pm Subject: putchar & getch error?? |
I've just figured out the example uses rs232 just for a demo. EE access does not need these includes..
//#include "stdlib.h"
//#include <input.c>
//#include "limits.h" ... |
Topic: putchar & getch error?? |
sambyte
Replies: 8
Views: 10351
|
Forum: General CCS C Discussion Posted: Tue Jan 06, 2009 2:54 pm Subject: putchar & getch error?? |
I actually want to access EEPROM, read & write. The putc & getc happened to be in 'input.c' as shown in the EX_INTEE.c example. Is there a better way to access EE?? |
Topic: putchar & getch error?? |
sambyte
Replies: 8
Views: 10351
|
Forum: General CCS C Discussion Posted: Tue Jan 06, 2009 2:30 pm Subject: putchar & getch error?? |
What if I actually use the pin_A1 & pin_A2 for something else, that would actually create some I/O states.. How to avoid that..? Can I use non-existing pin names, for example, pin_D1 & pin _D2 ... |
Topic: putchar & getch error?? |
sambyte
Replies: 8
Views: 10351
|
Forum: General CCS C Discussion Posted: Tue Jan 06, 2009 2:19 pm Subject: putchar & getch error?? |
Thanks guys..
Got it...
...
#use delay(clock=8000000)
#use rs232(baud=9600, xmit=PIN_A1, rcv=PIN_A2)
/*
for dummy only (device doesn't have actual rs232)
>> t ... |
Topic: putchar & getch error?? |
sambyte
Replies: 8
Views: 10351
|
Forum: General CCS C Discussion Posted: Tue Jan 06, 2009 12:14 pm Subject: putchar & getch error?? |
The MPLAB compile error...
Executing: "C:\Program files\Picc\CCSC.exe" +FM "P12F683PWM.c" +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 12 "C:\Program Files\PICC\drivers\input.c&qu ... |
Topic: PIC12F683 pullup problem |
sambyte
Replies: 7
Views: 9351
|
Forum: General CCS C Discussion Posted: Mon Jan 05, 2009 10:39 pm Subject: PIC12F683 pullup problem |
The code generator, 'PIC Wizard' should have the option to select which bit is to enable/disable rather than just doing the global pullup bit.!! |
Topic: Just a simple question |
sambyte
Replies: 16
Views: 14345
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2008 6:58 am Subject: Just a simple question |
Thanks FvM. I've just found out about how to create the file. I'm beginning to like the CCS C more...
Thanks again... |
Topic: Just a simple question |
sambyte
Replies: 16
Views: 14345
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2008 3:48 am Subject: Just a simple question |
Thanks guys..I'll try that... |
Topic: Just a simple question |
sambyte
Replies: 16
Views: 14345
|
Forum: General CCS C Discussion Posted: Tue Dec 30, 2008 2:48 am Subject: Just a simple question |
BTW Robert, this is just an idea. Do you mind sharing with me those header files? It'll save a lot of times. I was thinking of adding portion of HTC device header files to existing CCS device ... |
Topic: Just a simple question |
sambyte
Replies: 16
Views: 14345
|
Forum: General CCS C Discussion Posted: Mon Dec 29, 2008 5:09 pm Subject: Just a simple question |
Hi Robert,
I agree with you. That's exactly what I'm going to do. For now, I just use #asm to access them directly. Like you've said, nothing so complicated about the PIC I/O...
I am just so used ... |
Topic: Just a simple question |
sambyte
Replies: 16
Views: 14345
|
Forum: General CCS C Discussion Posted: Mon Dec 29, 2008 5:20 am Subject: Just a simple question |
The code fragment was actually taken from the CCS C manual on page 307 (actual page, 319)
...
#byte PORTB = 6 //Just an example, check the
#define ALL_OUT 0 //DATA sheet for the correct
#define AL ... |
Topic: Just a simple question |
sambyte
Replies: 16
Views: 14345
|
Forum: General CCS C Discussion Posted: Mon Dec 29, 2008 4:07 am Subject: Just a simple question |
I finally decided to use CCS C. This is mainly because of this comparison.
http://www.ccsinfo.com/content.php?page=newcompilercomp
I don't know if this is a fair comparison since it is coming from ... |
|