Author: John Leung
Company: TechToys Company
Web: www.TechToys.com.hk
Date: 18th Feb 2008


/*
******************************************************************************
* Date: 18th Feb 2008
* This program demonstrates backlight intensity control by PWM signal
* via a p-channel MOSFET. There are two functions involved:
* pwmSetBrightness(char intensity)
* pwmInit(void)
* One may refer to the folder "PWM" for pwm.c and pwm.h files for comment.
* Please note that this example is valid only for version 2C of TY320T-240320-BO.
* Gate of the p-channel MOSFET IRLML6401 is connected to OC2/RD1 pin of the 
* microcontroller. One may use a DSO to probe RD1 pin to appreciate the 
* relationship between Duty Cycle & visual effect.
* Previous versions uses TI's TPS60230 DC-DC LED driver for backlight thus
* it requires some modification to polarity of the PWM signal for a precise
* brightness control.
******************************************************************************
*/