





The PIC18F452 is a high-performance 8-bit FLASH microcontroller operating at up to 10 MIPS. It features 32KB program memory, 1536 bytes RAM, 256 bytes EEPROM, and 34 I/O pins in a 40-pin package. It includes one 8-bit and three 16-bit timers, an 8-channel 10-bit ADC, and SPI, I2C, and USART communication modules. With low power consumption and an operating voltage range of 2V to 5.5V, it is ideal for embedded control and automation applications.
المتحكم PIC18F452 هو متحكم دقيق 8-بت يعتمد على ذاكرة فلاش ويعمل بسرعة تصل إلى 10 MIPS. يحتوي على 32 كيلوبايت ذاكرة برنامج، و1536 بايت RAM، و256 بايت EEPROM، و34 منفذ إدخال/إخراج ضمن حزمة 40 طرفًا. يتضمن مؤقتًا واحدًا 8-بت وثلاثة مؤقتات 16-بت، ومحول ADC بـ8 قنوات وبدقة 10-بت، إضافة إلى واجهات SPI وI2C وUSART. يتميز باستهلاك طاقة منخفض ويعمل بين 2V و5.5V.
The PIC18F452 is a high-performance 8-bit microcontroller based on FLASH memory technology. It delivers up to 10 MIPS performance and is designed for advanced embedded control applications requiring speed, flexibility, and low power consumption.
Housed in a 40-pin package, the PIC18F452 provides 34 programmable I/O pins. It operates within a voltage range of 2V to 5.5V, making it compatible with both 3.3V and 5V systems. The device includes 32KB of Flash program memory, 1536 bytes of RAM, and 256 bytes of Data EEPROM for non-volatile storage.
It features one 8-bit timer and three 16-bit timers, providing versatile timing and control capabilities. The integrated 8-channel 10-bit ADC allows precise analog signal acquisition. Communication peripherals include SPI, I2C, and USART modules, enabling flexible serial communication.
The microcontroller supports several system reliability features such as Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer, Brown-out protection (in some variants), and a Watchdog Timer with its own internal RC oscillator. It also supports code protection mechanisms and a low-power sleep mode, consuming less than 0.2 µA in standby and about 1.6 mA during normal operation at 5V and 4 MHz.
CPU Architecture: 8-bit
Maximum Speed: 10 MIPS
Program Memory: 32KB Flash
RAM: 1536 bytes
Data EEPROM: 256 bytes
Operating Voltage: 2V – 5.5V
Package: 40-pin
I/O Pins: 34
1 × 8-bit Timer
3 × 16-bit Timers
8 Channels
10-bit Resolution
SPI
I2C
USART (UART)
External Oscillator: Supported
Internal Oscillator: Not available
Low-power Sleep Mode
Standby Current: < 0.2 µA
Operating Current: ~1.6 mA (5V, 4 MHz)
Power-on Reset (POR)
Power-up Timer (PWRT)
Oscillator Start-up Timer
Watchdog Timer with dedicated RC oscillator
Code Protection
| Pin Number | Pin Name | Description |
| 1 | MCLR/VPP | Master Clear (input) or High voltage ICSP programming enable pin mainly used for programming purposes. |
| 2 | RA0/AN0 | Bidirectional I/O pin of Port A bit 0 or Analog input 0 |
| 3 | RA1/AN1 | Bidirectional I/O pin of Port A bit 1 or Analog input 1 |
| 4 | RA2/AN2/VREF- | Bidirectional I/O pin of Port A bit 2 or Analog input 2 or A/D Reference (Low) Voltage. |
| 5 | RA3/AN3/VREF+ | Bidirectional I/O pin of Port A bit 3 or Analog input 3 or A/D Reference (High) Voltage. |
| 6 | RA4/T0CKI | Bidirectional I/O pin of Port A bit 4 or Timer 0 external clock input. |
| 7 | RA5/AN4/SS/LVDIN | Bidirectional I/O pin of Port A bit 5 or Analog input 4 or SPI Slave Select input or Low voltage Detect input. |
| 8 | RE0/RD/AN5 | Bidirectional I/O pin of Port E bit 0 or Read control for parallel slave port or Analog input 5 |
| 9 | RE1/WR/AN6 | Bidirectional I/O pin of Port E bit 1 or Write control for parallel slave port or Analog input 6 |
| 10 | RE2/CS/AN7 | Bidirectional I/O pin of Port E bit 2 or Chip select control for parallel slave port or Analog input 7. |
| 11 | VSS | Positive supply pin. |
| 12 | VDD | Ground supply pin. |
| 13 | OSC1/CLKI | Oscillator Crystal or External clock input. |
| 14 | OSC2/CLKO/RA6 | Bidirectional I/O pin of Port A bit 6 or Oscillator crystal or clock output. |
| 15 | RC0/T1OSO/T1CKI
| Bidirectional I/O pin of Port C bit 0 or Timer 1 Oscillator output or Timer 1/Timer 3 external clock input. |
| 16 | RC1/T1OSI/CCP2
| Bidirectional I/O pin of Port C bit 1 or Timer 1 Oscillator input or Capture 2 input, Capture 2 output, PWM 2 output. |
| 17 | RC2/CCP1 | Bidirectional I/O pin of Port C bit 2 or Capture 1 input, Capture1 output, PWM1 output |
| 18 | RC3/SCK/SCL | Bidirectional I/O pin of Port C bit 3 or Synchronous serial clock input/output for SPI mode or Synchronous serial clock input/output for 12C mode. |
| 19 | RD0/PSP0
| Bidirectional I/O pin of Port D bit 0 or Parallel slave Port Data |
| 20 | RD1/PSP1 | Bidirectional I/O pin of Port D bit 1 or Parallel slave Port Data. |
| 21 | RD2/PSP2 | Bidirectional I/O pin of Port D bit 2 or Parallel slave Port Data |
| 22 | RD3/PSP3 | Bidirectional I/O pin of Port D bit 3 or Parallel slave Port Data |
| 23 | RC4/SDI/SDA | Bidirectional I/O pin of Port C bit 4 or SPI Data In or 12C data I/O. |
| 24 | RC5/SDO | Bidirectional I/O pin of Port C bit 5 or SPI Data Out. |
| 25 | RC6/TX/CK | Bidirectional I/O pin of Port C bit 6 or USART Asynchronous Transmit or USART Synchronous Clock |
| 26 | RC7/RX/DT
| Bidirectional I/O pin of Port C bit 7 or USART Asynchronous Receive or USART Synchronous Data |
| 27 | RD4/PSP4 | Bidirectional I/O pin of Port D bit 4 or Parallel slave Port Data |
| 28 | RD5/PSP5 | Bidirectional I/O pin of Port D bit 5 or Parallel slave Port Data |
| 29 | RD6/PSP6 | Bidirectional I/O pin of Port D bit 6 or Parallel slave Port Data |
| 30 | RD7/PSP7 | Bidirectional I/O pin of Port D bit 7 or Parallel slave Port Data |
| 31 | VSS | Ground Supply pin |
| 32 | VDD | Positive supply pin |
| 33 | RB0/INT0 | Bidirectional I/O pin of Port B bit 0 or External Interrupt 0. |
| 34 | RB1/INT1 | Bidirectional I/O pin of Port B bit 1 or External Interrupt 1. |
| 35 | RB2/INT2 | Bidirectional I/O pin of Port B bit 2 or External Interrupt 2. |
| 36 | RB3/CCP2 | Bidirectional I/O pin of Port B bit 3 or Capture 2 input, Compare 2 output, PWM 2 output. |
| 37 | RB4
| Bidirectional I/O pin of Port B bit 4 with IOC (Interrupt-on-change) |
| 38 | RB5/PGN | Bidirectional I/O pin of Port B bit 5 with IOC (Interrupt-on-change) or Low Voltage ICSP programming enable pin |
| 39 | RB6/PG | Bidirectional I/O pin of Port B bit 6 with IOC (Interrupt-on-change) or In-Circuit Debugger and ICSP programming clock pin. |
| 40 | RB7/PGD | Bidirectional I/O pin of Port B bit 7 with IOC (Interrupt-on-change) or In-Circuit Debugger and ICSP programming data pin. |
This is a basic Mid-range 8-bit microcontroller unit that can be used in the following applications-