lm8328tmx National Semiconductor Corporation, lm8328tmx Datasheet - Page 18
![no-image](/images/no-image-200.jpg)
lm8328tmx
Manufacturer Part Number
lm8328tmx
Description
Mobile I/o Companion Supporting Keyscan, I/o Expansion Pwm, And Access.bus Host Interface
Manufacturer
National Semiconductor Corporation
Datasheet
1.LM8328TMX.pdf
(58 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM8328TMX
Manufacturer:
NS/国半
Quantity:
20 000
Company:
Part Number:
lm8328tmx/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
www.national.com
12.2.5 TRIGGER COMMAND
Triggers are used to synchronize operations between PWM
channels. A TRIGGER command that sends a trigger takes
sixteen 32.768 kHz clock cycles, and a command that waits
for a trigger takes at least sixteen 32.768 kHz clock cycles.
A TRIGGER command that waits for a trigger (or triggers) will
stall script execution until the trigger conditions are satisfied.
12.2.6 END COMMAND
The END command terminates script execution. It will only
assert an interrupt to the host if the INT bit is set to “1”.
When the END command is executed, the PWM output will
be set to the level defined by PWMCFG.PWMPOL for this
channel. Also, the script counter is reset back to the beginning
of the script command buffer.
15
1
STEPNUMBER
15
LOOPCOUNT
1
Bit or Field
SENDTRIGGER
WAITTRIGGER
ADDR
Field
14
INT
1
14
Field
1
13
0
13
1
TABLE 14. Description of Bit and Building Fields of the BRANCH Command
TABLE 18. Description of Bit and Building Fields of the END Command
Value
12
1 - 63
0 - 63
12
1
0
0
1
TABLE 15. TRIGGER Command Bit and Building Fields
11
Value
TABLE 17. END Command Bit and Building Fields
TABLE 16. Description of Bit and Building Fields
Loop until a STOP PWM SCRIPT command is issued by the host.
Number of loops to perform.
Absolute addressing
Relative addressing
Depending on ADDR:
ADDR=0: Addr to jump to
ADDR=1: Number of backward steps
0
1
000xx1
000x1x
0001xx
000xx1
000x1x
0001xx
Value
INT
WAITTRIGGER
11
10
No interrupt will be sent.
Set TIMRIS.CDIRQ for this PWM channel to notify that program has ended.
9
10
Wait for trigger from channel 0
Wait for trigger from channel 1
Wait for trigger from channel 2
Send trigger to channel 0
Send trigger to channel 1
Send trigger to channel 2
8
9
18
8
On trigger it will clear the trigger(s) and continue to the next
command.
When a trigger is sent, it is stored by the receiving channel
and can only be cleared when the receiving channel executes
a TRIGGER command that waits for the trigger.
Please note: If a PWM channel is waiting for the trigger (last
executed command was "TRIGGER") and the script execu-
tion is halted then the "END" command can’t be executed
because the previous command is still pending. This is an
exception - in this case the IRQ signal will not be asserted.
7
7
Description
6
6
Description
Description
SENDTRIGGER
5
5
0
4
4
3
3
2
1
2
1
0
0
0