| Electronic Components Datasheet Search |
|
FS98O02B-PCE Datasheet(PDF) 49 Page - Fortune Semiconductor Corp. |
|
|
|||||||||||||||||||||||||||||
FS98O02B-PCE Datasheet(HTML) 49 Page - Fortune Semiconductor Corp. |
|
49 / 50 page ![]() FS98O02 Rev.1.5 49/50 SUBWFC Subtract W and Carry from f Syntax SUBWFC f, d 0 ≤ f ≤ FFh d ∈ [0,1] Operation [Destination] ← [f] – [W] –C ‧ 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: SUBWFC OPERAND, 1 Before instruction: OPERAND = 33h, W = 01h C = 1 After instruction: OPERAND = 32h, C = 1, Z = 0 Example 2: SUBWFC OPERAND, 1 Before instruction: OPERAND = 02h, W = 01h C = 0 After instruction: OPERAND = 00h, C = 1, Z = 1 Example 3: SUBWFC OPERAND, 1 Before instruction: OPERAND = 04h, W = 05h C = 0 After instruction: OPERAND = FEh, C = 0, Z = 0 XORLW Exclusive OR literal with W Syntax XORLW k 0 ≤ k ≤ FFh Operation [W] ← [W] XOR k Flag Affected Z Description Exclusive OR the content of the W register and the eight-bit literal "k". The result is stored in the W register. Cycle 1 Example: XORLW 5Fh Before instruction: W = ACh After instruction: W = F3h XORWF Exclusive OR W and f Syntax XORWF f, d 0 ≤ f ≤ FFh d ∈ [0,1] Operation [Destination] ← [W] XOR [f] Flag Affected Z Description Exclusive OR the content of the W register and [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: XORWF OPERAND, 1 Before instruction: OPERAND = 5Fh, W = ACh After instruction: OPERAND = F3h TBLP Exclusive Programmer EPROM Syntax TBLP k k = 32 , that is const Operation [EADRH,EADRL] ←EDAH,WORK Flag Affected None Description Exclusive Programmer EPROM. EPROM Address is in EADRH and EADRL. Programmer Data is in EDAH and WORK. Cycle (k*2)+1 Example: TBLP k k is const For FS98O01 Chip , k = 32 MOVP Exclusive Read EPROM Data Syntax MOVP k k is increment EPROM Address value. Operation [EADRH,EADRL] EDAH,WORK Flag Affected None Description Exclusive Read EPROM data. EPROM Address is in EADRH and EADRL. MSB and LSB After MOVP Data Put in EDAH and WORK. MSB and LSB Cycle 2 Example: MOVP k After instruction: EPROM Data put in EDAH (MSB) and WORK (LSB) EPROM Address increment k (EADRH,EADRL)+k |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |