Examples for EasyKit XC878 
V1.0, April 2008
(c) Infineon Technologies AG


Description of Software Examples of CC6 Module

###################################################################

1.	Single Channel constant PWM on T13

2.      Single Channel variable PWM on T13 with CTRAP
	- interrupt routine for CTRAP
	- interrupt routine for T13PM with update of duty cycle
	- main routine forces CTRAP by pulldown on P5.5

3. 	Single Shot Mode with external start of T13
	- external run (T13HR) from P1.7 falling edge
	- interrupt service routine for T13PM
	- main routine forces T13HR by pulldown on P1.7

4. 	Synchronize T13 on T12
	- T12 in center aligned mode, PWM on ch0, 50%
	- interrupt service routine for T12PM
	- single shot mode T13, synchronize and start with T12CMch0 upcount
	- duty cycle for T13 10%, output on P3.7
        - interrupt service routine for T13PM

5. 	3 channel PWM with deadtime on T12
	- 3ch/6outputs with inverted output level and deadtime 
	- for driving stage with highside & lowside active high
	- T12 in center aligned mode
	- interrupt service routine for T12PM

6. 	3 channel sinusoidal PWM on T12 with CTRAP
	- update duty cycles with every T12PM interrupt
	- simple sinusoidal table >> see excel sheet SineTab.xls
	- force CTRAP by pulldown on P5.5
	- leave trapstate synchronized to T12period

7. 	Hysteresis like Mode with 3 channel sinusoidal PWM on T12
	- update duty cycles with every T12PM interrupt
	- simple sinusoidal table >> see excel sheet SineTab.xls
	- force Hysteresis Control in main.c by toggling
         P1.5	channel 0 to inactive  
         P1.6	channel 1 to inactive  
         P1.7	channel 2 to inactive 
         P5.5	CTRAP  all channels to inactive

8.	Multichannel mode T12/T13 and MCMOUTx
	- T13 modulation on CC6x/Cout6x (~20kHz) with variable duty cycle
	- T12 periodically switches to next multichannel state with var. period(~0.5-1kHz)
	- switching transfer on T12PM
	- switching synchronization on T13ZM 
	- CTRAP enabled for all CC6 pins
	- interrupt for STR and CTRAP 

9. 	Double register capture with T12
	- capture on rising edge on pin CC60 to CC60R
	- capture on falling edge on pin CC60 to CC60SR

10.	Hallpattern and Hallogic example
	- Hall-Logic without timer involved
 	- Delay Bypass
 	- manual porttoggling in CHE ISR
 	- CHE / WHE interrupt generation

11.	Hallsensor Mode 
	- complete statemachine for hallsensor mode
	- emultion of hallpattern using pullups on P2 in mainloop or uVision-simulator
	- T13modulation 
	- capture on T12Ch0, phase shift on T12ch1, timeout on T12ch2
	- noise filter thru DTM
	- Hallpattern on P5.3/4/5
	- PWMpattern  on P3.0-6
	- interrupts for CTRAP, T12CH2, WHE, CHE, (STR) 

12. 	Trigger ADC by T13 compare match
        - Analog Input Channel 4-7 are converted sequentially
	- ADC of each channel can be displayed by LEDs associated with Port3  


  
###################################################################


