Home >
Integrated Circuits >
Microcontrollers >
Microchip >
PIC18
PIC18F258 28-pin 32kB Microcontroller Datasheet
Photograph
Product Details
The Microchip PIC18F258 Microcontroller is an advanced 28-pin 8-bit PIC Microcontroller with 32 kBytes Flash Program Memory and an Eight Channel 10-bit Accuracy A/D Converter. The PIC18F258 microcontroller features a CAN module that supports the CAN 2.0A and CAN 2.0B communications protocol standard. The PIC18F258 has a total of 22 I/O pins available with individual direction control and are suitable for directly driving LEDs.
Features
- High-Performance RISC CPU
- - Source code compatible with the PIC16 and PIC17 instruction sets
- - Linear data memory addressing to 4 kbytes
- - Linear program memory addressing to 2 Mbytes
- - DC - 40 MHz osc./clock input
- - 16-bit wide instructions, 8-bit wide data path
- - Priority levels for interrupts
- - 8 x 8 Single Cycle Hardware Multiplier
- - 32 kBytes Flash Program Memory
- - 1536 Byte RAM Data Memory
- - 256 Byte RAM Data Memory
- Peripheral Features
- - High current sink/source 25mA/25mA
- - Two 16-bit timer/counter (TMR1, TMR3)
- - One 8-bit/16-bit timer/counter with prescaler
- - One 8-bit timer/counter with 8-bit period register
- - Capture 16-bit, max. resolution 6.25ns(TCY/16)
- - Compare 16-bit, max. resolution 100ns
- - 3-wire SPI with Interrupt-on-Address Bit
- - I²C Master and Slave mode
- - Secondary Oscillator Clock Option - Timer1/Timer3
- - 1,2 or 4 PWM Outputs with Selectable Polarity
- - Five Channel 10-bit Analog-to-Digital Converter
- Advanced CAN Technology
- - Complies with ISO CAN Conformance Test
- - Message bit rates up to 1 Mbps
- - 8-byte Message Length
- - 29-bit Identifier Fields
- - 3 Transmit Message Buffers with Prioritization
- - 6 full, 29-bit Acceptance Filters
- - Advanced Error Management Features
- Special Microcontroller Features
- - Power-On Reset
- - Power-up Timer (PWRT) and Oscillator Start-Up Timer (OST)
- - 1,000 erase/write cycles Enhanced Flash Program Memory
- - 1,000,000 typical erase/write cycles EEPROM Data Memory
- - Watchdog Timer (WDT) with its own On-Chip RC oscillator
- - Programmable Code Protection
- - Power Saving SLEEP mode
- - 4X Phase Lock Loop (of primary oscillator)
- - Secondary Oscillator (32kHz) clock input
- - In-Circuit Debug (ICD)
- CMOS Technology
- - Low power, high speed CMOS FLASH technology
- - Fully Static Design
- - Wide Operating Voltage Range (2.0V to 5.5V)
- I/O and Packages
- - 22 I/O pins with individual direction control
- - 28-pin DIP
Pin Layout
Pin Description
Pin Number | Description |
---|---|
1 | MCLR/VPP - Master Clear Reset |
2 | RA0/AN0/CVref - Port A |
3 | RA1/AN1 - Port A |
4 | RA2/AN2/Vref- - Port A |
5 | RA3/AN3/Vref+ - Port A |
6 | RA4/TOCKI - Port A |
7 | RA5/AN4/SS/LVDIN - Port A |
8 | Vss - Ground |
9 | OSC1/CLKI - Oscillator |
10 | OSC2/CLKO/RA6 - Port A |
11 | RC0/T1OSO/T1CKI - Port C |
12 | RC1/T1OSI - Port C |
13 | RC2/CCP1 - Port C |
14 | RC3/SCK/SCL - Port C |
15 | RC4/SDI/SDA - Port C |
16 | RC5/SDO - Port C |
17 | RC6/TX/CK - Port C |
18 | RC7/RX/DT - Port C |
19 | Vss - Ground |
20 | Vdd - Positive Power Supply |
21 | RB0/INT0 - Port B |
22 | RB1/INT1 - Port B |
23 | RB2/CANTX/INT2 - Port B |
24 | RB3/CANRX - Port B |
25 | RB4 - Port B |
26 | RB5/PGM - Port B |
27 | RB6/PGC - Port B |
28 | RB7/PGD - Port B |
Dimensional Drawing
Technical Data
Datasheet
Microchip Web Site - Datasheet for PIC18F258 |
Application Notes
Microchip Web Site - Application Notes for PIC18F258 |