Question: Write an assembly language program to drive a LED connected to PORTD,2 of a PIC18F4520 microcontroller. Include a delay routine call in your program so
Write an assembly language program to drive a LED connected to PORTD,2 of a PIC18F4520 microcontroller. Include a delay routine call in your program so that the LED on/off phases are visible.
Step by Step Solution
3.32 Rating (143 Votes )
There are 3 Steps involved in it
InitsPorts movlb 0 clrf PortD movlb 3 clrf ANSELC Make PORTD all ... View full answer
Get step-by-step solutions from verified subject matter experts
