Presentation is loading. Please wait.

Presentation is loading. Please wait.

S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.

Similar presentations


Presentation on theme: "S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals."— Presentation transcript:

1 S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals & Enhanced FLASH New Peripherals Enhanced FLASH PIC16F87X and PIC16F62X Enhanced FLASH PIC16F87X and PIC16F62X

2 S4525A Peripherals & Enhanced FLASH 2 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 2 Peripherals & Enhanced FLASH PIC16F87X Features at a Glance l 8K x 14 FLASH Program Memory l Typ. 1000 E/W l Byte/Word Read/Write at V DD l 256 x 8 EEPROM Data Memory l Min. 100K E/W l 368 x 8 Data Memory (RAM) l 33 I/O ports l 25mA sink/source l 3 Timers l 1 - 16-bit l 2 - 8-bit l 10-bit A/D l 8K x 14 FLASH Program Memory l Typ. 1000 E/W l Byte/Word Read/Write at V DD l 256 x 8 EEPROM Data Memory l Min. 100K E/W l 368 x 8 Data Memory (RAM) l 33 I/O ports l 25mA sink/source l 3 Timers l 1 - 16-bit l 2 - 8-bit l 10-bit A/D l Two Capture/Compare/PWMs l USART l 9-bit addressable l High Speed Enhanced SPI  l All 4 SPI modes supported l Microwire  Support Master I 2 C  l Hardware Write to I 2 C devices In-Circuit-Serial Programming  l In-Circuit-Debugger l Parallel Slave Port

3 S4525A Peripherals & Enhanced FLASH 3 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 3 Peripherals & Enhanced FLASH PIC16F62X Features at a Glance l 18-pin package l Up to 2K x 14 FLASH Program Memory l Typ. 1000 E/W l Byte/Word Read/Write at V DD l 128 x 8 EEPROM Data Memory l Min. 100K E/W l 224 x 8 Data Memory (RAM) l 16 I/O ports l 25mA sink/source l 18-pin package l Up to 2K x 14 FLASH Program Memory l Typ. 1000 E/W l Byte/Word Read/Write at V DD l 128 x 8 EEPROM Data Memory l Min. 100K E/W l 224 x 8 Data Memory (RAM) l 16 I/O ports l 25mA sink/source l 3 Timers l 1 - 16-bit l 2 - 8-bit l Capture/Compare/PWM l USART l 9-bit addressable l High Speed l 2 Comparators In-Circuit-Serial Programming  l Internal RC Oscillator

4 S4525A Peripherals & Enhanced FLASH 4 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 4 Peripherals & Enhanced FLASH 10-Bit A/D Module: Features l PIC16F87X devices have a 10-bit A/D (+/- 1 LSB) l Compatible with 8-bit A/D on PIC16C7X device l ADRES now called ADRESH l New register is added: ADRESL l ADCON0 operates just as in PIC16C7X l There are changes in ADCON1 l A/D conversion between V REF + and V REF - l Min. differential voltage = 2.0V l Conversion in Sleep l Reduces any A/D corruption due to digital “noise” l PIC16F87X devices have a 10-bit A/D (+/- 1 LSB) l Compatible with 8-bit A/D on PIC16C7X device l ADRES now called ADRESH l New register is added: ADRESL l ADCON0 operates just as in PIC16C7X l There are changes in ADCON1 l A/D conversion between V REF + and V REF - l Min. differential voltage = 2.0V l Conversion in Sleep l Reduces any A/D corruption due to digital “noise”

5 S4525A Peripherals & Enhanced FLASH 5 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 5 Peripherals & Enhanced FLASH 10-Bit A/D Module: Left/Right Justification of A/D Result 10-Bit Result ADFM = 1 ADFM = 0 ADRESHADRESL 0000 00 0 2 1 0 7 7 10-Bit Result Right Justified ADRESHADRESL 10-Bit Result 00 0000 7 0 7 6 5 0 Left Justified

6 S4525A Peripherals & Enhanced FLASH 6 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 6 Peripherals & Enhanced FLASH A/D Conversion Timing

7 S4525A Peripherals & Enhanced FLASH 7 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 7 Peripherals & Enhanced FLASH 10-Bit A/D: Acquisition, Conversion and Sampling Time A/D Sample Time Acquisition Time Conversion Time Go bit set A/D Channel Selected; A/D Turned ON

8 S4525A Peripherals & Enhanced FLASH 8 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 8 Peripherals & Enhanced FLASH Software Sequence for A/D Conversion l Write to ADCON1 to setup A/D port configuration, VREF selection and 10-bit A/D result format (left or right justified). l Write to ADCON0 to select clock source, ADON and channel selection for A/D conversion. l Allow delay to take care of acquisition time. l Set GO bit in ADCON0. l Test GO bit = 0 for A/D completion. l Read ADRESH and ADRESL for A/D result. l Write to ADCON1 to setup A/D port configuration, VREF selection and 10-bit A/D result format (left or right justified). l Write to ADCON0 to select clock source, ADON and channel selection for A/D conversion. l Allow delay to take care of acquisition time. l Set GO bit in ADCON0. l Test GO bit = 0 for A/D completion. l Read ADRESH and ADRESL for A/D result.

9 S4525A Peripherals & Enhanced FLASH 9 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 9 Peripherals & Enhanced FLASH 10-Bit A/D: Specifications CharacteristicMinMax Resolution10-bits Integral Linearity Error<+/- 1LSB Differential Linearity Error<+/- 1LSB Offset Error<+/- 1LSB Gain Error<+/- 1LSB Reference Voltage (V REF + - V REF -)2.0VAV DD + 0.3V Reference Voltage HighAV DD - 2.5VAV DD + 0.3V Reference Voltage LowAV SS - 0.3VV REF + -2.0V Analog Input VoltageAV SS - 0.3VV REF + +0.3V Target Data: Please check final data sheet/web site for most current data.

10 S4525A Peripherals & Enhanced FLASH 10 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 10 Peripherals & Enhanced FLASH Bank0 Bank1 Bank2 Bank3 Special Function Registers PIC16C77 PIC16F877 00h 180h 1Fh 19Fh 00h 1Fh 180h 19Fh


Download ppt "S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals."

Similar presentations


Ads by Google