mplabx with proteus

16
Presented by Jabez Winston C Jagdeesh S Shibin B

Upload: jabez-winston

Post on 22-Jan-2018

389 views

Category:

Engineering


2 download

TRANSCRIPT

Page 1: MPLABX with proteus

Presented by

Jabez Winston C

Jagdeesh S

Shibin B

Page 2: MPLABX with proteus

About Microchip

Microchip Technology is an American manufacturer of microcontroller, memory and analog semiconductors.

HQ - Chandler, Arizona

Wafer Fabs - Tempe, Arizona and Gresham, Oregon

Assembly/Test facilities - Chachoengsao, Thailand

Page 3: MPLABX with proteus
Page 4: MPLABX with proteus

Competitors to Microchip

Analog Devices

Atmel

Freescale

Infineon

Maxim Integrated Products

NXP Semiconductors

Renesas Electronics

STMicroelectronics

Texas Instruments

Page 5: MPLABX with proteus

PIC architecture RISC instruction set

PIC – Programmable Interface Controller ??

Peripheral Interface Controller ??

Programmable Interface Controller ??

Page 6: MPLABX with proteus

Microchip Microcontroller variants 8-bit MCUs

PIC10, PIC12 - 12 bit wide code memory/instruction

PIC16 - 14 bit wide code memory/instruction

PIC18 - 8 bit wide code memory / 16 bit instruction

16-bit MCUs –

PIC24 -12 bit wide code memory / 24 bit instructions

dsPIC - 12 bit wide code memory / 24 bit instructions

32-bit MCUs - PIC32MX, PIC32MZ

32 bit instruction set

16 bit instruction set for compact code

Page 7: MPLABX with proteus

ProblemDesign a circuit to turn on LED

when voltage is less than 3 V or greater than 4 V

Page 8: MPLABX with proteus

ADC(Analog to Digital Converter)

ADC converts physical quanity(usually voltage) to a digital number.

(for n-bit ADC)

n-bit ADC can produce value in the range 0 to 2n

Analog Digital

input output

Range: Vref- to Vref+ Range: 0 to 2n

ADC

Page 9: MPLABX with proteus

For example , a 8 bit ADC has +ve voltage reference of 5 V and –ve voltage reference of 0V. What is ADC value for 2.5 V ?

Page 10: MPLABX with proteus

PIC12F683

Page 11: MPLABX with proteus

PIC12F683 has 10 bit Successive Approximation ADC.

Default reference voltages are

For 3 V , ADC value

For 4 V , ADC value

Page 12: MPLABX with proteus

PIC 12F683 registers ANSEL – Configure pins as digital/analog and

A/D conversion clock select

ADCON0 – Channel , Reference voltage select,etc.,

ADRESH

ADRESL ADC Result registers

Page 13: MPLABX with proteus

ANSEL

Page 14: MPLABX with proteus

ADCON0

Page 15: MPLABX with proteus

ADRESH & ADRESL Registers

Left justified result

Page 16: MPLABX with proteus

Right justified result