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

Output_toggle()

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



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

Output_toggle()
PostPosted: Mon Sep 08, 2003 6:49 am     Reply with quote

Anyone use output_toggle() yet? Is it the same as output_high() (as noted in readme.txt), or will it toggle the output pin (low to hi or hi to low).
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 08, 2003 7:00 am     Reply with quote

There is a BTG (Bit Toggle f) asm instruction on the PIC18's. CCS probably is making use of this for the PCH compiler. My guess is that if you are using the other compilers then there is first a check and then the either and output_low() or output_high() is executed.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

The ultimate answer...
PostPosted: Mon Sep 08, 2003 7:00 am     Reply with quote

The ultimate answer is to write a trivial program using the function and look at the list file to see what it tells the processor to do. If you find something unexpected please let us know.
_________________
The search for better is endless. Instead simply find very good and get the job done.
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