caramoan tour package

caramoan tour package

Author Topic: PIC16F628a mcu  (Read 363 times)

Offline ♥ ♥ 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/
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 »

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
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....
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 »

Offline Gwenda

  • Size D Battery
  • ******
  • Posts: 301
  • Pogi/Ganda Points: 24
  • Gender: Female
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?

Philippine Electronics Forum

Re: PIC16F628a mcu
« Reply #2 on: May 30, 2012, 04:07:27 PM »

Offline ♥ ♥ 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?
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 »

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • 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.
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 »

Offline Gwenda

  • Size D Battery
  • ******
  • Posts: 301
  • Pogi/Ganda Points: 24
  • Gender: Female
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.

Offline ♥ ♥ 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.
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

Offline ♥ ♥ 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 :D
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

Offline tiktak

  • Gas Turbine
  • **
  • Posts: 2864
  • Pogi/Ganda Points: 204
  • Gender: Male
    • Tiktakx's Blog
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 :D
8051 stuff

Offline ♥ ♥ 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?
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

Offline Gwenda

  • Size D Battery
  • ******
  • Posts: 301
  • Pogi/Ganda Points: 24
  • Gender: Female
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?

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3033
  • 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.

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1047
  • Pogi/Ganda Points: 166
  • 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 ;D unless you have a super computer
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 »

 

Privacy Policy

Contact Us: elabph@yahoo.com