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 210 matches
CCS Forum Index
Author Message
  Topic: bit_test a constant
Will Reeve

Replies: 2
Views: 4951

PostForum: General CCS C Discussion   Posted: Fri Mar 09, 2012 3:45 am   Subject: bit_test a constant
thanks, they are "variable" constants in a separate file which are calibration constants to each micro but change for each device (separate file for each product)! As the compiler knows wher ...
  Topic: bit_test a constant
Will Reeve

Replies: 2
Views: 4951

PostForum: General CCS C Discussion   Posted: Fri Mar 09, 2012 2:17 am   Subject: bit_test a constant
Hi,
Is there an easy way to bit_test a constant? the in-built bit_test function doesn't allow it.
  Topic: EEPROM data access on a PIC12F519
Will Reeve

Replies: 9
Views: 12719

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2012 2:36 pm   Subject: EEPROM data access on a PIC12F519
It needs to be the really tiny footprint part; I am just tasked with firmware! Apparently (I haven't checked!) it's the smallest F part with EEPROM you can get!
  Topic: EEPROM data access on a PIC12F519
Will Reeve

Replies: 9
Views: 12719

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2012 1:32 pm   Subject: EEPROM data access on a PIC12F519
Here is my code:

#byte FSR = 0x4
#bit BANK = FSR.5
#byte EECON = 0x1
#bit FREE = EECON.4
#bit WREN = EECON.2
#bit WR = EECON.1
#bit RD = EECON.0
#byte EEDATA = 0x5
#byte EEADR = 0x6

void ...
  Topic: EEPROM data access on a PIC12F519
Will Reeve

Replies: 9
Views: 12719

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2012 1:09 pm   Subject: EEPROM data access on a PIC12F519
Hi, from what I can see from the datasheet the 12F519 has real(ish) EEPROM which you need to erase a whole 8byte row before you can write a single byte. I think you are referring to the non-flash part ...
  Topic: EEPROM data access on a PIC12F519
Will Reeve

Replies: 9
Views: 12719

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2012 11:11 am   Subject: EEPROM data access on a PIC12F519
Figured it out; ccs compiler bug, will post a workaround this evening so no-one else drops in the hole!
  Topic: EEPROM data access on a PIC12F519
Will Reeve

Replies: 9
Views: 12719

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2012 10:12 am   Subject: EEPROM data access on a PIC12F519
Thanks, but I get:

Error 100 "C:\Program Files\PICC\drivers\2401.c" Line 46(5,49): USE parameter value is out of range Not a number: (54

The #use i2c doesn't seem to like those pins?
  Topic: EEPROM data access on a PIC12F519
Will Reeve

Replies: 9
Views: 12719

PostForum: General CCS C Discussion   Posted: Fri Jan 27, 2012 8:13 am   Subject: EEPROM data access on a PIC12F519
Help: Can't get EEPROM to work on a PIC12F519, driving me crazy! Here is a simple test program:

CCS PCB C Compiler, Version 4.129, 61851 27-Jan-12 14:01

Filename ...
  Topic: #bit testing
Will Reeve

Replies: 4
Views: 6522

PostForum: General CCS C Discussion   Posted: Fri Nov 11, 2011 11:17 am   Subject: #bit testing
Hi,
Wondering why I can't do this:

#byte CCP6CON = 0xF71
#bit CCP6IF = PIR4.1
#bit CCP6M0 = CCP6CON.0

and in my code:

if (CCP6MO++) {
rise3 = CCP_6;
} else ...
  Topic: Redirectable PINs and UART
Will Reeve

Replies: 2
Views: 4887

PostForum: General CCS C Discussion   Posted: Wed Jun 15, 2011 12:41 pm   Subject: Redirectable PINs and UART
Thinking out loud! Can you redirect the pins of a UART on PICs such as the PIC18F27J13 in software? I.E. Can you change the function of the pins on the fly in code, it would be nice to redirect the TX ...
  Topic: rs232 at baud 2 to 5
Will Reeve

Replies: 3
Views: 5238

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 7:31 am   Subject: rs232 at baud 2 to 5
Thanks. That looks a great foundation. Yes slow rate, slow transmission process! I wish I could tell you more!
Keep well,
Will
  Topic: rs232 at baud 2 to 5
Will Reeve

Replies: 3
Views: 5238

PostForum: General CCS C Discussion   Posted: Fri Jun 10, 2011 1:23 am   Subject: rs232 at baud 2 to 5
Hi,
Wondering if anyone has any code for a software uart running at a baud rate of 2 to 5. It seems the CCS in-built functions only work at 6 and above! I only need transmit. Or is there a work aroun ...
  Topic: sharing pic programming pins
Will Reeve

Replies: 1
Views: 4902

PostForum: General CCS C Discussion   Posted: Mon May 23, 2011 9:53 am   Subject: sharing pic programming pins
Stuck! I am trying out a PIC18F20K80 and it's PGD and PGC are shared with TX2 and RX2 which I need to use! I've shared PGD and PGC with buttons before (not a problem as they are usually contact closur ...
  Topic: using modbus with EEPROM
Will Reeve

Replies: 11
Views: 18026

PostForum: General CCS C Discussion   Posted: Wed May 18, 2011 1:26 pm   Subject: using modbus with EEPROM
I've actually designed exactly what you want! If you are interested in a drop in working solution let me know and I will ask my client about supply for you. It's fully electrically isolated on each RS ...
  Topic: #bit into an array?
Will Reeve

Replies: 4
Views: 5832

PostForum: General CCS C Discussion   Posted: Wed May 18, 2011 12:52 pm   Subject: #bit into an array?
Thanks, looks a very neat solution to me. I was using up precious code to do this with variables.
 
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group