| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
FS98O02B-PCE bảng dữ liệu(PDF) 48 Page - Fortune Semiconductor Corp. |
|
|
|||||||||||||||||||||||||||||
FS98O02B-PCE bảng dữ liệu(HTML) 48 Page - Fortune Semiconductor Corp. |
|
48 / 50 page ![]() FS98O02 Rev.1.5 48/50 RRF Rotate right [f] through Carry Syntax RRF f, d 0 ≤ f ≤ FFh d ∈ [0,1] Operation [Destination<n-1>] ← [f<n>] [Destination<7>] ← C C ← [f<7>] Flag Affected C Description [f] is rotated one bit to the right through the Carry bit. If d is 0, the result is stored in the W register. If d is 1, the result is stored back in [f]. Cycle 1 Example: RRF OPERAND, 0 Before instruction: C = 0 OPERAND = 95h After instruction: C = 1 W = 4Ah, OPERAND = 95h SLEEP Oscillator stop Syntax SLEEP Operation CPU oscillator is stopped Flag Affected PD Description CPU oscillator is stopped. CPU can be waked up by external interrupt sources. Cycle 1 Example: SLEEP After instruction: PD = 1 TO = 0 If WDT causes wake up, TO = 1 Please make sure all interrupt flags are cleared before running SLEEP; "NOP" command must follow HALT and SLEEP commands. SUBLW Subtract W from literal Syntax SUBLW k 0 ≤ k ≤ FFh Operation [W] ← k – [W] Flag Affected C, DC, Z Description Subtract the content of the W register from the eight-bit literal "k". The result is stored in the W register. Cycle 1 Example 1: SUBLW 02H Before instruction: W = 01h After instruction: W = 01h C = 1 Z = 0 Example 2: SUBLW 02H Before instruction: W = 02h After instruction: W = 00h C = 1 Z = 1 Example 3: SUBLW 02H Before instruction: W = 03h After instruction: W = FFh C = 0 Z = 0 SUBWF Subtract W from f Syntax SUBWF f, d 0 ≤ f ≤ FFh d ∈ [0,1] Operation [Destination] ← [f] – [W] Flag Affected C, DC, Z Description Subtract the content of the W register from [f]. If d is 0, the result is stored in the W register. If d is 1, the result is stored back in [f], Cycle 1 Example 1: SUBWF OPERAND, 1 Before instruction: OPERAND = 33h, W = 01h After instruction: OPERAND = 32h C = 1 Z = 0 Example 2: SUBWF OPERAND, 1 Before instruction: OPERAND = 01h, W = 01h After instruction: OPERAND = 00h C = 1 Z = 1 Example 3: SUBWF OPERAND, 1 Before instruction: OPERAND = 04h, W = 05h After instruction: OPERAND = FFh C = 0 Z = 0 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |