I'm trying to get my pic 16f818 to transmit characters to a serial LCD. When I use the same code on f84 chip it works fine. However, when I try it on a f818 it sends a different character. I used a logic analyzer to check out what's going on. It looks as if the start bit is longer on the f84. I thought by default it sent data 8N1 not matter what chip your using. Is there any defines I don't know about? Thanks for any help.
code:
INCLUDE "BS2DEFS.BAS"
@ DEVICE INTRC_OSC_NOCLKOUT,MCLR_OFF
DEFINE OSC 4
OSCCON=$60
ADCON1=6
HIGH PORTB.0
sleep 2
low PORTA.2
begin:
serout PORTB.0,N2400,[12]
SLEEP 2
HIGH PORTB.0
SEROUT2 PORTB.0,N2400, [68]
SLEEP 2
LOW PORTA.2
goto begin
Bookmarks