PIC18F26K22-I/SP

PIC18F26K22-I/SP


Specifications
SKU
12612479
Details

BUY PIC18F26K22-I/SP https://www.utsource.net/itm/p/12612479.html

Below is the parameter table and instructions for the PIC18F26K22-I/SP microcontroller:

Parameter Table

Parameter Symbol Min Typ Max Unit Conditions
Supply Voltage VDD 2.0 - 5.5 V
Operating Temperature Ta -40 - 85 掳C
Clock Frequency fOSC 0 - 64 MHz Internal FRC oscillator
Program Memory Size PM - 32 - Kbytes Flash
Data Memory Size DM - 2 - Kbytes SRAM
EEPROM Size EEPROM - 256 - bytes
I/O Pins IOP - 28 - pins
Analog-to-Digital Converter (ADC) ADC - 10-bit - channels 13 channels
Digital-to-Analog Converter (DAC) DAC - 10-bit - channels 1 channel
Capture/Compare/PWM Modules CCP - 5 - modules
Serial Communication Interfaces SCI - 3 - modules SPI, I2C, USART
Timers Timers - 5 - modules 3 x 8-bit, 2 x 16-bit
Watchdog Timer (WDT) WDT - - - module
Brown-out Reset (BOR) BOR - - - module
Low-Voltage Programming (LVP) LVP - - - module
Power-on Reset (POR) POR - - - module
Power-saving Modes PS - - - modes Sleep, Idle
Package Type Package - - - PDIP-28 Through-hole package

Instructions

  1. Power Supply:

    • Connect the VDD pin to the positive power supply (2.0V to 5.5V).
    • Connect the VSS pin to the ground (GND).
  2. Oscillator Configuration:

    • The PIC18F26K22 supports various oscillator configurations including internal FRC, external crystal, and external clock.
    • Configure the oscillator using the configuration bits in the device configuration word.
  3. Programming:

    • Use a programmer such as MPLAB ICD 3 or PICkit 3 to program the device.
    • Ensure the Low-Voltage Programming (LVP) bit is configured correctly if using LVP mode.
  4. Reset:

    • The device has a built-in Power-on Reset (POR) and Brown-out Reset (BOR) to ensure reliable operation.
    • A reset can also be generated by the Watchdog Timer (WDT) or an external reset signal on the MCLR pin.
  5. Analog-to-Digital Converter (ADC):

    • Configure the ADC using the ADCON0, ADCON1, and ADCON2 registers.
    • Select the input channel and start the conversion using the GO/DONE bit.
  6. Digital-to-Analog Converter (DAC):

    • Configure the DAC using the DACCON0 and DACCON1 registers.
    • Set the output voltage by writing to the DACDATA register.
  7. Capture/Compare/PWM (CCP) Modules:

    • Configure the CCP modules using the CCPxCON and TMRx registers.
    • Use the CCP modules for capturing input signals, generating PWM outputs, or comparing timer values.
  8. Serial Communication Interfaces (SCI):

    • Configure the SPI, I2C, and USART modules using the respective control and status registers.
    • Set the communication parameters such as baud rate, data format, and clock polarity.
  9. Timers:

    • Configure the timers using the TMRx and PRx registers.
    • Use the timers for timing intervals, generating interrupts, or controlling PWM outputs.
  10. Power-saving Modes:

    • Enter sleep mode using the SLEEP instruction to reduce power consumption.
    • Use the idle mode to pause the CPU while keeping the peripherals active.
  11. Interrupts:

    • Configure the interrupt priority and enable specific interrupts using the INTCON and PIE registers.
    • Write interrupt service routines (ISRs) to handle interrupts.
  12. EEPROM:

    • Access the EEPROM using the EECON1 and EECON2 registers.
    • Write to the EEPROM using the EEWR instruction and read from it using the EEREAD instruction.
  13. Pin Configuration:

    • Configure the I/O pins using the TRISx registers for input or output.
    • Set the initial state of the pins using the PORTx registers.
  14. Debugging:

    • Use the In-Circuit Debugger (ICD) feature to debug the code.
    • Set breakpoints, step through the code, and inspect variables during debugging.

Note:

  • Always refer to the official Microchip datasheet for detailed information and specific register settings.
  • Ensure that all necessary decoupling capacitors are placed close to the VDD and VSS pins to maintain stable power supply and reduce noise.

This table and set of instructions should provide a comprehensive overview of the key parameters and operational guidelines for the PIC18F26K22-I/SP microcontroller.

(For reference only)

View more about PIC18F26K22-I/SP on main site