| поискавой системы для электроныых деталей |
|
SX28AC/DP датащи(PDF) 36 Page - Parallax Inc |
|
|
|||||||||||||||||||||||||||||
SX28AC/DP датащи(HTML) 36 Page - Parallax Inc |
|
36 / 51 page ![]() Parallax SX20AC/SX28AC www.parallax.com © Parallax Inc. Page 36 of 51 Rev 1.6 11/20/2006 Table 16-2: Native SX Instruction Set: Arithmetic and Shift Operations Mnemonic, Operands Description Clock Cycles (Slow Mode) Clock Cycles (Turbo) Opcode Bits Affected ADD fr,W Add W to fr (fr = fr + W); carry bit is added if CF bit in FUSEX register is cleared to 0 4 1 0001 111f ffff C, DC, Z ADD W,fr Add fr to W (W = W +fr); carry bit is added if CF bit in FUSEX register is cleared to 0 4 1 0001 110f ffff C, DC, Z CLR fr Clear fr (fr = 0) 4 1 0000 011f ffff Z CLR W Clear W (W = 0) 4 1 0000 0100 0000 Z CLR !WDT Clear Watchdog Timer, clear prescaler if assigned to the Watchdog (TO = 1, PD = 1) 4 1 0000 0000 0100 TO, PD DEC fr Decrement fr (fr = fr – 1) 4 1 0000 111f ffff Z DECSZ fr Decrement fr and Skip if Zero (fr = fr – 1 and skip next instruction if result is zero) 4 or 8 (skip) 1 or 2 (skip) 0010 111f ffff none INC fr Increment fr (fr = fr +1) 4 1 0010 101f ffff Z INCSZ fr Increment fr and Skip if Zero (fr = fr +1 and skip next instruction if result is zero) 4 or 8 (skip) 1 or 2 (skip) 0011 111f ffff none RL fr Rotate fr Left through Carry (fr = << fr) 4 1 0011 011f ffff C RR fr Rotate fr Right through Carry (fr = >> fr) 4 1 0011 001f ffff C SUB fr,W Subtract W from fr (fr = fr – W); complement of the carry bit is subtracted if CF bit in FUSEX register is cleared to 0 4 1 0000 101f ffff C, DC, Z SWAP fr Swap high/low nibbles so fr xy = yx (fr = <> fr) 4 1 0011 101f ffff none Table 16-3: Native SX Instruction Set: Bitwise Operations Mnemonic, Operands Description Clock Cycles (Slow Mode) Clock Cycles (Turbo) Opcode Bits Affected CLRB fr.bit Clear Bit in fr (fr.bit = 0) 4 1 0100 bbbf ffff none SB fr.bit Test Bit in fr and Skip if set (test fr.bit and skip next instruction if bit is 1) 4 or 8 (skip) 1 or 2 (skip) 0111 bbbf ffff none SETB fr.bit Set Bit in fr (fr.bit = 1) 4 1 0101 bbbf ffff none SNB fr.bit Test Bit in fr and Skip if clear ( test fr.bit and skip next instruction if bit is 0) 4 or 8 (skip) 1 or 2 (skip) 0110 bbbf ffff none |
|
ссылки 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 |