Since I've almost finished development of this clock, including hardware side, and I want to post an instructable, I want to make my code a bit tidy also. I have made several screen update routines,...
CuriousOne Today, 19:26For a 4Mhz timing at 9600 baud
Register settings
RCSTA = $90 ' Enable serial port & continuous receive
TXSTA = $20 ' Enable transmit, BRGH = 0
SPBRG = 25 ' 9600 Baud @ 0.16%...
Your serial circuit diagram/connection details would help - what is connected to the TX line ?
Is it just TX that is the problem ? have you tried RXing ?
Have you tried lower rates ?
Do you...
By Xtal, do you mean that an external 4Mhz crystal with two caps like 22pf?
sayzer Today, 06:32Hi All
Attempting to get some serial communication working with a 16f628 (4Meg Xtal) My defines are as below :-
DEFINE OSC 4
DEFINE HSER_TXSTA 24h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD...
That code gets 16 samples not 10. You just have to limit the samples from 16 to 5. But this is not very useful. Leave it as it is for ironing out the noise or parasites in the signal.
Ioannis
Re: Hserout questions
BAUDCON does not appear in 628 or 628a data sheet.
aerostar Today, 20:55MisterE Multicalc shows
Registers
RCSTA = $90 ' Enable serial port & continuous receive
TXSTA = $24 ' Enable transmit, BRGH = 1
SPBRG =...