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 11 matches
CCS Forum Index
Author Message
  Topic: Function Pointer as Function Argument Syntax
JH1987

Replies: 4
Views: 7935

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2011 5:57 pm   Subject: Good info
I am very impressed with the CCS forum. Its an excellent resource, especially if you're not a full-time PIC programmer but have to keep going back to it. I wasn't aware of the "ROM" change, ...
  Topic: Function Pointer as Function Argument Syntax
JH1987

Replies: 4
Views: 7935

PostForum: General CCS C Discussion   Posted: Tue Mar 08, 2011 5:15 pm   Subject: Thanks
Thanks for the clarification. Your syntax works perfectly. I was confused by reading The compiler does not permit pointers to functions so that the compiler can know at compile time the complete call ...
  Topic: Function Pointer as Function Argument Syntax
JH1987

Replies: 4
Views: 7935

PostForum: General CCS C Discussion   Posted: Tue Mar 08, 2011 2:32 pm   Subject: Function Pointer as Function Argument Syntax
Hey guys,

Simple question. I want to use a fn as an argument in another fn. So of course I'm using a function pointer. I looked up the C syntax just to make sure I wasn't crazy, and it matches what ...
  Topic: sensor networks
JH1987

Replies: 28
Views: 66403

PostForum: General CCS C Discussion   Posted: Wed Jan 26, 2011 10:12 pm   Subject: Sorry for miscommunication
and to do a read in the slave isr for address 0x80
No address of 0x80 is sent. The 0x80 (and other values) comes
from the CCS function i2c_isr_state(). It is described in the CCS manual:
http:// ...
  Topic: i2c_read() CCS Function Problem
JH1987

Replies: 3
Views: 11969

PostForum: General CCS C Discussion   Posted: Wed Jan 26, 2011 6:34 pm   Subject: Mediocre CCS Documentation
Thanks for the info. The NXP spec is helpful. I also just learned from skimming it that I2C reserves certain addresses.

But CCS really should have made it clear that only the master can NAK in thei ...
  Topic: i2c_read() CCS Function Problem
JH1987

Replies: 3
Views: 11969

PostForum: General CCS C Discussion   Posted: Wed Jan 26, 2011 1:42 pm   Subject: i2c_read() CCS Function Problem
PIC- 18F4520
Compiler- PCH 4.085

I was playing around with an example I2C master and slave provided by PCM Programmer using two PICs on different PCBs. The examples work great but I discovered a p ...
  Topic: sensor networks
JH1987

Replies: 28
Views: 66403

PostForum: General CCS C Discussion   Posted: Tue Jan 25, 2011 2:10 pm   Subject: Small Change to Your Example
Here is a simple i2c slave demo. The slave PIC reads the ADC value
every 500 ms and saves it in a global variable. This emulates a sensor.
The master PIC reads the ADC value from the slave. The ...
  Topic: Programming PIC without erasing EEPROM
JH1987

Replies: 11
Views: 91877

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Mon Jan 24, 2011 10:15 am   Subject: Bulk Erase
Hey Andrew,

I actually did see the sentence "A Bulk Erase is the only way to reprogram
code-protect bits from an ON state to an
OFF state."

But since the bulk erase operation is co ...
  Topic: Programming PIC without erasing EEPROM
JH1987

Replies: 11
Views: 91877

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Sun Jan 23, 2011 11:36 am   Subject: Thanks for getting back to me
What you want to do is theoretically possible, but not with your current hardware (programmer) and software.

Microchip have a relevant programming specification document:

http://ww1.microchip.co ...
  Topic: Programming PIC without erasing EEPROM
JH1987

Replies: 11
Views: 91877

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Sat Jan 22, 2011 1:41 pm   Subject: Doesn't Seem Possible with CPD
It's very easy to program a PIC chip without touching the EEPROM if you use a pickit 2 or 3 with their software. So that's a possibility if you have no other way to do it. Pickit2 is pretty cheap.

...
  Topic: Programming PIC without erasing EEPROM
JH1987

Replies: 11
Views: 91877

PostForum: CCS ICD / Mach X / Load-n-Go   Posted: Sat Jan 22, 2011 12:58 pm   Subject: Can't Preserve Data EEPROM with PickIt 2
It's very easy to program a PIC chip without touching the EEPROM if you use a pickit 2 or 3 with their software. So that's a possibility if you have no other way to do it. Pickit2 is pretty cheap.

...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group