Can Port RC0 of PIC16F877 Output an Oscillator Signal for Blinking LEDs?

  • Thread starter Thread starter cyeokpeng
  • Start date Start date
  • Tags Tags
    Microcontroller
AI Thread Summary
Port RC0 of the PIC16F877 can indeed output an oscillator signal suitable for blinking LEDs, functioning as a Timer1 oscillator output. The frequency of this signal can be controlled by the external crystal oscillator clock frequency, and it typically produces a square wave signal with logic levels of 5V for high and 0V for low. LEDs can blink at frequencies above human perception, meaning they can turn on and off faster than the eye can detect, although there is a limit to how quickly they can respond. This limitation is generally much higher than the frequency sensitivity of human vision. Overall, the setup can effectively meet the design specifications for the remote-controlled boat's indicator light feature.
cyeokpeng
Messages
68
Reaction score
0
Hi,

One of my projects requires my team to build a remote-controlled boat. One of the features of the boat is an indicator light feature which will blink on and off to indicate that there is this ship nearby and signal to other ships to clear away during dim light conditions (for example visibility is poor due to fog or at night). OK, now is a simple simple question.

Can I use one of the ports (for example port RC0 of the PIC16F877) to output an oscillator output signal of a fixed frequency (the frequency, how to determine or control this frequency in the microcontroller? Is it dependent on the external crystal oscillator clock frequency?) since this port is designated as a Timer1 oscillator output?
How does the oscillator signal output of this port look like if I program the microcontroller to output the desired frequency I want? Is it a square wave signal with logic one at 5V say, and logic 0 at 0 V? If the signal is exactly as above, then I think the LED will blink on/off which satisfy our design specifications.
Another question on the LED, does LEDs have a frequency sensitivity that at a certain threshold frequency, it cannot change fast enough to blink on/off? Or is this limitation of the frequency dependent on how our eyes perceive it, not on the LED itself?
 
Engineering news on Phys.org
Usually the microcontroller executes instructions slower then the input oscillator frequency. You can look in the documentation for this or just set a port to alternate between +5 and ground and use an oscilloscope to measure the frequency at which it switches.

Another question on the LED, does LEDs have a frequency sensitivity that at a certain threshold frequency, it cannot change fast enough to blink on/off? Or is this limitation of the frequency dependent on how our eyes perceive it, not on the LED itself?
The led can turn off and on faster then our eyes can perceive. The LED does have a limit but that limit is far beyond the perception rate of human eyes.
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top