caramoan tour package

caramoan tour package

Author Topic: ascii serial ttl communication w/ pic16f84a  (Read 754 times)

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
ascii serial ttl communication w/ pic16f84a
« on: April 03, 2010, 09:11:00 PM »
patulong naman po..ung kit q kxe..ascii code n ung binabato n serial ttl...e2 oh>>>
InRange,-0250.6,0010.0,-0150.2,+0.6228,220.39,0.5
806...ang gz2 ko lng pong abangan ay ung power factor parameter.sa ex. po ay ung "+0.6228"...gz2 ko po xang gmiting input sa pic16f84a...watever  na mging value ung maread nya at ibato nya..my certain command po sa microcontroller na mag-out sya as 4 pins sa portb..kaht maapailaw lng muna led..plzzz reply po...

Philippine Electronics Forum

ascii serial ttl communication w/ pic16f84a
« on: April 03, 2010, 09:11:00 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4825
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: ascii serial ttl communication w/ pic16f84a
« Reply #1 on: April 03, 2010, 09:27:06 PM »
maliit yung code space for the 84a
i will try to post a hex file.
paano ba? good, bad. error and fault??? kaya 4 pins gusto mo i out?
yan yung egizmo module right?

Philippine Electronics Forum

Re: ascii serial ttl communication w/ pic16f84a
« Reply #1 on: April 03, 2010, 09:27:06 PM »

Offline 'yus

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4251
  • Pogi/Ganda Points: 299
  • Gender: Male
  • hw -> fw -> sw
    • yus' projects
Re: ascii serial ttl communication w/ pic16f84a
« Reply #2 on: April 03, 2010, 09:31:59 PM »
AB NKKBS K N PL  ;D

pwede mong abangan yung 4th semicolon na mare-receive sa UART.
then read/store the succeeding characters until na may ma-receive ulit na semicolon (or ma-reach yung certain number of characters). :)
join  - Philippine Electronics and Robotics Enthusiasts Club - www.philrobotics.com

Philippine Electronics Forum

Re: ascii serial ttl communication w/ pic16f84a
« Reply #2 on: April 03, 2010, 09:31:59 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4825
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: ascii serial ttl communication w/ pic16f84a
« Reply #3 on: April 03, 2010, 09:50:58 PM »
comma kaya! hehehe.

so after nang carriage return 0x0D
count lang nang comma 0x002C...
hehehe. thanks.
string manipulation gamit ko sa fc. grrr

Philippine Electronics Forum

Re: ascii serial ttl communication w/ pic16f84a
« Reply #3 on: April 03, 2010, 09:50:58 PM »

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #4 on: April 03, 2010, 09:59:09 PM »
am..anu po eh..gz2 q po mg out ng 16 condition..kxe power factor correction po ang project q

Philippine Electronics Forum

Re: ascii serial ttl communication w/ pic16f84a
« Reply #4 on: April 03, 2010, 09:59:09 PM »

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #5 on: April 03, 2010, 10:00:55 PM »
pnu  q po aabngan  ung 4th semicolon sa source code..la po kxe ang ganung background sa serial ttl w/ pic eh

Offline 'yus

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4251
  • Pogi/Ganda Points: 299
  • Gender: Male
  • hw -> fw -> sw
    • yus' projects
Re: ascii serial ttl communication w/ pic16f84a
« Reply #6 on: April 03, 2010, 10:01:34 PM »
comma kaya! hehehe.


oopss.. sorry..
comma dapat ang aabangan, instead of semicolon..
join  - Philippine Electronics and Robotics Enthusiasts Club - www.philrobotics.com

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #7 on: April 03, 2010, 10:06:44 PM »
pnu po  aabangan ung 4th cama????

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4825
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: ascii serial ttl communication w/ pic16f84a
« Reply #8 on: April 03, 2010, 10:08:49 PM »
if CR (carriage return)
   if CM (comma)
    if CM
     if CM
       if CM
           Get power factor value
               store to a variable
else
repeat..

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #9 on: April 03, 2010, 10:10:45 PM »
ayan po ung power analyzer sa e-gizmo

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #10 on: April 03, 2010, 10:11:46 PM »
wala n po b ko,,kilangan i-include jan mr.insomartin

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4825
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: ascii serial ttl communication w/ pic16f84a
« Reply #11 on: April 03, 2010, 10:18:14 PM »
psuedo code po iyan. sorry. anong programming compiler po gamit nyo?

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #12 on: April 03, 2010, 10:18:47 PM »
sir insomartin..bka pde mo mhingi ung buong source code..wala p po kxe aqng ganung background sa uart eh..

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #13 on: April 03, 2010, 10:21:28 PM »
ammmm...picbasic pro compiler lng po gamit q eh

Offline adrianmlopez

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 0
Re: ascii serial ttl communication w/ pic16f84a
« Reply #14 on: April 03, 2010, 10:34:08 PM »
reply naman po kau..bgyan nyo namn po aq ng ryt source para sa project q...kilngan q n po kxe  ipisa un sa april 10...thnx po

Philippine Electronics Forum

Re: ascii serial ttl communication w/ pic16f84a
« Reply #14 on: April 03, 2010, 10:34:08 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com