Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
PIC18F2x31-4x31

PIC18F2x31-4x31

Ratings: (0)|Views: 85|Likes:
Published by api-19831863

More info:

Published by: api-19831863 on Nov 30, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

\ue0002003 Microchip Technology Inc.
Preliminary
DS39616B
PIC18F2331/2431/4331/4431
Data Sheet

28/40/44-Pin Enhanced
Flash Microcontrollers
with nanoWatt Technology,
High Performance PWM and A/D

DS39616B-page ii
Preliminary
\ue0002003 Microchip Technology Inc.

Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip\u2019s products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights.

Trademarks

The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, KEELOQ, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE and PowerSmart are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.

AmpLab, FilterLab, microID, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartShunt and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.

Application Maestro, dsPICDEM, dsPICDEM.net,
dsPICworks, ECAN, ECONOMONITOR, FanSense,
FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP,
ICEPIC, microPort, Migratable Memory, MPASM, MPLIB,
MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC,
Select Mode, SmartSensor, SmartTel and Total Endurance
are trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.

Serialized Quick Turn Programming (SQTP) is a service mark
of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
\u00a9 2003, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Note the following details of the code protection feature on Microchip devices:
\u2022
Microchip products meet the specification contained in their particular Microchip Data Sheet.
\u2022
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
\u2022

There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.

\u2022
Microchip is willing to work with the customer who is concerned about the integrity of their code.
\u2022
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as \u201cunbreakable.\u201d

Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break microchip\u2019s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.

Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in October

2003 . The Company\u2019s quality system processes and procedures are
for its PICmicro\u00ae 8-bit MCUs, KEELOQ\u00ae code hopping devices, Serial
EEPROMs, microperipherals, non-volatile memory and analog
products. In addition, Microchip\u2019s quality system for the design and
manufacture of development systems is ISO 9001:2000 certified.

\ue0002003 Microchip Technology Inc.
Preliminary
DS39616B-page 1
14-bit Power Control PWM Module:

\u2022 Up to 4 channels with complementary outputs
\u2022 Edge- or center-aligned operation
\u2022 Flexible dead-band generator
\u2022 Hardware fault protection inputs
\u2022 Simultaneous update of duty cycle and period:

- Flexible special event trigger output
Motion Feedback Module:
\u2022 Three independent input capture channels:
- Flexible operating modes for period and pulse

width measurement
- Special Hall Sensor interface module
- Special event trigger output to other modules

\u2022 Quadrature Encoder Interface:
- 2 phase inputs and one index input from encoder
- High and low position tracking with direction

status and change of direction interrupt
- Velocity measurement
High-Speed, 200 Ksps 10-bit A/D Converter:

\u2022 Up to 9 channels
\u2022 Simultaneous two-channel sampling
\u2022 Sequential sampling: 1, 2 or 4 selected channels

\u2022 Auto-conversion capability

\u2022 4-word FIFO with selectable interrupt frequency
\u2022 Selectable external conversion triggers
\u2022 Programmable acquisition time

Flexible Oscillator Structure:

\u2022 Four crystal modes up to 40 MHz
\u2022 Two external clock modes up to 40 MHz
\u2022 Internal oscillator block:

- 8 user selectable frequencies: 31 kHz to 8 MHz

- OSCTUNE can compensate for frequency drift
\u2022 Secondary oscillator using Timer1 @ 32 kHz
\u2022 Fail-Safe Clock Monitor:

- Allows for safe shutdown of device if clock fails
Power-Managed Modes:
\u2022 Run
CPU on, peripherals on
\u2022 Idle

CPU off, peripherals on
\u2022 Sleep CPU off, peripherals off
\u2022 Idle mode currents down to 5.8\u00b5A typical
\u2022 Sleep current down to 0.1\u00b5A typical
\u2022 Timer1 oscillator, 1.8\u00b5A typical, 32 kHz, 2V
\u2022 Watchdog Timer (WDT), 2.1\u00b5A typical
\u2022 Two-Speed oscillator start-up

Peripheral Highlights:

\u2022 High current sink/source 25 mA/25 mA
\u2022 Three external interrupts
\u2022 Two Capture/Compare/PWM (CCP) modules:

- Capture is 16-bit, max. resolution 6.25 ns (TCY/16)
- Compare is 16-bit, max. resolution 100 ns (TCY)
- PWM output: PWM resolution is 1 to 10 bits
\u2022 Enhanced USART module:
- Supports RS-485, RS-232 and LIN 1.2
- Auto-Wake-up on Start bit
- Auto-Baud detect
\u2022 RS-232 operation using internal oscillator block
(no external crystal required)
Special Microcontroller Features:
\u2022 100,000 erase/write cycle enhanced Flash
program memory typical
\u2022 1,000,000 erase/write cycle data EEPROM

memory typical
\u2022 Flash/data EEPROM retention: 100 years
\u2022 Self-programmable under software control
\u2022 Priority levels for interrupts
\u2022 8 X 8 Single-cycle Hardware Multiplier
\u2022 Extended Watchdog Timer (WDT):

- Programmable period from 41 ms to 131s
\u2022 Single-supply In-Circuit Serial Programming\u2122
(ICSP\u2122) via two pins
\u2022 In-Circuit Debug (ICD) via two pins
- Drives PWM outputs safely when debugging
Device
Program Memory
Data Memory
I/O
10-bit
A/D
(ch)
CCP
SSP
EUSART
Quadrature
Encoder14-bit
PWM
(ch)
Timers
8/16-bit
Flash
(bytes)
# Single-Word
Instructions
SRAM
(bytes)
EEPROM
(bytes)
SPISlave
I2C\u2122
PIC18F2331 8192
4096
768
256
24
5
2
Y
Y
Y
Y
6
1/3
PIC18F2431 16384
8192
768
256
24
5
2
Y
Y
Y
Y
6
1/3
PIC18F4331 8192
4096
768
256
36
9
2
Y
Y
Y
Y
8
1/3
PIC18F4431 16384
8192
768
256
36
9
2
Y
Y
Y
Y
8
1/3
28/40/44-Pin Enhanced Flash Microcontrollers with
nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->