camelot2
11-09-2011, 05:18 PM
I am trying to multiply 3x10 and display the result
on the serial terminal included in BST. What gets
displayed is 6 !!! Can someone please tell me what
I am doing wrong? thanks for your help
I am using BST ver 0.19.3 and PropBasic ver 1.14
This is my program:
DEVICE P8X32A, XTAL1, PLL16X
XIN 5_000_000
BAUD CON "T115200" ' Baud rate for PC communications
TX PIN 30 HIGH ' Output pin for PC communications
ascii HUB STRING(20)
ans VAR LONG
PROGRAM Start
Start:
ans = 3 * 10
ascii = STR ans,10,1
SEROUT TX, BAUD, ascii ' Send to terminal
END
on the serial terminal included in BST. What gets
displayed is 6 !!! Can someone please tell me what
I am doing wrong? thanks for your help
I am using BST ver 0.19.3 and PropBasic ver 1.14
This is my program:
DEVICE P8X32A, XTAL1, PLL16X
XIN 5_000_000
BAUD CON "T115200" ' Baud rate for PC communications
TX PIN 30 HIGH ' Output pin for PC communications
ascii HUB STRING(20)
ans VAR LONG
PROGRAM Start
Start:
ans = 3 * 10
ascii = STR ans,10,1
SEROUT TX, BAUD, ascii ' Send to terminal
END