Photosensitive Resistor LDR Sensor Original price was: ৳ 80.00.Current price is: ৳ 50.00.
Back to products
BC548 NPN Transistor Original price was: ৳ 8.00.Current price is: ৳ 4.00.

PIC16F628 Microcontroller

Specifications:

  • Microcontroller: PIC16F628
  • Architecture: 8-bit RISC
  • Operating Voltage: 2.0V – 5.5V
  • CPU Speed: 20 MHz (5 MIPS)
  • Flash Program Memory: 2KB (2,048 words)
  • Data RAM: 224 bytes
  • EEPROM: 128 bytes (non-volatile)
  • Number of I/O Pins: 16
  • Timers: 2 (8-bit and 16-bit)
  • Interrupts: 12 (including external and peripheral interrupts)
  • PWM Outputs: 1
  • Serial Communications: USART (Universal Synchronous Asynchronous Receiver Transmitter)
  • Comparators: 2
  • Watchdog Timer: Programmable with on-chip oscillator
  • Oscillator Options: Internal and external clock up to 20 MHz
  • Power-Saving Modes: Sleep mode with low power consumption

Special Features:

  • RISC Architecture: The PIC16F628 employs a Reduced Instruction Set Computing (RISC) architecture, which offers 35 single-word instructions. This makes programming more straightforward and speeds up execution since most instructions execute in a single cycle.
  • Internal Oscillator: Built-in 4 MHz internal oscillator, eliminating the need for an external crystal or clock source in many applications.
  • EEPROM Memory: Built-in 128 bytes of EEPROM for storing non-volatile data, such as calibration values or configuration settings.
  • In-Circuit Serial Programming (ICSP): Supports ICSP, allowing you to program or reprogram the microcontroller while it is embedded in your circuit.
  • Low Power Consumption: Designed with power-saving features like sleep mode and a watchdog timer, making it ideal for battery-operated devices.
  • Peripheral Pin Select (PPS): Allows flexible configuration of the microcontroller’s I/O functions.
  • Flexible Oscillator Options: Can use either an internal oscillator or an external one up to 20 MHz.
  • Interrupt Control: Supports up to 12 interrupt sources, making it suitable for real-time applications.

Original price was: ৳ 170.00.Current price is: ৳ 135.00.

Specification

Overview

Wiring Connections:

  • VDD: Connect to the positive supply voltage (2.0V – 5.5V).
  • VSS: Connect to ground.
  • MCLR: External master clear (reset) pin. Connect to a reset switch or pull-up resistor.
  • OSC1/OSC2: For external clock sources if using an external crystal oscillator.
  • I/O Pins (RA0 – RA4, RB0 – RB7): General-purpose input/output pins for interfacing with other components such as sensors, actuators, and displays.
  • TX/RX: USART pins for serial communication (TX for transmission, RX for reception).

For programming with ICSP:

  • VPP: Connect to the programming voltage (usually 12V).
  • PGD: Data line for in-circuit programming.
  • PGC: Clock line for in-circuit programming.

Power:

  • Operating Voltage: The microcontroller works within a range of 2.0V to 5.5V, making it compatible with both 3.3V and 5V logic circuits.
  • Current Consumption: consumes very little power, especially in sleep mode (as low as a few microamps).

Input and Output:

  • Digital I/O: 16 general-purpose I/O pins can be configured as either inputs or outputs for controlling LEDs, switches, sensors, etc.
  • PWM Output: Provides one PWM (Pulse Width Modulation) output, useful for motor control or dimming LEDs.
  • Analog Input: Some I/O pins can be configured for analog input for interfacing with analog sensors.
  • USART: Provides serial communication capability for interfacing with other microcontrollers or external devices like GPS modules, sensors, or wireless transceivers.
  • Interrupt Input: Capable of handling external interrupts for real-time response to events like button presses or sensor changes.

Physical Characteristics:

  • Package: Available in various packages, including DIP-18 (Dual Inline Package) for easy prototyping on breadboards, and surface-mount packages like SOIC.
  • Dimensions: DIP-18 has a width of 7.3 mm and a length of 22 mm.
  • Pins: 18 pins in the DIP package, with other options available for surface mounting.
  • Material: Standard silicon encapsulated in epoxy plastic for durability.

Technical Specifications:

  • Instruction Set: Uses a 35-instruction set optimized for simplicity and speed. Most instructions execute in one clock cycle except for program branches.
  • Clock Speed: Runs at up to 20 MHz, with each instruction cycle taking 4 clock cycles, providing 5 MIPS (Million Instructions Per Second) at the highest speed.
  • Timers: Includes an 8-bit timer (Timer0) and a 16-bit timer (Timer1), which are useful for creating delays, measuring time intervals, or generating periodic interrupts.
  • USART: Full-duplex serial communication through the TX and RX pins, useful for interfacing with devices such as computers or wireless modules.
  • Comparators: The two onboard analog comparators allow comparison between two input voltages, making it ideal for simple analog sensor interfacing.

Additional Features:

  • Watchdog Timer (WDT): Ensures that the system resets if the code becomes unresponsive, preventing system crashes.
  • Programmable Code Protection: To prevent unauthorized access or copying of code, the PIC16F628 includes a code protection feature.
  • Sleep Mode: Significantly reduces power consumption during idle periods, ideal for power-sensitive applications.
  • Power-on Reset and Brown-out Detection: Ensures reliable operation by resetting the microcontroller when power is unstable.
  • In-Circuit Debugging (ICD): Supports in-circuit debugging, allowing you to troubleshoot the program while it’s running.

How to Use:

  1. Programming:
    • The PIC16F628 is programmed using ICSP, requiring a PIC programmer. Software like MPLAB X IDE can be used for writing and compiling code in assembly or C language.
  2. Connecting Power:
    • Provide the microcontroller with a supply voltage between 2.0V and 5.5V through the VDD pin.
  3. I/O Pin Configuration:
    • Configure the I/O pins using the TRISA and TRISB registers. Set a pin to ‘0’ to make it an output or ‘1’ to make it an input.
  4. Timers:
    • Utilize Timer0 or Timer1 for generating delays, creating precise timing functions, or measuring input signals.
  5. Serial Communication:
    • Set up the USART module for serial communication. Use the TX and RX pins for transmitting and receiving data from peripherals.
  6. Analog Input:
    • Configure the necessary pins as analog inputs for interfacing with analog sensors or reading variable voltage inputs.
  7. Sleep Mode:
    • Activate sleep mode in battery-operated projects to save power, and the microcontroller will wake up when an interrupt occurs.
  8. Watchdog Timer (WDT):
    • Program the watchdog timer to reset the system if it becomes unresponsive, ensuring that the program runs continuously without crashing.

Applications:

  • Home Automation: Controls lighting, security systems, and home appliances.
  • Robotics: Used as the brain for small robots or autonomous systems, controlling motors, sensors, and communication modules.
  • Data Logging: Works as a central controller in data-logging systems, using EEPROM for storage and USART for communication with external storage or display modules.
  • Battery-Operated Devices: Power-efficient and reliable for portable, battery-powered systems such as remote sensors or handheld devices.
  • Industrial Control: Suitable for automation tasks, such as controlling relays, motors, or valves in factory environments.

 

The PIC16F628 is a versatile and affordable microcontroller with a wide range of features, including RISC architecture, EEPROM memory, and low power consumption. It’s ideal for various embedded applications, ranging from home automation and robotics to industrial control systems. With its combination of I/O pins, timers, PWM, and serial communication, the PIC16F628 is well-suited for both beginner and advanced projects.

Essesntial Products

0.01µF 100V Ceramic Capacitor

Original price was: ৳ 25.00.Current price is: ৳ 15.00.

0.1µF 50V Capacitor

Original price was: ৳ 5.00.Current price is: ৳ 3.00.

0.39-Inch 1-Digit 7-Segment Green Common Anode Display

Original price was: ৳ 100.00.Current price is: ৳ 60.00.

0.39-Inch 1-Digit 7-Segment Green Common Cathode Display

Original price was: ৳ 88.00.Current price is: ৳ 55.00.

0.39-Inch 1-Digit 7-Segment Red Common Anode Display

Original price was: ৳ 90.00.Current price is: ৳ 55.00.

0.39-Inch 1-Digit 7-Segment Red Common Cathode Display

Original price was: ৳ 90.00.Current price is: ৳ 55.00.

Customer Reviews

0 reviews
0
0
0
0
0

There are no reviews yet.

Be the first to review “PIC16F628 Microcontroller”

Your email address will not be published. Required fields are marked *

More Like This

Original price was: ৳ 70.00.Current price is: ৳ 50.00.
Original price was: ৳ 75.00.Current price is: ৳ 67.00.
Original price was: ৳ 260.00.Current price is: ৳ 229.00.
Original price was: ৳ 70.00.Current price is: ৳ 55.00.
Original price was: ৳ 90.00.Current price is: ৳ 80.00.
Original price was: ৳ 60.00.Current price is: ৳ 51.00.
Original price was: ৳ 15.00.Current price is: ৳ 5.00.
Original price was: ৳ 160.00.Current price is: ৳ 135.00.
Original price was: ৳ 60.00.Current price is: ৳ 39.00.
Original price was: ৳ 270.00.Current price is: ৳ 255.00.
Original price was: ৳ 10.00.Current price is: ৳ 7.00.