0% found this document useful (0 votes)
727 views4 pages

PIC Microcontroller Configuration and Instructions

This document contains questions about programming concepts for various microcontrollers and assembly language instructions. It asks about bit masking, register values after instructions, addressing modes, loop counts, debugging commands, keypad values and more. The questions are at a level that assumes some familiarity with microcontrollers and assembly language programming.

Uploaded by

Paul Dye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
727 views4 pages

PIC Microcontroller Configuration and Instructions

This document contains questions about programming concepts for various microcontrollers and assembly language instructions. It asks about bit masking, register values after instructions, addressing modes, loop counts, debugging commands, keypad values and more. The questions are at a level that assumes some familiarity with microcontrollers and assembly language programming.

Uploaded by

Paul Dye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PIC4. In the PIC what bit mask would need to be applied to configure Port D to input?

Assuming ORing
bit operation is applied

What type of program is this

BEEF: FSFFSD
BEEF:sdfsf
BEEF: SDFDSFDS

COM Program

With a POPA instruction what will be the order of the accumulator base count and data registers from
the stack

BDCA

At input buffer is at memory location 0118 how many bytes are in the buffer (in decimal)?

13A7 sfdjfl a (*3)

On the PPE board what number(s) on the key pad is(are) pressed for an output value of 04h and an input
port value of 2Fh?

In the propeller micro controller the term “method” is(are) which of the following

If cx is 0003 what will CX be after a “LOOPNZ” instruction

0002

You are trying to rebuild a HELLO project program in MASM and you get the following error: “LINK: fatal
error L4242 [Link]: can’t open response file”. What would be the reason for such an error.

Rotating an 8 bit register right one time changes the value of the register by what?

PIC3 In the PIC with a bit mask = 0xFF what bit mask operation would be applied to LATD to switch the
LED output

What is the numeric sequence of the key pad columns on the PPE board
PIC5 In the PIC what bit mask would need to be applied to configure bit 4 of Port D to input? Assume
OR’ing bit operation is applied.

Given the short sequence of instructions(code) what is the value oin BX after the program is run?

MOV BX, 001

pUSH BX

MOV AX , 0500

POP AX

What is ax after program is run

PIC1. IN the PIC with a bit mask = 0xFF what bit mask operation would be used to configure Port D to
input?

Which of the following is a valid x86 command for multiplying a number

MUL BX

On the PPED board what number(s) on the key pad is(are) pressed for an output value of 02h and an
input port value of 2Fh

IN MASM with a “MOV CX 24h” instruction and a “LOOP” instruction, in decimal how many times will
the program be run

24

The instruction MOV SI, 4DAD is what addressing mode

IMmediate

SHR2. Shifting an 8 bit register right seven time changes the value of the register by what

PIC2. In the PIC with a bit mask = 0x00 what bit mask operation would be used to configure Port D to
output?

The instruction MOV CX, [4DAD] is what addressing mode?


IF CX is 0001 what will CX be after a “LOOPNZ” instruction?

0000

ROL2. Rotating an 8 bit register left eight times changes the value of the register by what?

PIC6. In the PIC what bit mask would be applied to configure bit 4 and 2 of Port 2 to input? Assuming
ORing bit is applied.

In the PIC18 with TRISD= 0b01111111 what is the configuration of Port D?

In the PIC 18 with TRISD = 0b11110000 and LATD = 0xAA, what value will be on Port D and shown on the
LED’s

What flag(s) does the “LOOPNE” instruction look at to determine whether to loop or not?

ZF

How many bit(s) is/are required to represent a range of decimal numbers from 0 to 9?

Logic2 What logical operation sets a bit?

Which of the following will cause a program with a LOOP instruction to loop 48 times (decimal)?

You are trying to rebuild a HELLO project program in MASM and you get the following error: “LINK :
wrning L4021: no stack segment”. What would be the reason for such an error?

The instruction MOV CX, [4DAD] is what addressing mode?

Direct

What command in MASM-Codeview(debugging mode) would be used to step through a program line by
line?

With a PUSHA instruction, what will be the order of the accumulator base count and data registers
stored
What hex values must be sent to address the key pad rows on the PPE board

What is the numeric sequence of the key pad columns on the PPE board

SHR1. Shifting an 8 bit register right one time changes the value of the register by what?

You might also like