caramoan tour package

caramoan tour package

Author Topic: Adcon1 register  (Read 179 times)

Offline ♥ ♥ Mel ♥ ♥

  • Size D Battery
  • ******
  • Posts: 348
  • Pogi/Ganda Points: 2
Adcon1 register
« on: June 05, 2012, 02:35:13 PM »
mga sir ano po difference ng ADC to analog comparator. Yung po kasi RA pins ng PIC16f628a pang analog comparator lang, pic16f877a ADC.
pero ayon po kay wiki http://en.wikipedia.org/wiki/Comparator medyo na c-confuse po ako ???
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

Adcon1 register
« on: June 05, 2012, 02:35:13 PM »

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3032
  • Pogi/Ganda Points: 208
Re: Adcon1 register
« Reply #1 on: June 06, 2012, 06:16:42 PM »
parehong merong analog comparator at adc ang 628a at 877a.  pareho silang ginagamit na interface between analog and digital domain.  ang analog comparator is the building block of the adc, para siyang 1-bit adc.

Philippine Electronics Forum

Re: Adcon1 register
« Reply #1 on: June 06, 2012, 06:16:42 PM »

Offline ♥ ♥ Mel ♥ ♥

  • Size D Battery
  • ******
  • Posts: 348
  • Pogi/Ganda Points: 2
Re: Adcon1 register
« Reply #2 on: June 06, 2012, 11:24:05 PM »
sir alyas pwede po ako humingi ng application or simple program using analog comparator project para po mas lalo ko maiintindihan yung topic :D tnx po

bali po nung sinubukan ko yung program sa pic16f628A ayaw po ng codes, Proton po gamit ko, kaya nag shift nlang ako sa PIC16F877A pero hindi suitable kasi 40pins, nagkakaroon po ng prob sa line 'ADCON1 = $82' kapag sa PIC28A


Device 16F877A
Xtal=20
LCD_DTPin PORTC.4
LCD_RSPin PORTC.0
LCD_ENPin PORTC.1
Adin_Res 10
Adin_Tad frc
Adin_Stime 100
ADCON1 = $82

Input PORTA.0
Dim raw As Word
Dim v As Float
Print Cls
loop:
raw=ADIn 0               

Print At 1,1, "Raw:", Dec3 raw                   
v=(5/1023)*raw               
Print At 2,1, Dec4 v                           
DelayMS 2000
GoTo loop
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: Adcon1 register
« Reply #2 on: June 06, 2012, 11:24:05 PM »

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1032
  • Pogi/Ganda Points: 163
  • Proton Orcad EasyPCB User
Re: Adcon1 register
« Reply #3 on: June 06, 2012, 11:37:18 PM »
walang adc ang 16f628
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: Adcon1 register
« Reply #3 on: June 06, 2012, 11:37:18 PM »

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3032
  • Pogi/Ganda Points: 208
Re: Adcon1 register
« Reply #4 on: June 07, 2012, 05:09:27 PM »
my bad sabi ni engr wala daw adc si 628a ....  f88 kasi gamit in place of a 628a dati w/c has adc.  kay engr ka paturo pagdating sa proton, expertise nya yon ;D

Philippine Electronics Forum

Re: Adcon1 register
« Reply #4 on: June 07, 2012, 05:09:27 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com