Sunteți pe pagina 1din 2

1. Draw the architectural block diagram of PIC16C7X.

Explain how instruction pipelining is


implemented in PIC micro controllers.
2. Explain the program memory, data memory and CPU registers in PIC16C6x microcontrollers.
Explain how PCL and PCLATH registers are used to address the ROM, and discuss about how to
switch between Bank'0' and Bank '1' or vice versa in the RAM.
3. Explain in detail the instruction set and any two addressing modes of PIC microcontroller.
4. Explain the following instructions
a. (i)CALL ii) BTFSS iii) DECFSZ iv) CLRWDT v) MOVLW k vi) MOVF f, F(W)
vii)MOVWF f viii) BSF f,b.
b. Briefly explain the format of following special function registers
a) INTCON b) OPTION c) PCLATH d) TRISA.
5. Explain the concept of interrupt logic and interrupt structure and interrupt programming
(IntService) of PIC microcontroller.
6. Explain the modes of Timers 0,1 and 2 of PIC16C6X microcontroller with block diagram. Also
explain the function of associated register and timer programming.
7. Draw the keypad interface circuit, Keystate flow chart and write a subroutine to identify the key
pressed in a 3x4 array matrix keypad.
8. Discuss the LCD interfacing with PIC Micro controller and write a program to display constant
and string variables.
9. Explain the Capture , compare and PWM signal in PIC microcontroller and also explain its
associated registers.
Explain the following simple operations in PIC microcontroller: i) Decrement of 16 bit counter ii)
Testing a 16-bit variable or zero, iii) Either-or sequence iv) Addition and subtraction with solution
stored in W and in other registers
10.

i) What is the largest scale that can be setup with Timer2? (4)
ii) What is the resulting period between timer2 interrupts using a 4 Mhz crystal?
(4)
iii) How should T2CON and PR2 registers be initialized in this case? (5)

Assuming that Timer1 is used by no other function, write a program use it to


generate a 100 µs positive going pulse on the RC2/CCP1 pin. Assume that the
initialization of the circuit is already been carried out, with T1CON='01' H with
CCPCON='09'H (clear RC2/CCP1 pin on compare) and RC2/CCP1 pin intially
low. Also assume that OSC= 4MHZ . (13)

Program Timer-1 to be an event counter. Use 16-bit mode, and display the binary
count on Port-B and Port-D continuously, set the initial count to 20000. (13)
11.

A switch is connected to pin RC6. Write a program to check the status of SW and
do the following.
If SW =0, send letter ‘N’ to PORTA.
If SW=1, send letter ‘Y’ to PORTA (15)

A green LED is connected to the 5th pin of PORTA. Write a program to blink the
LED for every 10 mili seconds of regular interval. (15)

12.

Explain the modes of Timer 1 of PIC16C6X microcontroller with block


diagram. Explain the function of associated registers. (15)

Draw the architecture of timer 2 in PIC micro controller and determine the values of
scaling factors to be used to obtain interrupts at output at every 8 milli seconds at the
output, assume a 10MHZ of Crystal oscillator clock frequency (Note: crystal
generates and internal clock rate of OSC/4 =2.5MHZ). (15)

OPTION register is loaded with a binary value of 01001101, and TMR0 register is
loaded with a binary number of ‘11110011’. Calculate how much delay is
produced in timer’0’ with an oscillator clock frequency of 4 MHZ. (15)

Determine the pulse width of positive going pulse to RC2/CCP1 pin of P1 micro
controller. Assume that OSC=4MHz and that the pulse width is less than 65,535µs
and longer than 300µs. Write an assembly language program for the given
specification using PIC instruction set. Determine the pulse width of positive going
pulse to RC2/CCP1 pin of P1 micro controller. Assume that OSC=4MHz and that
the pulse width is less than 65,535µs and longer than 300µs. Write an assembly
language program for the given specification using PIC instruction set. (15)

Write PIC Micro controller assembly language program to display the characters
‘2019’ in the first row of 2 lines x 20 characters LCD. (15)

S-ar putea să vă placă și