Jump to content
ELFORUM - Forumul electronistilor

16F877 -> PC


Bamse

Recommended Posts

Sal :smt006

... am si eu o intrebare pentru cine scrie cod cu Proton Basic :

 

cu ce comanda trimiteti date pe interfata RS232 catre PC

SEROUT , HRSOUT , HSEROUT

am incercat cu toate si primesc numai date eronate :rolleyes:

va rog daca se poate sa puneti si un exeplu pe 16F877

 

Multam` :partyman:

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

:supz: GATA Merge am rezolvat :

 

DEVICE 16F877

XTAL = 8

 

HSERIAL_BAUD = 9600 ' Set baud rate to 9600

HSERIAL_RCSTA = %10010000 ' Enable serial port and continuous receive

HSERIAL_TXSTA = %00100000 ' Enable transmit and asynchronous mode

HSERIAL_CLEAR = ON ' Optionally clear the buffer before receiving

 

DIM A As Byte

 

Start:

HSerIn [A]

HSerOut [A]

GOTO Start

End

 

`...primesc de la PIC ce trimit de la PC

:smt006

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.




×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines