PIC16F72-I/SO

PIC16F72-I/SO


Specifications
SKU
12599508
Details

BUY PIC16F72-I/SO https://www.utsource.net/itm/p/12599508.html

Parameter Description Value
Package Type Physical package of the IC SOIC-18 (Small Outline Integrated Circuit)
Operating Voltage (VDD) Range of supply voltage 2.0V to 5.5V
Operating Temperature Range of ambient temperature -40掳C to +85掳C
Flash Program Memory Size of program memory 3.5K x 14 bits
EEPROM Data Memory Size of EEPROM memory 128 x 8 bits
RAM Data Memory Size of RAM memory 256 x 8 bits
Clock Frequency Maximum clock frequency 20 MHz
I/O Pins Number of I/O pins 14
Analog-to-Digital Converter (ADC) Number of ADC channels 10-bit, 8 channels
Timers Number and type of timers 2 x 8-bit Timer/Counters, 1 x 16-bit Timer/Counter
Comparator Number of comparators 2
Capture/Compare/PWM Modules Number of CCP modules 2
USART Module Serial communication module 1
MCLRE Pin Function Master Clear/Reset pin function Can be configured as input or reset
Brown-out Reset (BOR) Feature to reset the device when VDD is below a certain threshold Programmable
Watchdog Timer (WDT) Feature to reset the device if the software hangs Programmable
Power-on Reset (POR) Automatic reset when power is applied Yes
Low-Voltage Programming (LVP) Programming mode for low-voltage applications Yes
In-Circuit Debugging (ICD) Support for in-circuit debugging Yes
Programming Method Method to program the device In-Circuit Serial Programming (ICSP)

Instructions for Using the PIC16F72-I/SO

  1. Power Supply:

    • Connect the VDD pin to the positive supply voltage (2.0V to 5.5V).
    • Connect the VSS pin to ground.
  2. Clock Configuration:

    • Use an external crystal or resonator for the oscillator circuit, or configure the internal oscillator.
    • Connect the appropriate capacitors to the OSC1 and OSC2 pins if using an external crystal.
  3. MCLRE Pin:

    • If MCLRE is enabled, connect a pull-up resistor to VDD.
    • If MCLRE is disabled, configure it as a digital input.
  4. I/O Configuration:

    • Configure the I/O pins as inputs or outputs using the TRIS registers.
    • Set the direction of each pin by writing to the TRIS register (1 for input, 0 for output).
  5. ADC Configuration:

    • Select the ADC channel using the ADCON0 register.
    • Start the conversion by setting the GO/DONE bit.
    • Read the result from the ADRESH and ADRESL registers.
  6. Timer Configuration:

    • Configure the prescaler and timer mode using the T0CON, T1CON, and T2CON registers.
    • Enable interrupts if needed by setting the corresponding bits in the INTCON register.
  7. Comparator Configuration:

    • Configure the comparator inputs and outputs using the CMCON register.
    • Enable interrupts if needed by setting the corresponding bits in the INTCON register.
  8. USART Configuration:

    • Set the baud rate using the SPBRG register.
    • Configure the USART mode (asynchronous/synchronous) using the TXSTA and RCSTA registers.
    • Enable transmission and reception by setting the appropriate bits in the TXSTA and RCSTA registers.
  9. Programming:

    • Use an ICSP programmer to program the device.
    • Ensure the MCLR pin is held high during programming.
  10. Debugging:

    • Use an ICD (In-Circuit Debugger) to debug the code.
    • Connect the ICD to the ICSP header on your board.
  11. Reset Conditions:

    • The device will reset under the following conditions:
      • Power-on reset (POR)
      • Brown-out reset (BOR) if enabled
      • Watchdog timer reset (WDT) if enabled
      • External reset via the MCLR pin
  12. Low-Power Modes:

    • Enter sleep mode by setting the SLEEP bit in the PIR1 register.
    • Wake up from sleep mode using an interrupt or external reset.
  13. Brown-out Detection:

    • Enable BOR by setting the BOREN bit in the CONFIG1 register.
    • Adjust the brown-out threshold using the BORV bits in the CONFIG2 register.
  14. Watchdog Timer:

    • Enable WDT by setting the WDTE bit in the CONFIG1 register.
    • Clear the WDT periodically to prevent a reset.
  15. Low-Voltage Programming:

    • Enable LVP by setting the LVPEN bit in the CONFIG1 register.
    • Use the RB3/PGM pin for low-voltage programming.

By following these instructions, you can effectively use the PIC16F72-I/SO microcontroller in your projects.

(For reference only)

View more about PIC16F72-I/SO on main site