Philippine Electronics Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Philippine Electronics Forum
»
Digital Electronics
»
Microcontroller/Microprocessor Unit Projects and Programming
»
PIC Microcontrollers
(Moderators:
marcelino
,
paranz
) »
PIC16F628a mcu
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: PIC16F628a mcu (Read 355 times)
♥ ♥ Mel ♥ ♥
Size D Battery
Posts: 348
Pogi/Ganda Points: 2
PIC16F628a mcu
«
on:
May 30, 2012, 03:55:49 PM »
mga sir ask lang kung ano possible prob ng ginagwa ko program and circuit nag rrun nman po kaso meron error sa proteus
"simulation is not running in real time due to excessive cpu load" nagkaka ganito po kapag sinet ko 20mhz processor clock frequency sa proteus dun po kasi nakukuha talaga quality ng program, kpag sinet ko po ng 10mhz below medyo hindi na maganda pakinggan yung sound.
eto po program
Device = 16F628A
Xtal 20
All_Digital true
Dim loop As Byte
Symbol pin = PORTA.0
theme:
Sound pin, [50,60,70,20,85,120,83,40,70,20,50,20,70,20,90,120,90,20,98,160]
DelayMS 250
For loop = 128 To 255
Sound pin , [loop,2]
Next
Sound pin, [43,80,63,20,77,20,71,80,51,20,90,20,85,140,77,20,80,20,85,20,_
90,20,80,20,85,60,90,60,92,60,87,_
60,96,70,0,10,96,10,0,10,96,10,0,_
10,96,30,0,10,92,30,0,10,87,30,0,_
10,96,40,0,20,63,10,0,10,63,10,0,_
10,63,10,0,10,63,20]
DelayMS 10000
GoTo theme
http://imageshack.us/photo/my-images/513/82992334.jpg/
Logged
Truth may suffer but it cannot perish -St. Teresa of Jesus
"All is well when we seek only the Divine Pleasure"
-St. Therese of the Child Jesus
Philippine Electronics Forum
PIC16F628a mcu
«
on:
May 30, 2012, 03:55:49 PM »
glutnix_neo
Technical People
Nuclear Reactor
Posts: 4162
Pogi/Ganda Points: 166
Gender:
A journey to a thousand lines begins w/ LED Blink
Re: PIC16F628a mcu
«
Reply #1 on:
May 30, 2012, 04:03:04 PM »
PC mo may problema, CPU dyan malamang eh CPU ng PC mo....
Logged
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com
Philippine Electronics Forum
Re: PIC16F628a mcu
«
Reply #1 on:
May 30, 2012, 04:03:04 PM »
Gwenda
Size D Battery
Posts: 301
Pogi/Ganda Points: 24
Gender:
Re: PIC16F628a mcu
«
Reply #2 on:
May 30, 2012, 04:07:27 PM »
Looking at your circuit, ano ba yung LS1 sounder mo, Piezo o magnetic (speaker)? Kasi kung magnetic dapat meron DC isolation gaya ng non-polarized capacitor kundi maglo-load nga sa uC. Ano pa yung Q1 circuit mo?
Logged
Philippine Electronics Forum
Re: PIC16F628a mcu
«
Reply #2 on:
May 30, 2012, 04:07:27 PM »
♥ ♥ Mel ♥ ♥
Size D Battery
Posts: 348
Pogi/Ganda Points: 2
Re: PIC16F628a mcu
«
Reply #3 on:
May 30, 2012, 04:12:15 PM »
piezo sounder po gamit ko. hindi ko po masyado gets yung circuit paano po kung magnetic sounder gamit?
Logged
Truth may suffer but it cannot perish -St. Teresa of Jesus
"All is well when we seek only the Divine Pleasure"
-St. Therese of the Child Jesus
Philippine Electronics Forum
Re: PIC16F628a mcu
«
Reply #3 on:
May 30, 2012, 04:12:15 PM »
dummy_c
Diesel Generator
Posts: 1588
Pogi/Ganda Points: 162
Gender:
If I die 2nyt, 8's bcoz maimai is not at my side!
Re: PIC16F628a mcu
«
Reply #4 on:
May 30, 2012, 04:19:38 PM »
May example circuit diyan sa proteus na nag emit ng sounds.
Logged
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.
Philippine Electronics Forum
Re: PIC16F628a mcu
«
Reply #4 on:
May 30, 2012, 04:19:38 PM »
Gwenda
Size D Battery
Posts: 301
Pogi/Ganda Points: 24
Gender:
Re: PIC16F628a mcu
«
Reply #5 on:
May 30, 2012, 04:24:51 PM »
Ang piezo kasi ay parang capacitor, open circuit sa DC signal. Kaya kahit na steady Hi or Lo ang output ng micro hindi ma pull down ang V+ na pinagkakabitan ng other side ng piezo o sounder mo. Kung magnetic naman, continuous circuit ang DC signal na output ng micro kaya maaaring ma-load ang device kung naka steady Lo ang port pin at nasa V+ naman ang kabila ng speaker.
Ang piezo ay di na kailangan ang resistor (R4) to V+. R3, Q1 & R4 do not serve any purpose as in the circuit.
Logged
♥ ♥ Mel ♥ ♥
Size D Battery
Posts: 348
Pogi/Ganda Points: 2
Re: PIC16F628a mcu
«
Reply #6 on:
May 30, 2012, 04:27:20 PM »
C828 po Q1 ano po pwede replacement na transistor d2? wala po kasi available na c828 sa proteus.
Logged
Truth may suffer but it cannot perish -St. Teresa of Jesus
"All is well when we seek only the Divine Pleasure"
-St. Therese of the Child Jesus
♥ ♥ Mel ♥ ♥
Size D Battery
Posts: 348
Pogi/Ganda Points: 2
Re: PIC16F628a mcu
«
Reply #7 on:
May 30, 2012, 04:29:40 PM »
ty po ate pwede pala i connect siya direkta sa Uc then yung isa pin sa Ground
Logged
Truth may suffer but it cannot perish -St. Teresa of Jesus
"All is well when we seek only the Divine Pleasure"
-St. Therese of the Child Jesus
tiktak
Gas Turbine
Posts: 2859
Pogi/Ganda Points: 203
Gender:
Re: PIC16F628a mcu
«
Reply #8 on:
May 30, 2012, 04:30:55 PM »
general purpose lang naman ang C828, so 2N3904 nalang gamitin mo, mabigat talaga sa proteus kapag may analog part, kaya mas maganda padin mag simulate sa actual
Logged
8051 stuff
♥ ♥ Mel ♥ ♥
Size D Battery
Posts: 348
Pogi/Ganda Points: 2
Re: PIC16F628a mcu
«
Reply #9 on:
May 30, 2012, 04:33:57 PM »
^
Sir kung ganun po ginawa ko sa actual tpos ganun yung circuit ko ano po possible na mangyari nun? masisira po ba Uc?
Logged
Truth may suffer but it cannot perish -St. Teresa of Jesus
"All is well when we seek only the Divine Pleasure"
-St. Therese of the Child Jesus
Gwenda
Size D Battery
Posts: 301
Pogi/Ganda Points: 24
Gender:
Re: PIC16F628a mcu
«
Reply #10 on:
May 30, 2012, 06:14:55 PM »
What is the purpose ba ng Q1 circuit? The only thing I could think is- to reset LS1 or to discharge its pin that's connected to R4 when the uC RA0 goes Low. Is that necessary?
Logged
RiDdLeR???
Hydroelectric
Posts: 3032
Pogi/Ganda Points: 208
Re: PIC16F628a mcu
«
Reply #11 on:
May 30, 2012, 06:40:03 PM »
Simple lang .... hindi kaya isimulate ng pc mo ang proteus circuit mo running at 20Mhz. Anandar siya but not in real time kaya putol putol ang sound output.
Logged
http://goo.gl/XASfW
Engr. Dacuycoy
Diesel Generator
Posts: 1032
Pogi/Ganda Points: 163
Proton Orcad EasyPCB User
Re: PIC16F628a mcu
«
Reply #12 on:
May 30, 2012, 06:41:30 PM »
no way you can simulate sound command in proteus
unless you have a super computer
Logged
I'm a Mechanically trained, electronic to me is just an hobby and if I can do it, so can you!
Don't get discouraged by those so called "EXPERT"! I can tell you most of the time they "TALK" only but with no practical results.
Seldom people succeed the first time, just keep on trying!
Philippine Electronics Forum
Re: PIC16F628a mcu
«
Reply #12 on:
May 30, 2012, 06:41:30 PM »
Print
Pages: [
1
]
Go Up
« previous
next »
Philippine Electronics Forum
»
Digital Electronics
»
Microcontroller/Microprocessor Unit Projects and Programming
»
PIC Microcontrollers
(Moderators:
marcelino
,
paranz
) »
PIC16F628a mcu
Privacy Policy
Contact Us: elabph@yahoo.com