Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

signal

Status
Not open for further replies.

guleng89

New Member
hi,im new here..

im program a led blinking into a pic16f877a with portb pin 7 as the output with 250ms delay.
when i measure the output with oscilloscope, then waveform is like a saw,so is possible to make it square wave?

thx..
 
Is the port TRIS always set to OUTPUT and you are toggling OUT from 0 to1 ?
Are you using a resistor in series with the LED?
Is the Cathode of the LED grounded; or is the Anode tied to Vcc?
 
hi,im new here..

im program a led blinking into a pic16f877a with portb pin 7 as the output with 250ms delay.
when i measure the output with oscilloscope, then waveform is like a saw,so is possible to make it square wave?

thx..

Just by chance what settings are you using for vertical coupling on your scope? I would venture you are AC coupling to the scope and this is a very slow pulse repetition rate. If the LED is producing nice sharp blinks then you should have good pulses and I would venture you are set up for AC coupling or using a probe in serious need of compensation on the scope. DC couple your signal in your scope settings.

Just my guess...
Ron
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top