CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 19 matches
CCS Forum Index
Author Message
  Topic: PIC10F200 code not working...
eem2am

Replies: 11
Views: 14488

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2012 11:20 pm   Subject: PIC10F200 code not working...
thanks,

but due to compatibility reasons, we still use MPLAB V8.60, so in that third party folder is the old ccs compiler
  Topic: PIC10F200 code not working...
eem2am

Replies: 11
Views: 14488

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2012 12:26 pm   Subject: PIC10F200 code not working...
OK thanks i will get the new CCS PCB version, but how will MPLAB (v8.60) know where to get the PCB compiler from?

...surely it will keep getting the old compiler which is stored in the "micr ...
  Topic: PIC10F200 code not working...
eem2am

Replies: 11
Views: 14488

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2012 9:49 am   Subject: PIC10F200 code not working...
OK but our old code is written with old compiler so we need to use that

by the way we wrote it in assembler and it works on the pic in the hardware............




;vvvvvvvvvvvvvvvvvvvvvvvvvvv ...
  Topic: PIC10F200 code not working...
eem2am

Replies: 11
Views: 14488

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2012 8:53 am   Subject: PIC10F200 code not working...
Hello,

We still cannot get our code to work.

We did it with fast io like your code and we got a 50KHz square wave on GP0 GP1 GP2 and high on GP3

We then changed to standard io and got a 20KH ...
  Topic: PIC10F200 code not working...
eem2am

Replies: 11
Views: 14488

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2012 8:00 am   Subject: PIC10F200 code not working...
thanks, ill try your code, but i notice you don't have a setup counters instruction?

the pic pins simply have just 47K pullups on them.....i wonder if this is too big and I'm getting noise in the p ...
  Topic: PIC10F200 code not working...
eem2am

Replies: 11
Views: 14488

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2012 5:55 am   Subject: PIC10F200 code not working...
Hello,

do you know why this code does not work.?

all it does (should do) is take GP0 high and low with duty cycle = 50% and period = 20ms.

But GP0 is just always low


#include <10F20 ...
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 5:14 am   Subject: Program is too large error
I Have to be compatible with code written by previous engineers years ago.
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 4:15 am   Subject: Program is too large error
I checked the manual, (@ july 2003) theres nothing on page 43, page 66 lists types but theres no "Usigned int".

can you confirm that "int" can only go -127 to +127?
  Topic: PIC10F200: Disable pullups, Wdt, Setting ports
eem2am

Replies: 1
Views: 5295

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 3:31 am   Subject: PIC10F200: Disable pullups, Wdt, Setting ports
Hello, i am using PIC10F200 and am wishing to:-

1...disable pullups
2...set up WDT to slowest rate
3...initially set ports to inputs (high impedance)
4....Calibrate the internal oscillator

Do ...
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 3:18 am   Subject: Program is too large error
thanks,

actually ive amalgamated the functions and got it down to PIC10F200.h Size.

I am now working on disabling pullups and enabling the watchdog timer.

The compiler doesnt like me adding s ...
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 2:53 am   Subject: Program is too large error
My code is smaller now but still not small enough.

asmboy if i use your delay using the timer will that be better than using a delay_ms(10) and then calling that in a for loop for longer delays? ...
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Tue Jul 24, 2012 2:18 am   Subject: Program is too large error
Hi Thanks,

Ive compiled with the PIC10F202.h and it says that it uses 67% ROM.

so does that mean 67% of 512 bytes = 343 bytes....meaning that i have 343-256 = 87 bytes of ROM to get rid of. ...
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2012 9:37 am   Subject: Program is too large error
Thanks,

When i "Build All", is there any way of seeing how big the too-big program is.

so that i know how much i need to trim it back.

Also, if i call a function, can i not then ca ...
  Topic: Program is too large error
eem2am

Replies: 15
Views: 20098

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2012 8:30 am   Subject: Program is too large error
I am writing C for PIC10F200, and MPLAB is giving me the following error:

*** Error 71 "xenon.c" Line 303(0,1): Out of ROM, A segment or the program is too large MAIN

............. ...
  Topic: setting port to input, output or High Z.
eem2am

Replies: 6
Views: 13455

PostForum: General CCS C Discussion   Posted: Fri Jul 20, 2012 5:09 am   Subject: setting port to input, output or High Z.
I have just also read from my companies archives of 2007 that CCS compiler has a bug in the setup_counters() function which means pullups cannot be disabled.

setup_counters(rtcc_internal, rtcc ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group