caramoan tour package

caramoan tour package

Author Topic: help: serial communication with PIC16F877A  (Read 516 times)

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
help: serial communication with PIC16F877A
« on: November 23, 2011, 11:49:28 PM »
Picture 1:



Picture 2:



ginaya ko po ung connection sa picture 1 tapos nagtry ako nung sample program sa mikroC about UART kasi nga gusto kung matuto ng serial communication gamit ay pic16f877a ok naman ung pag build na burn ko na rin sa pic ko kaso nung ginamit ko ung usart terminal para icheck ayun ung lumabas sa picture 2. nung nag send ako ng 'a' walang lumabas na received kung anu-anong leters na ang sinend ko walang narereceived ung Usart terminal. diba dapat kapag nagsend ako ng 'a' dapat may a den lalabas.

Bale ganito dapat ung format:
Sent: a
Received: a

yan yung gus2 kong mangyare pero bat ayaw.

tska pasinin nio ung dalawang Received sa picture 2 ung nasa usart terminal after mareceived ung word na "Start" nagkaroon pa ng garbage value tapos hiwalay pa ung 'S' sa "tart". Pahelp naman kelangan ko kasing matuto actually may gui pa dapat yan sa C# kaso eto muna ung inaaral ko.

Philippine Electronics Forum

help: serial communication with PIC16F877A
« on: November 23, 2011, 11:49:28 PM »

Offline PlCUSER

  • Diesel Generator
  • *
  • Posts: 1909
  • Pogi/Ganda Points: 152
Re: help: serial communication with PIC16F877A
« Reply #1 on: November 24, 2011, 12:12:03 AM »
palitan mo ung "chuva" na folder name mo. baka sakaling gumana.  :D :D :D

Philippine Electronics Forum

Re: help: serial communication with PIC16F877A
« Reply #1 on: November 24, 2011, 12:12:03 AM »

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #2 on: November 24, 2011, 02:19:11 AM »
"picuser" pinalitan ko na ganun pa ren talaga.

Philippine Electronics Forum

Re: help: serial communication with PIC16F877A
« Reply #2 on: November 24, 2011, 02:19:11 AM »

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #3 on: November 24, 2011, 02:21:28 AM »
nga pala 16MHz ang crystal na gamet ko.---------------> for additional info sa problem ko

Philippine Electronics Forum

Re: help: serial communication with PIC16F877A
« Reply #3 on: November 24, 2011, 02:21:28 AM »

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1585
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: help: serial communication with PIC16F877A
« Reply #4 on: November 24, 2011, 06:11:32 AM »
TS please paki show naman ng schematic sa entire setup ng hardware mo pati na yung power supply. Salamat.
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: help: serial communication with PIC16F877A
« Reply #4 on: November 24, 2011, 06:11:32 AM »

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #5 on: November 24, 2011, 11:04:16 PM »
Power supply:


Whole ckt:


Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #6 on: November 24, 2011, 11:13:40 PM »
yan po tapos tinatry ko ung code sa picture 2.

additional info: 16MHZ crystal, USB-to-serial gamet kong cable from PIC16F877A to computer laptop po kasi gamet ko eh wala siang serial port

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1030
  • Pogi/Ganda Points: 161
  • Proton Orcad EasyPCB User
Re: help: serial communication with PIC16F877A
« Reply #7 on: November 25, 2011, 12:00:03 AM »
be sure na tama ang rx tx connection

pic                     pc
rx ---------------tx
tx----------------rx
gnd---------------gnd
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!

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1585
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: help: serial communication with PIC16F877A
« Reply #8 on: November 25, 2011, 12:05:26 AM »
Put a .1uF across the VDD and VSS pins as near as possible sa PIC po.
By the way hindi ba ito naka bread board sir?
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.

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #9 on: November 25, 2011, 09:46:56 AM »
Put a .1uF across the VDD and VSS pins as near as possible sa PIC po.
By the way hindi ba ito naka bread board sir?

naka breadboard po. Bale papalitan ko ung 104 na capacitor ng .1uF, so dalawang ganun. tama bo ba sir?

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1585
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: help: serial communication with PIC16F877A
« Reply #10 on: November 25, 2011, 10:00:34 AM »
^ Huwag lang palitan, 104=.1uC, ilagay lang as close as possible sa PIC mo sir.
Naka breadboard pala, most probably yan po ang dahilan. Baka meron mga loose contacts or may noise sa RX/TX line mo sir.
I know these is a dumb question, but matanong lang po, may suppy ba ang max232 mo sir?
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.

Offline SpongeBob

  • Lead Acid Battery
  • *******
  • Posts: 660
  • Pogi/Ganda Points: 33
Re: help: serial communication with PIC16F877A
« Reply #11 on: November 25, 2011, 10:04:45 AM »
naka breadboard po. Bale papalitan ko ung 104 na capacitor ng .1uF, so dalawang ganun. tama bo ba sir?

104 at 0.1uF pareho lang yun. lagyan mo sa VDD at VSS ng PIC at MAX, dagdagan mo na rin ng 100uF sa 5VDC.

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #12 on: November 25, 2011, 10:33:19 AM »
be sure na tama ang rx tx connection

pic                     pc
rx ---------------tx
tx----------------rx
gnd---------------gnd

sir mukhang tama nga kayo. nagawa ko na tama po keo! hay nako natanga nanaman ako. TY po TY rin po ser dummy_c

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #13 on: November 25, 2011, 10:34:44 AM »
^ Huwag lang palitan, 104=.1uC, ilagay lang as close as possible sa PIC mo sir.
Naka breadboard pala, most probably yan po ang dahilan. Baka meron mga loose contacts or may noise sa RX/TX line mo sir.
I know these is a dumb question, but matanong lang po, may suppy ba ang max232 mo sir?

wala nga po kanina hehehehehe....

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #14 on: November 25, 2011, 10:35:36 AM »
sorry po sa istorbo hehehehehe... pero ty pa ren

Offline Engr. Dacuycoy

  • Diesel Generator
  • *
  • Posts: 1030
  • Pogi/Ganda Points: 161
  • Proton Orcad EasyPCB User
Re: help: serial communication with PIC16F877A
« Reply #15 on: November 25, 2011, 10:38:28 AM »
musta na? ok na ba?
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!

Offline Nhicko

  • Size AA Battery
  • ****
  • Posts: 116
  • Pogi/Ganda Points: 1
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #16 on: November 25, 2011, 10:48:14 AM »

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1585
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: help: serial communication with PIC16F877A
« Reply #17 on: November 25, 2011, 12:17:27 PM »
Kulang lang ng supply?
Ahahahaha may +1 ka sa akin TS pinatawa mo ako. ;D
Na remember ko nangyari din ito noon. Nagpatulong yung classmate ko, halos isang oras tini troubleshoot namin, I assumed may supply na yung max232, yun pala wala. ;D
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.

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: help: serial communication with PIC16F877A
« Reply #18 on: November 25, 2011, 12:24:55 PM »
supply nga ang problema, baligtad yung input at output ng 7805 sa schematic eh ;D ;D ;D
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4825
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: help: serial communication with PIC16F877A
« Reply #19 on: November 25, 2011, 12:27:40 PM »
supply nga ang problema, baligtad yung input at output ng 7805 sa schematic eh ;D ;D ;D
paatras. wahehehehe

Philippine Electronics Forum

Re: help: serial communication with PIC16F877A
« Reply #19 on: November 25, 2011, 12:27:40 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com