Electronic Components Datasheet Search
  English  ▼

X  

LM8322 Datasheet(PDF) 23 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
Part # LM8322
Description  Mobile I/O Companion Supporting Key-Scan, I/O Expansion, PWM, and ACCESS.bus Host Interface
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NSC [National Semiconductor (TI)]
Direct Link  http://www.national.com
Logo NSC - National Semiconductor (TI)

LM8322 Datasheet(HTML) 23 Page - National Semiconductor (TI)

Back Button LM8322 Datasheet HTML 19Page - National Semiconductor (TI) LM8322 Datasheet HTML 20Page - National Semiconductor (TI) LM8322 Datasheet HTML 21Page - National Semiconductor (TI) LM8322 Datasheet HTML 22Page - National Semiconductor (TI) LM8322 Datasheet HTML 23Page - National Semiconductor (TI) LM8322 Datasheet HTML 24Page - National Semiconductor (TI) LM8322 Datasheet HTML 25Page - National Semiconductor (TI) LM8322 Datasheet HTML 26Page - National Semiconductor (TI) LM8322 Datasheet HTML 27Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 42 page
background image
14.11 SELECTABLE SCRIPT EXAMPLE
Multiple scripts can be placed in a single buffer. The script
which is executed is selected by the address in the parameter
to the PWM_START command (0x96).
Script
Command
Address
PWM_WRITE
Parameter 1
PWM_WRITE
Parameter 2
PWM_WRITE
Parameter 3
Script
Command
Description
0x00
Script 1
0x01
0x40
0x00
Set PWM_0 to 0% duty cycle
0x01
0x05
0x0F
0x33
Ramp up 51 steps
0x02
0x09
0xC0
0x00
Keep channel at 20% duty cycle
0x03
Script 2
0x0D
0x40
0xFF
Set PWM_0 to 100% duty cycle
0x04
0x11
0x0F
0xD5
Ramp down 85 steps
0x05
0x15
0xC0
0x00
Keep channel at 66.6% duty cycle
0x06
Script 3
0x19
0x40
0x00
Set PWM_0 to 0% duty cycle
0x07
0x1D
0x07
0x7E
Ramp up 126 steps
0x08
0x21
0x07
0x7E
Ramp up 126 steps
0x09
0x25
0x07
0xFE
Ramp down 126 steps
0x0A
0x29
0x07
0xFE
Ramp down 126 steps
0x0B
0x2D
0xA5
0x07
Loop ten times to script address 0x07
0x0C
Script 4
0x31
0xC8
0x00
Switch PWM_0 off (script 3 automatically
enters here)
0x0D
Script 5
0x35
0x40
0x00
Set PWM_0 to 0% duty cycle
0x0E
0x39
0x07
0x25
Ramp up 37 steps
0x0F
0x3D
0xC0
0x00
Keep channel at 14.5% duty cycle
0x10
Script 6
0x41
0x40
0x00
Set PWM_0 to 0% duty cycle
0x11
(Alternates
between 25%
and 75% duty
cycle)
0x45
0x01
0x40
Ramp up 64 steps
0x12
0x49
0x3F
0x7E
Ramp up 126 steps
0x13
0x4D
0x3F
0xFE
Ramp down 126 steps
0x14
0x51
0xA0
0x12
Always branch to script address 0x12
0x15
Script 7
.....
0x3B
To set a fixed duty cycle on a PWM channel requires 3 steps
(see script 1 for duty cycles from 0% to 49% and script 2 for
duty cycles from 51% to 100%).
To keep a PWM channel active providing a fixed duty cycle
on its output, the script must terminate with the END com-
mand leaving the RESET bit clear. To switch this channel off,
the host must send another PWM_START command (0x96
followed by the parameter bytes) triggering the single com-
mand described in script 4. This END command will set the
RESET bit and the dedicated PWM output will be disabled.
Script 3 will automatically enter into this command when the
10 loops of ramping up and down are executed.
Script 7 can be finished by two commands:
•
PWM_STOP command with parameter 0x01
•
PWM_START command with parameter 0x31 (start
PWM_0 from address 0x0C to run script 4)
The script address is the physical address to be used from
BRANCH instructions inside the script file buffer. The param-
eter 1 byte contains the same address with the 2 channel bits
appended and will be associated with the PWM_START com-
mand.
23
www.national.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com