PDA

View Full Version : serout2



jcleaver
- 12th February 2007, 15:38
trying to send data to a serial lcd
requirements are 9600 8 np 1 stop

renton on demo program shows 16468 as corect baud #

chart in pbp seem to indicate 84 is correct number

shure i am reading this wrong
can someone supply the corect number
or explain
thanks

mister_e
- 12th February 2007, 15:43
it always depend if you need the inverted mode or the true mode.

84 is for true mode
16468 is for inverted mode.

you can use my PicMultiCalc for that... kinda pain relief...

depending your crystal speed, Serout2 may work or not. Have a look at DEBUGIN and DEBUG. it's usually better for low speed crystal.

jcleaver
- 12th February 2007, 16:10
couple of questions
where is this calucator

dont know if the device requires true or inverted
but it does not function either way

osc 20

scope indicates pic is sending data

might have a bad device

mister_e
- 12th February 2007, 16:24
if you use a 20MHz oscillator, make sure you properly set the PIC config fuses. AT very least, osc to HS mode. There's a whole thread in the FAQ about that.

Presetting Configuration Fuses (PIC Defines) into your Program
http://www.picbasic.co.uk/forum/showthread.php?t=543

and the PicMultiCalc is available on my website

Mister E utilities page
http://www.mister-e.org/pages/utilitiespag.html

skimask
- 12th February 2007, 23:51
trying to send data to a serial lcd
requirements are 9600 8 np 1 stop

renton on demo program shows 16468 as corect baud #

chart in pbp seem to indicate 84 is correct number

shure i am reading this wrong
can someone supply the corect number
or explain
thanks

Explanation on the number is in the PBP manual, pages 132-136 and 140-144...