Jump to content
ELFORUM - Forumul electronistilor

16F877 -> PC


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
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

: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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • 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