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
Posted: Mon Sep 08, 2003 7:00 am
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
The ultimate answer...
Posted: Mon Sep 08, 2003 7:00 am
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.
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