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 Share on other sites More sharing options...
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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.