Chat


How can I help you?

what crystall can we use??

@copilot what crystall can we use??
2y
For the PIC16F887 microcontroller (U1), you typically need a crystal oscillator to provide an external clock signal, especially if your application requires a stable and precise clock source. The PIC16F887 can operate at up to 20MHz, so you'll want a crystal within its operating frequency range but also consider your application's specific needs for timing accuracy and stability.
Given the information, here is a suggestion that considers a common scenario:
  • Crystal Frequency: 8MHz or 16MHz are popular choices, providing a balance between speed and power consumption. These frequencies are also well within the operating range of the PIC16F887 and are readily available.
  • Load Capacitance: Typically, crystals specify a load capacitance, often around 18pF to 22pF. Ensure that the crystal's specified load capacitance matches the circuit design, including the capacitance of the microcontroller's input pins and any additional capacitance you might add externally.
Assuming a choice of an 8MHz crystal with a load capacitance of 20pF, you would:
  • Connect the crystal across pins 13 (RA7/OSC1/CLKIN) and 14 (RA6/OSC2/CLKOUT) of the PIC16F887 (U1).
  • Add two load capacitors (let's designate them C1 and C2, values depending on the crystal's specifications, typically around 22pF) from each of the crystal pins to ground.
Based on the above, the connections would be:
  • Connect the crystal to U1:13 (RA7/OSC1/CLKIN) and U1:14 (RA6/OSC2/CLKOUT).
  • Connect C1:1 to U1:13 and C1:2 to ground.
  • Connect C2:1 to U1:14 and C2:2 to ground.
Adjust the capacitor values according to the crystal's datasheet for optimal performance. Remember, the exact frequency and capacitors you choose should align with your project's specific requirements for timing and precision.
2y
1
U1

pic

pic thumbnail