Details
BUY 16F872-I/SP https://www.utsource.net/itm/p/12591281.html
| Parameter | Description | Value |
|---|---|---|
| Part Number | Microcontroller | 16F872-I/SP |
| Package Type | Surface Mount Package | SOIC-18 |
| Operating Voltage | Supply Voltage Range | 2.0V to 5.5V |
| Clock Speed | Maximum Clock Frequency | 20 MHz |
| Program Memory | Flash Program Memory Size | 2K x 14 bits |
| Data Memory | RAM Data Memory Size | 256 x 8 bits |
| EEPROM | EEPROM Data Memory Size | 128 x 8 bits |
| I/O Pins | Number of I/O Pins | 13 |
| Timers | Number of Timers | 2 (8-bit Timer0, 16-bit Timer1) |
| Analog-to-Digital | ADC Channels | 10-bit, 8 channels |
| Interrupts | Number of Interrupt Sources | Multiple |
| Watchdog Timer | Watchdog Timer | Yes |
| Power Management | Low-Power Sleep Mode | Yes |
| Brown-Out Reset | Brown-Out Reset | Yes |
| Operating Temperature | Operating Temperature Range | -40°C to +85°C |
| Programming Interface | In-Circuit Serial Programming (ICSP) | Yes |
Instructions for Use
Power Supply:
- Connect VDD (Pin 18) to the positive supply voltage (2.0V to 5.5V).
- Connect VSS (Pin 8) to ground.
Clock Configuration:
- Use an external crystal or resonator for clocking by connecting it between OSC1 (Pin 13) and OSC2 (Pin 14).
- Alternatively, use the internal oscillator by configuring the appropriate configuration bits.
Reset Pin:
- MCLR (Pin 4) can be used as a reset input. Pull it high to enable normal operation. A low signal on this pin will reset the microcontroller.
I/O Configuration:
- Configure the I/O pins (RA0 to RA5, RB0 to RB7) as inputs or outputs using the TRISA and TRISB registers.
- Use the PORTA and PORTB registers to read from or write to the I/O pins.
Analog-to-Digital Converter (ADC):
- Enable the ADC module and select the channel using the ADCON0 and ADCON1 registers.
- Start a conversion and read the result from the ADRESH and ADRESL registers.
Timers:
- Configure Timer0 and Timer1 using the T0CON and T1CON registers.
- Set up the prescaler and enable interrupts if needed.
Interrupts:
- Enable global interrupts by setting the GIE bit in the INTCON register.
- Enable specific interrupt sources by setting the corresponding bits in the INTCON and other relevant registers.
Watchdog Timer:
- Enable the watchdog timer by setting the WDTE bit in the configuration word.
- Clear the watchdog timer periodically to prevent a reset.
Low-Power Sleep Mode:
- Enter sleep mode by setting the SLEEP bit in the SLEEP instruction.
- Wake up from sleep mode using an interrupt or a reset.
Programming:
- Use an ICSP programmer to program the microcontroller in-circuit.
- Ensure the programming voltage (PGM) is applied to the PGM pin (Pin 17) during programming.
For detailed information and specific register configurations, refer to the datasheet provided by Microchip Technology.
(For reference only)View more about 16F872-I/SP on main site
