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

Capacitive sensing using the PIC16F727 - problems

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Heliophagus



Joined: 30 Oct 2008
Posts: 4

View user's profile Send private message

Capacitive sensing using the PIC16F727 - problems
PostPosted: Mon Nov 03, 2008 8:34 pm     Reply with quote

Greetings - a ccs c newbie here. I am attempting to get a PIC16F727 going with capacitive touch sensing using ccs c. Unfortunately running the wizard for this part crashes the wizard with a"list index out of bounds" error. Inserting the PIC16F727 include file manually shows (on viewing it) that it expects the chip to have a very sophisticated bridge-type PWM module, which it does not have, and unfortunately there is no mention of the all-important CPSCON0 and CPSCON1 registers, required for using capacitive touch sensing. So I suppose the question is, How do I write values to these registers directly, given that ccs c hasn't included them? The addresses are 108h and 109h, respectively. I tried searching the forum but couldn't find anything that addresses these issues (no pun intended). Thanks in advance for your patience, and for any constructive suggestions.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 03, 2008 11:18 pm     Reply with quote

Look at the #byte directive in the CCS manual. It will allow you to
access those registers directly in your code, the same as if they were
a variable.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group