Download PICmicro microcontroller pocket reference by Myke Predko PDF

By Myke Predko

Designed to enrich Programming & Customizing the PICMICRO, this publication incorporates a minimal of verbiage and serves as a right away gadget, code and circuit look up for knowledgeable PICMICRO purposes designers

Show description

Read or Download PICmicro microcontroller pocket reference PDF

Best electrical & electronic engineering books

Modern Power Station Practice : Electrical Systems and Equipment

Electric structures and gear is the paintings of a few 50 electric layout experts within the strength engineering box dependent mostly at the paintings and event of GDCD's (Generation improvement and department of the CEGB) electric department. the amount describes the layout philosophies and methods of energy engineering, the options to the massive variety of layout difficulties encountered and the plant which has been selected and built to equip electric structures either in the varieties of new energy station, and amendment initiatives at present stations.

Projektmanagement im Hochbau: Eine praxisnahe Einführung in die Grundlagen

Ohne Projektmanagement ist eine erfolgreiche Abwicklung von Grossprojekten heute nicht mehr möglich. Dieses Buch beschreibt alle Grundlagen mit Hilfe von zahlreichen anschaulichen Abbildungen. Das bereits sehr erfolgreiche Werk wurde in der zweiten Auflage um Beiträge ergänzt, die der Tatsache Rechnung tragen, dass zum einen Kommunikation und supplier bei Bauvorhaben immer wichtiger werden; zum anderen, dass Grundstücke - kommunale wie inner most - heutzutage gezielt aufbereitet werden müssen, um sie sinnvoll zu nutzen und eine Wertsteigerung zu erreichen.

Extra resources for PICmicro microcontroller pocket reference

Sample text

If Skip Executed, cpfseq Reg if ((Reg Ϫ wreg) ϭϭ 0) PC ϭ PC ϩ 1 0011 0001 ffff ffff 9/26/01 Format 5194 Predko Pocket Chapter 4 46 Instruction 11:40 AM Page 46 if ((Reg Ϫ wreg) Ͼ 0) PC ϭ PC ϩ 1 0011 0010 ffff ffff Compare the Specified Register with wreg and skip if the Register Ͻ wreg. If Skip Executed, two Instruction Cycles Executed Else one Cycle cpfslt Reg if ((Reg Ϫ wreg) Ͻ 0) PC ϭ PC ϩ 1 0011 0000 ffff ffff Do a Decimal Adjust after Addition of Two BCD Values daw Reg, s if ((wreg & 0x0F) Ͼ 9) if (s ϭϭ 0) wreg ϭ (wreg & 0x0F) ϩ 0x010 else Reg ϭ (wreg & 0x0F) ϩ 0x010 0010 111s ffff ffff 11:40 AM cpfsgt Reg 9/26/01 Compare the Specified Register with wreg and skip if the Register Ͼ wreg.

0) PC ϭ PC ϩ 1 endif 0111 bbbf ffff Save the Stack Pointer and jump to the Specified Address (two Instruction cycles) call Address [SP] ϭ PC SP ϭ SP ϩ 1 PC ϭ ((STATUS & 0x0E0) ϽϽ 4) ϩ Address 1001 aaaa aaaa Clear the Specified Register clrf Reg Reg ϭ 0 Zϭ1 0000 011f ffff Clear the “w” Register clrw wϭ0 Zϭ1 0000 0100 0000 Clear the Watchdog Timer’s Counter clrwdt WDT ϭ 0 _TO ϭ 1 _PD ϭ 1 0000 0000 0100 Page 24 Op code 11:40 AM Operation 9/26/01 Instruction 5194 Predko Pocket Chapter 4 24 Description Decrement the Contents of the Register and Optionally store the results in “w” decf Reg, d if (d ϭϭ 1) Reg ϭ Reg Ϫ 1 else w ϭ Reg Ϫ 1 endif Z ϭ (Reg Ϫ 1) ϭϭ 0 0011 11df ffff Decrement the Contents of the Register and Optionally store the results in “w” and Skip the next instruction if the results are equal to Zero.

0) PC ϭ PC ϩ 1 endif 9/26/01 btfsc Reg, bit 5194 Predko Pocket Chapter 4 Page 33 33 Skip if the Specified Bit in the Register is Set. One Instruction Cycle if Skip not Executed, two if it is 00 0011 dfff ffff Decrement the Contents of the Register and Optionally store the results in “w” and Skip the next instruction if the results are equal to Zero. Two Instruction Cycles taken if skip executed decfsz Reg, d if (d ϭϭ 1) Reg ϭ Reg Ϫ 1 else w ϭ Reg Ϫ 1 endif 00 1011 dfff ffff Jump to the Specified Address (two Instruction cycles) goto Address PC ϭ ((PCLATH ϽϽ 8) & 0x01800) ϩ Address 10 1aaa aaaa aaaa Increment the Contents of the Register and Optionally store the results in “w” incf Reg, d if (d ϭϭ 1) Reg ϭ Reg ϩ 1 else w ϭ Reg ϩ 1 endif Z ϭ (Reg ϩ 1) ϭϭ 0 00 1010 dfff ffff if ((Reg Ϫ 1) ϭϭ 0) PC ϭ PC ϩ 1 endif Page 34 Op code if (d ϭϭ 1) Reg ϭ Reg Ϫ 1 else w ϭ Reg Ϫ 1 endif Z ϭ (Reg Ϫ 1) ϭϭ 0 11:40 AM Operation decf Reg, d 9/26/01 Instruction Decrement the Contents of the Register and Optionally store the results in “w’ 5194 Predko Pocket Chapter 4 34 Description iorlw k wϭw|k Z ϭ (w | k) ϭϭ 0 11 1000 kkkk kkkk OR Register Contents with “w” and Optionally store result in “w” iorwf Reg, d if (d ϭϭ 1) Reg ϭ Reg | w else w ϭ Reg | w endif Z ϭ (Reg | w) ϭϭ 0 00 0100 dfff ffff Check Register Contents equal to zero and Optionally store Register contents in “w” movf Reg, d if (d ϭϭ 0) w ϭ Reg endif Z ϭ Reg ϭϭ 0 00 1000 dfff ffff if ((Reg ϩ 1) ϭϭ 0) PC ϭ PC ϩ 1 endif 11:40 AM OR Immediate with “w” 00 1111 dfff ffff 9/26/01 incfsz Reg, d 5194 Predko Pocket Chapter 4 if (d ϭϭ 1) Reg ϭ Reg ϩ 1 else w ϭ Reg ϩ 1 endif Increment the Contents of the Register and Optionally store the results in “w” and Skip the next instruction if the results are equal to Zero.

Download PDF sample

Rated 4.33 of 5 – based on 22 votes