Code: Select all
Clock = 8
#option SetBaud1 = 38400
#option MIPx10 = _clock * 2500000
Const Baud1 As Word = (MIPx10 / SetBaud1 - 5) / 10
TBLPTRH = Baud1 >> 8 And $FF
TBLPTRL = Baud1 And $FF
Moderators: David Barker, Jerry Messina
Code: Select all
Clock = 8
#option SetBaud1 = 38400
#option MIPx10 = _clock * 2500000
Const Baud1 As Word = (MIPx10 / SetBaud1 - 5) / 10
TBLPTRH = Baud1 >> 8 And $FF
TBLPTRL = Baud1 And $FF
Code: Select all
TBLPTRH = byte(Baudl >> 8)
TBLPTRL = byte(Baudl)