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

Brain teaser in the March 2015 CCS PCM User manual

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



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

Brain teaser in the March 2015 CCS PCM User manual
PostPosted: Thu May 07, 2015 5:51 pm     Reply with quote

I had to read the syntax guidance several times to realize what i was seeing in the wild land of transposed characters on the Zero Cross Detector
rollup support in the compiler.

Hilarious if not so unfortunate
Confused
Quote:

setup_zdc( )

Syntax: setup_zdc(mode);

Parameters: mode- the setup of the ZDC module. The options for setting up the module include:
 ZCD_ENABLED
 ZCD_DISABLED
 ZCD_INVERTED
 ZCD_INT_L_TO_H
 ZCD_INT_H_TO_L
Returns: Nothing
Function: To set-up the Zero_Cross Detection (ZCD) module.
Availability: All devices with a ZCD module.
Examples: setup_zcd(ZCD_ENABLE|ZCD_INT_H_TO_L);
Example Files: None

Also See: zcd_status()
----------------
and this:
----------------
zdc_status( )

Syntax: value=zcd_status()


Parameters: None
Returns: value - the status of the ZCD module. The following defines are made in the device's
header file and are as follows:
 ZCD_IS_SINKING
 ZCD_IS_SOURCING
Function: To determine if the Zero-Cross Detection (ZCD) module is currently sinking or sourcing current.
If the ZCD module is setup to have the output polarity inverted, the value return will be reversed.
Availability: All devices with a ZCD module.
Examples: value=zcd_status():

Also See: setup_zcd()
Confused
temtronic



Joined: 01 Jul 2010
Posts: 9220
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu May 07, 2015 7:40 pm     Reply with quote

hmm.. seems 'normal' to me.....
then again I've got a half dead left ring finger so typing has been a 'challenge' so I kinda like 3 letter variables.
ZCD is a lot easier than Zero_cross_detector

I can see how zdc znd zcd can be typed !!

Jay
yeah, I spell my name wrong too soemtimes.
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