| поискавой системы для электроныых деталей |
|
LP5569RTWR датащи(PDF) 29 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
LP5569RTWR датащи(HTML) 29 Page - Texas Instruments |
|
29 / 86 page ![]() 29 LP5569 www.ti.com SNVSAP8 – JULY 2017 Product Folder Links: LP5569 Submit Documentation Feedback Copyright © 2017, Texas Instruments Incorporated Table 5. LED Mapping Instructions (continued) load_end Define the last address of the LED mapping table in SRAM. Last address at 03h: load_end 03h ; Last address at 03h map_sel x Connect one LED driver to the LED engine. map_sel 0 ; Select LED0 as output map_clr x Clear the LED driver mappings in an engine map_clr map_next x Select the next address in the LED mapping table and set that address active. map_next map_prev x Select the previous address in the LED mapping table and set that address active. map_prev load_next Move the mapping-table pointer to the next address. load_next load_prev Move the mapping-table pointer to the previous address. load_prev load_addr Set the mapping-table pointer to assigned address. load_addr 02h ; Set pointer to 02h map_addr x Set the mapping-table pointer to assigned address and set that address active. map_addr 02h ; Set mapping to 02h (1) This opcode is used with numerical operands. (2) This opcode is used with variables. (3) This is a new instruction, not available in LP5523 or LP55231 Table 6. Branch Instructions INSTRUCTION USAGE COMPILER EXAMPLE rst Reset program counter to zero. Reset branch(1) Branch to address. The number of loops can be set to a value or do an infinite loop. Do 20 loops to loop1 label: branch 20, loop1 branch(2) Branch to address. The loop count can be one of four variables A, B, C, or D. Do 20 loops to loop1 label: ld ra, 30 branch ra, loop1 int Send an interrupt to the host system by pulling the GPIO/TRIG/INT pin low. int end End program execution and reset the program counter to zero. Can also the set GPIO/TRIG/INT pin high and/or reset mapped LED PWM and engine LED mapping. End and reset LEDs: trigger Wait or send trigger. The trigger can be sent or received from an external pin or another engine. Wait for external trigger: trigger w{e} trig_clear(3) Clear pending triggers. trig_clear jne Jump if not equal. A != B Jump to loop1 if A != B: jne ra, rb, loop1 jl Jump if less. A < B Jump to loop1 if A < B : jl ra, rb, loop1 jge Jump if greater or equal. A ≥ B Jump to loop1 if A >= B: jge ra, rb, loop1 je Jump if equal. A = B Jump to loop1 if A = B: je ra, rb, loop1 (1) This opcode is used with numerical operands. (2) This opcode is used with variables. Table 7. Data Transfer and Arithmetic INSTRUCTION USAGE COMPILER EXAMPLE ld(1) Assign a value to a variable. Load value 33h to local variable A: ld ra, 33 add(1) Add the 8-bit value to the variable value. Add value 11h to local variable A: add ra, 11 add(2) Add the value of variable 3 (global variable D) to the value of variable 2 (global variable C) and store the result in variable 1 (local variable A). Add the value in rd to rc and store in ra: add ra, rc, rd sub(1) Subtract the 8-bit value from the variable value. Subtract value 11h from local variable A: sub ra, 11 sub(2) Subtract the value of variable 3 (global variable D) from the value of variable 2 (global variable C) and store the result in variable 1 (local variable A). Subtract the value in rd from rc and store in ra: sub ra, rc, rd |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |