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 support@ccsinfo.com

How can I work with PIC12f683?

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



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

How can I work with PIC12f683?
PostPosted: Sat Jul 18, 2009 7:15 am     Reply with quote

How can I adjust input and output of this PIC12F683?(GPIO)
Also I want to control The PWM unit. Could you send me sample code?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jul 18, 2009 2:25 pm     Reply with quote

Here is a PWM example for the 12F683:
http://www.ccsinfo.com/forum/viewtopic.php?t=39468&start=11
Guest








PostPosted: Sun Jul 19, 2009 10:34 am     Reply with quote

ok thank you I understood my problem. Working with PIC which has GPIO port must describe this port as:
Code:
set_tris_a(XX);
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 10:47 am     Reply with quote

You don't have to do that. You can let the compiler set the TRIS for you.
It will set the TRIS automatically if you use the CCS functions, such as
output_low(), output_high(), etc. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=38261
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