Specifications
SKU: 11192807
Parameter | Description | Value |
---|---|---|
Package | Type of package | SOT-23 (5-pin) |
Operating Voltage (Vdd) | Range of supply voltage | 2.0V to 5.5V |
Operating Temperature | Range of operating temperature | -40°C to +85°C |
Program Memory | Size of program memory | 1K x 14 bits |
Data Memory (RAM) | Size of data memory | 64 x 8 bits |
EEPROM | Size of EEPROM | 256 x 8 bits |
Oscillator | Types supported | Internal 4MHz, External RC, Crystal/Resonator |
I/O Pins | Number of I/O pins | 5 |
Timer | Number of timers | 1 (8-bit Timer0) |
Interrupts | Number of interrupt sources | 7 |
Watchdog Timer (WDT) | Available | Yes |
Power Management | Features | Low-power idle mode, Sleep mode |
Brown-out Reset (BOR) | Available | Yes |
In-Circuit Serial Programming (ICSP) | Available | Yes |
Package Marking | Marking on the IC | "MCHP" or "Microchip" followed by part number |
Instructions for Use:
Power Supply:
- Connect Vdd to the positive power supply (2.0V to 5.5V).
- Connect Vss to ground.
Oscillator Configuration:
- For internal 4MHz oscillator, no external components are needed.
- For external RC oscillator, connect an external resistor and capacitor between OSC1 and OSC2.
- For crystal/resonator oscillator, connect the crystal or resonator between OSC1 and OSC2, with capacitors to ground as specified in the datasheet.
I/O Pin Configuration:
- Configure I/O pins using the TRIS register (TRISA).
- Set the direction of each pin (input or output) by writing to the TRIS register.
- Read or write to the PORTA register to control the state of the I/O pins.
Timer0 Configuration:
- Configure Timer0 using the T0CON register.
- Set the prescaler value and enable the timer.
- Use the INTCON register to enable interrupts if needed.
Interrupts:
- Enable global interrupts by setting the GIE bit in the INTCON register.
- Enable specific interrupts by setting the corresponding bits in the INTCON and PIE registers.
- Write interrupt service routines (ISRs) to handle interrupts.
Watchdog Timer (WDT):
- Enable the WDT by setting the WDTE bit in the configuration word.
- Clear the WDT by writing to the WDTCON register to prevent a reset.
Power Management:
- Enter idle mode by setting the IDLE bit in the PCON register.
- Enter sleep mode by executing the SLEEP instruction.
Brown-out Reset (BOR):
- Enable BOR by setting the BOREN bit in the configuration word.
- The device will reset if the supply voltage drops below the threshold.
In-Circuit Serial Programming (ICSP):
- Connect the ICSP programming interface (MCLR, PGD, PGC) to a programmer.
- Follow the programming instructions provided by the programmer software.
Programming:
- Use a compatible programmer and software (e.g., MPLAB X IDE) to write and debug your code.
- Ensure the correct configuration bits are set for your application.
For detailed information, refer to the official Microchip PIC12F629 datasheet.
(For reference only)Inquiry - PIC12F629-I/SN