Premium Only Content
							This video is only available to Rumble Premium subscribers. Subscribe to
							enjoy exclusive content and ad-free viewing.
					
								
			Tutorial (4): Arithmetic Instructions in PIC microcontrollers
								11 months ago							
						
														81						
								
								
												Technology					
								
												Software & Development					
								
												pic					
								
												microcontroller					
								
												microprocessor					
								
												microchip					
								
												p16f84a					
								
												assmbly					
								
												arithmetic					
								
												instruction					
								
												add					
					
					
			
	
					The tutorial presents the following:
- ADDLW k : adds literal and w (w = w+k)
- ADDWF f,d: adds w and f (w= w+f) or (f= w+f)
- INCF f : increment f (f=f+1)
- SUBLW k: subtracts w from literal (w= k-w)
- SUBWF f,d: subtracts w from f (w=f-w) or (f=f-w)
- DECF f: decrement f (f=f-1)
Status register bits Zero, Carry and Digit Carry respond to certain arithmetic instructions.
The Subtract instructions follow a similar pattern to the Add
The Carry bit now, however, acts as a Borrow.
If a subtract occurs and the result is positive, then the Carry bit is ‘set’. If the result is negative, then the Carry bit is ‘clear’
Define two constant and apply the arithmetic operations between them.
Loading 1 comment...				
			
		- 	
				
							LIVE
								TruthStream with Joe and Scott
5 days agoSovereign Codes & Cosmic Infrastructure,Ufo's, UAP's, Monads, Matrix Satellites, Interstellar Visitors, SYRONA #505
261 watching - 	
				
							LIVE
								Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
155 watching - 	
				
							5:55:11
								MattMorseTV
10 hours ago $89.30 earned🔴Trump's '60 Minutes' INTERVIEW + MUCH MORE.🔴
152K42 - 	
				
							2:02:36
								Badlands Media
15 hours agoBaseless Conspiracies Ep. 157: Jack the Ripper, the Crash & the Great Disclosure Countdown
35.6K20 - 	
				
							2:06:09
								Inverted World Live
11 hours agoMysterious Crash at Area 51 | Ep. 134
40K14 - 	
				
							2:48:59
								TimcastIRL
9 hours agoTrump Endorses Cuomo, Says NO COMMIE MAMDANI, Obama REFUSES To Endorse Mamdani | Timcast IRL
276K197 - 	
				
							5:51:16
								Drew Hernandez
1 day agoGOP CIVIL WAR: TUCKER CARLSON DERANGEMENT SYNDROME AT ALL TIME HIGH
57.2K42 - 	
				
							14:44
								Sponsored By Jesus Podcast
1 day agoYou Can't Serve God & MONEY | Is Money the Root of All Evil?
24.9K25 - 	
				
							2:47:28
								Barry Cunningham
13 hours agoYOU'VE BEEN MISINFORMED! GREED IS ACTUALLY GOOD! ESPECIALLY NOW! (AND MORE NEWS)
104K42 - 	
				
							7:18:24
								SpartakusLIVE
13 hours agoSNIPING in Battlefield 6 - REDSEC || Monday MOTIVATION to CONQUER the Week
58.8K6