AMC Unit-3 Notes

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

UNIT-III:

Case studies with PIC, Design of DAS system, Design of frequency counter with
display on LCD, Design of Digital Multimeter, Design of DC Motor control using PWM
1. Draw the block diagram of Data Acquisition System using PIC Microcontroller and
describe the function of various blocks present in it.
2. Draw the Block Diagram representation of Typical Microcontroller based Data
Acquisition System and mention the applications, advantages and disadvantages of
it
3. Draw the Block Diagram of Frequency Counter and explain the working principle of
it.
4. Describe the various methods involved in Frequency Measrement.
5. Design a Frequency Counter using General Microcontroller
6. Develop a Program for Frequency measurement using pic microcontroller
sbit LCD_RS at RB2_bit;

sbit LCD_EN at RB3_bit;

sbit LCD_D4 at RB4_bit;

sbit LCD_D5 at RB5_bit;

sbit LCD_D6 at RB6_bit;

sbit LCD_D7 at RB7_bit;

sbit LCD_RS_Direction at TRISB2_bit;

sbit LCD_EN_Direction at TRISB3_bit;

sbit LCD_D4_Direction at TRISB4_bit;

sbit LCD_D5_Direction at TRISB5_bit;

sbit LCD_D6_Direction at TRISB6_bit;

sbit LCD_D7_Direction at TRISB7_bit;

int on=0,value,freq;

char text[7];

void interrupt(void) // high portD

if(T1CON.TMR1ON==0)

T1CON.TMR1ON=1; // turn on the timer1

INTCON.INTF = 0; // clear the interrupt flag

else if(T1CON.TMR1ON==1)

T1CON.TMR1ON=0; // turn off the timer1

value=(TMR1H<<8)|(TMR1L);
INTCON.INTE = 0; //Enable RB0/INT external Interrupt

freq=(5007999/value);

//freq=1/value;

IntToStr(freq, text);

Lcd_Init();

lcd_out(1,1,”frequency:”);

lcd_out(2,1,text);

delay_ms(1000);

TMR1H=0;

TMR1L=0;

INTCON.INTE = 1; //Enable RB0/INT external Interrupt

INTCON.INTF = 0; // clear the interrupt flag

}void main(void)

TRISB.f0 = 1;

T1CON=0X00;

TMR1H=0;
TMR1L=0; // intialization of timer one prescalar and internal clock

INTCON.GIE = 1; //Enable Global Interrupt

INTCON.INTE = 1; //Enable RB0/INT external Interrupt

OPTION_REG.INTEDG = 0; //Interrupt on rising edge

do

} while(1);

}
7. Design of DC Motor control using PWM

You might also like