Bamse Posted August 30, 2007 Share Posted August 30, 2007 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
Bamse Posted August 31, 2007 Author Share Posted August 31, 2007 :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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now