I'm using PIC16f877 connected to MAX232. Using serout no problem, but when i use the following, nothing appears in hyperterminal
Code:define OSC 20 DEFINE HSER_BAUD 9600 ' Select the baud rate DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0 DEFINE HSER_SPBRG 31 ' 20MHZ 9600, brgh=0 DEFINE HSER_CLROERR 1 ' Clear overflow automatically OPTION_REG.7 = 0 'enable internal pull up GPPU OPTION_REG.6 = 1 'falling edge INT ADCON1= %00000111 TRISE = 0 ' all output TRISC = %10000000 loop: pause 1000 low led Hserout ["Hello World", 13, 10] goto loop




Bookmarks