Try SerOut 0,N2400,[#DataOut].
Note: You should try the serial terminal in the free version of MicroCode Studio.
It's a LOT easier to use than Hyperterm.
Also look at DEBUG. It produces a lot smaller code & works at higher data rates
at slower osc speeds.
Here's an example with DEBUG at 9600 baud;
Code:@ device pic12F675, xt_osc, wdt_off, mclr_off, protect_off DEFINE OSC 4 DEFINE DEBUG_REG GPIO DEFINE DEBUG_BIT 0 ' GPIO.0 = serial output pin DEFINE DEBUG_BAUD 9600 DEFINE DEBUG_MODE 1 ' For DEBUG_MODE: 1 = inverted (direct connection), 0 = true (through MAX232) Loops VAR BYTE ANSEL = 0 CMCON = 7 Main: FOR Loops = "A" TO "Z" DEBUG Loops,13,10 NEXT Loops PAUSE 5000 GOTO Main END




Bookmarks