English
Language : 

TMD4903 Datasheet, PDF (72/86 Pages) ams AG – Color and Proximity Sensor Module with mobeam
TMD4903 − ApplicationInformation
Figure 83:
Practical Example
Example
1. Carrier Frequency: 38kHz (TCAR = 26us)
2. Duty Cycle = 25%
3. Non-repeat count=5 (LEDON-LEDOFF)
334-177, 22-22, 22-60, 60-22, 22-1541
4. Repeat count=2 (LEDON-LEDOFF)
334-88 22-3694
Run 2 times
5. Repeat compete pattern 3 times.
6. Delay 100us between complete patterns.
T_INDEX
0
1
2
3
4
5
6
Time Words Table
T_DATA
I2C Address, Data
334
0x01, 0x01 0x00, 0x4E
177
0x03, 0x00 0x02, 0xB1
22
0x05, 0x00 0x04, 0x16
60
0x07, 0x00 0x06, 0x3C
1541
0x09, 0x06 0x08, 0x05
88
0x0B, 0x00 0x0A, 0x58
3694
0x0D, 0x0E 0x0C, 0x6E
Pattern Table
ADDRESS T_DATA
0
0x01
1
0x22
2
0x23
3
0x32
4
0x24
5
0x05
6
0x26
7
0xFE
8
0x05
9
0xFF
MSB points to index 0.
Index 0 data is 334. LED
will be on for 334 X TCAR
LSB points to index 2.
Index 2 data is 22. LED
will be off for 22 X TCAR
Byte following “0xFE”
becomes the starting
address of the repeated
pattern.
STOP
Carrier Frequency:
IBT = 0x68 (26us/250ns)
LEDON for 572us
LEDOFF for 96ms
Duty Cycle:
ICONFIG2 = 0x02
“Repeated sub-pattern” Repeat count=2:
ISNL = 0x01
To run two
times, must
repeat once.
“Complete sub-pattern” Repeat count=3:
IPNL = 0x02
Delay 100us between complete patterns:
IPOFF = 0x0A (100us/10us)
START:
Write a 0x02 to ISTART.
To run
complete
pattern three
times, must
repeat twice.
IDLE
START
LED ON for 344 TCAR
LED OFF for 177 TCAR
LED ON for 22 TCAR
LED OFF for 22 TCAR
LED ON for 22 TCAR
LED OFF for 60 TCAR
LED ON for 60 TCAR
LED OFF for 22 TCAR
LED ON for 22 TCAR
LED OFF for 1541 TCAR
LED ON for 334 TCAR
LED OFF for 88 TCAR
LED ON for 22 TCAR
LED OFF for 3694 TCAR
LED ON for 334 TCAR
LED OFF for 88 TCAR
LED ON for 22 TCAR
LED OFF for 3694 TCAR
LED ON for 334 TCAR
LED OFF for 88 TCAR
LED ON for 22 TCAR
LED OFF for 3694 TCAR
Delay 100us
Pattern
Delay 100us
Pattern
Delay 100us
IDLE
Output:
Pause
Pause
Pause
Practical Example: Device registers and RAM are loaded with values to generate a real remote control waveform.
Page 72
Document Feedback
ams Datasheet
[v1-12] 2015-May-14