Hi all! Have being trying to send a message from a PIC16F786 to my PC..Have been using the following schematic that was found from the book of C. Hellebuyck "Programming PIC Microcontrollers with PicBasic".
The code that I have been using is the following:
-------------------------------------------------------------------
include "modedefs.bas"
define osc 10
trisb = %00000010
portb.0 = 1
serout portb.1, t2400, ["hello", 10, 13]
end
--------------------------------------------------------------------
In the seiral communications window of Microcode studio something is received but it is a set of characters rather than "hello"
Is there something wrong with the code?
What about the RS232 Cable connections??
I am using the following configuration in my DB9 connector:
Pins 1,6,4: short-circuit
Pin 2: T2out
Pin3: R2in
Pin 5: Ground
Pins 7,8: Short circuit
Pin9: unused
Would it be better to use the schematic as shown in Help/ICD etc.. of the Microde code studio help and HSEROUT instead? How should I have my DB9 pin configuration in this case?
Bookmarks