itron SMART TFT Hardware   General Overview + Connector Pin Assignment  
             
Interfaces Memory Accessories
RS232 SD Card Audio
RS485 NAND CANBUS
Async EEPROM Rotary Encoder
SPI USB Host
I2C Design Ethernet
USB Mounting SD Card
External Key + I/O RFI Gaskets
ADC ESD Cables
  PWM Temperature Battery Holder
  BUZZ Precautions  


pwm controller     PWM1,PWM2,PWM3 operational     - PWM3 added v49.04
 setup(pwm)
  {
   active=123;                           //to enable the required combination of PWM's use 1,2,3 and N=none eg 1, 12, 13, 23, 3
       or
   active1=Y/N;   active2=Y/N;  active3=Y/N;

   pol1=H;                                //polarity = High or Low on first phase of PWM1
   pol2=H;                                //polarity = High or Low on first phase of PWM2
   pol3=H;
   cycle1=“200”;                        //cycle time in microseconds of PWM1. Range 160Hz to 1MHz
   cycle2 = “300”;                      //cycle time in microseconds of PWM2. Range 160Hz to 1MHz
   cycle3 = “300”;                      //cycle time in microseconds of PWM3. Range 160Hz to 1MHz
  
duty1= “44”;                         //value of first phase as a  percentage for PWM1 = 1-99
  
duty2= “56”;                         //value of first phase as a  percentage for PWM2 = 1-99
   duty3= “56”;                         //value of first phase as a  percentage for PWM3 = 1-99
   delay= “50”;                         //delay between first phase of PWM1 and first phase of PWM2 in microseconds
   }

PWM1 is pin 5 on CN4 and PWM2 is pin 6 on CN4.  PWM3 is available on CN7 pin 14.
Duty cycle values <1 are forced to 1 and values >99 are forced to 99 to prevent a DC condition.
The parameter values can be adjusted using the LOAD command with a dot (.) operator....LOAD(pwm.cycle1,350);
or using an adjustable variable as in LOAD(pwm.cycle1,cycvar);


 

   
Update Information

 Version

 Title

Date  

 Details

49.58

 PWM

07 Sep 15 

Show

* Default duty cycle is now 0%
* 0% and 100% duty are now handled correctly

00.01.00

 PWM (0-7) functionality added

13 Feb 15 

Show

---

49.42

 PWM / Backlight Conflict

06 Sep 13 

Show

* Fixed a problem with conflict with backlight channel. Caused a problem if BLED was set or error screen (as BLED is set to 100%)

49.37

 PWM - Higher Resolution using Float Parameters

10 Jun 13 

Show

PWM parameters cycle1, duty1, cycle2, duty2, cycle2, duty3 now accept float parameters giving greater PWM resolution.

49.37

 PWM - Extra PWM channel added - PWM4

10 Jun 13 

Show

Added support for PWM4 (default use is backlight, link options on new PCB to connect to K07)

49.32

 PWM - Added 'prescale' setup parameter.

14 Feb 13 

Show

* Added 'prescale' setup parameter. Valid range is 1 to 10, default is 1. This divides the main clock to allow for lower frequency ranges.

49.03

 PWM - Added third PWM channel (on K09 port).

01 Jun 12 

Show

Added third PWM channel (on K09 port).
* Setup 'active' parameter can be either 'active = 1/2/12/123/13...' or active1 = Y/N, active2 = Y/N, active3 = Y/N.

44.00

 PWM - Duty values of < 1 are forced to 1 and values > 99 forced to 99 to avoid runtime error.

20 May 11 

Show

Duty values of < 1 are forced to 1 and values > 99 forced to 99 to avoid
runtime error

32.00

 PWM - PWM ranges increased to 160Hz-1MHz.

14 Oct 10 

Show

PWM ranges increased to 160Hz-1MHz.

23.00

 PWM - PWM implemented with period of 1us to 1ms.

17 Aug 10 

Show

PWM implemented with period of 1us to 1ms
(further work required to get it up to 10ms).