INCLUDE "modedefs.bas"
DEFINE CHAR_PACING 1000
kdg var word
pause 2000
SerOut PORTA.3,t2400,["nilai",13,11]
serin2 PORTA.2,t2400,[kdg.0,kdg.1 ]
SerOut PORTA.3,t2400,["nilainya ",kdg.0,kdg.1,13,11]
why the output show stange character??
what wrong???
Printable View
INCLUDE "modedefs.bas"
DEFINE CHAR_PACING 1000
kdg var word
pause 2000
SerOut PORTA.3,t2400,["nilai",13,11]
serin2 PORTA.2,t2400,[kdg.0,kdg.1 ]
SerOut PORTA.3,t2400,["nilainya ",kdg.0,kdg.1,13,11]
why the output show stange character??
what wrong???
PIC #
OSC speed
Hardware?
Config Fuses?
i suspect, at least, that your PIC have some analog stuff to be disable on PORTA
PIC16F84A and max 232
4Mhz
using windows hyperterminal to communicate
sorry not mention the component...
is there any way that i can input a number or letter with more that 1 character in a single variable.?
Seems to be a baudrate problem. Be sure you set this crap Hyperterminal Baudrate and all settings correctly first. Sorry... i hate Hyperterminal. That's the worst PC program i've never ever seen in my whole life. MicroCode Studio Serial Communicator is a good one.
Try to remove the CHAR_PACING stuff first or change Terrminal program
For what it worth, How about your schematics?
Are you sure that your crystal really run @4MHZ ?
For your last question, define an ARRAY variable of n elements then use SERIN2 with STR modifier.
i'm pretty sure it's not a valid statement. Have a look to SEROUT, SEROUT2 modifier listQuote:
serin2 PORTA.2,t2400,[kdg.0,kdg.1 ]
can you show me some example about using SERIN2 with STR modifier.
i still confuse about SERIN ,SERIN2 and SEROUT, SEROUT2.
please....