Datasheet

Instruction Set
www.ti.com
smode Shift mode
Table 23-70. SHIFT MODE Encoding Format
smode P3 P2 P1 P0 Operation
LSB 1st on HETx / 0 into
OR0 0 0 0 0 Shift Out / Right
MSB
MSB 1st on HETx / 0 into
OL0 0 0 0 1 Shift Out / Left
LSB
LSB 1st on HETx / 1 into
OR1 0 0 1 0 Shift Out / Right
MSB
MSB 1st on HETx / 1 into
OL1 0 0 1 1 Shift Out / Left
LSB
LSB 1st on HETx / Z into
ORZ 0 1 0 0 Shift Out / Right
MSB
MSB 1st on HETx / Z into
OLZ 0 1 0 1 Shift Out / Left
LSB
IRM 1 0 0 0 Shift In / Right HETx into MSB
ILL 1 0 0 1 Shift In / Left HETx into LSB
IRZ 1 0 1 0 Shift In / Right HETx in MSB / LSB into Z
ILZ 1 0 1 1 Shift In / Left HETx in LSB / MSB into Z
cond Specifies the shift condition.
Table 23-71. SHIFT Condition Encoding
C6 C5 Shift condition
0 X Always
1 0 Rising edge of HET[0]
1 1 Falling edge of HET[0]
irq ON generates an interrupt if the Z flag is set. A value of OFF does not
generate an interrupt.
Default: OFF.
data Specifies the 25-bit value for the data field.
Execution
If (SHIFT condition == 0X)
OR (SHIFT condition == 10 AND HET[0] rising edge)
OR (SHIFT condition == 11 AND HET[0] falling edge)
{
If ([P3:P2] == 00)
{
If ((Immediate Data Field == all 0’s AND [P3:P0] == 000X)
OR (Immediate Data Field == all 1’s AND [P3:P0] == 001X))
{
Z = 1;
}
else
{
Z = 0;
}
1058
High-End Timer (N2HET) Module SPNU562May 2014
Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated