Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
Brain teaser in the March 2015 CCS PCM User manual
Posted: Thu May 07, 2015 5:51 pm
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
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():
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
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