Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] Unknown type of waveform...!!

Status
Not open for further replies.

BHARGAVSHANKHALPARA

Junior Member level 3
Junior Member level 3
Joined
May 6, 2010
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
GUJARAT INDIA
Visit site
Activity points
1,592
Hello everyone...!!

i am working on one old circuit. Now i want to make same circuit with another microcontroller but i want same output as now old circuit is giving.

My old circuit contain ATMEGA16A Microcontroller. form its datasheet i come to know at its pin no.1 have three functions like XCK for USART Purpose, T0 for timer/counter external pulse for counting and third is Simple port I/O Pin.

I am getting squarewave in nature. which i have seen in my DSO NANO. see attached photo for wavefarm...!!

My question is that...

i can obtain this square type wave on pin no. 1 (positive terminal of DSO) only when i connect ground terminal of DSO with Positive supply which i have given to microcontroller. but when i connect ground terminal of DSO with supply ground i get straight line like dc of 0 volts.

so why this signal i can see only with respect to positive terminal...why not with ground.(as it should be show in inverted form but it should be....).

which type of this wave...?

some attributes i have read on DSO ( With DSO + terminal at pin no.1 of microcontroller and - terminal of DSO with positive supply of microcontroller) are as bellow...

1. Vrms = 3.04V
2. Vavg = -2.28V
3. Vp-p = 4.60V
4. Vmax = +320mV
5. Vmin = -4.28V

Wavefarm image is attached.

https://obrazki.elektroda.pl/1832621300_1409857001.jpg

Thank you...!!
 

Attachments

  • jpeg.jpg
    jpeg.jpg
    33.7 KB · Views: 82

Check V+ to V- supply voltage of unit with DMM before connecting to DSO then check using DSO ground for reference. Then connect and repeat DMM readings.

Some connection of power source may be the reason.
 

Hello sunny,

I have check supply voltage with DMM it shows 5v as it should. And than DSO it also shows ok.

When i connect DMM +ve with pin no.1 of micro and another with ground then i got also zero volt .but when connect -ve with positive it shows -4.3 V.
 

Looks like open drain output pin.

Hi FvM...

Thanks for your quick answer...!!

as your suggestion i connect external pull up of 22k with pin no.1 and than i can measure signal with both positive and ground reference...!! its open collector output.

next i want to ask that how i can generate that same kind of wave using that pin. because when i try to generate simple PWM signal of 50% duty cycle. it give output directly without connecting resistor.

i want to obtain same output because next part of circuit is working fine with this output.

Thanks...!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top