I folow your instructions
Hi,
I put a 12Mhz cristal to make run a 16F84A. Again, if I try to go faster than around 50K baud (I have got near 90Kbaud programming 57600 and making the PIC believe that its cristal was 3.5Mhz) I got the same rubish out the selected pin for serial output. It happens the same with 12F508, 12F629 and now 16F84A. Also, DEBUG seems to reach a higher baudrate than SEROUT2 on the same µ.
All these nonsenses are puzzling me. I routinely programm in assembler for 16F876-20 and send data through a twisted pair cable at about 1.125 Mbit/sec.
Has somebody push the commands SEROUT2 or DEBUG to the limits?
Thanks.
Maxi.
Re: 12F629 maximun Baudrate
I am using a 12f629 when I use the internal oscillator my project runs great, However when I switch to the below config and use a 10 mhz ceramic resonator my project does nothing. Please help me understand what I am doing wrong?
#CONFIG
cfg = _HS_OSC_
cfg&= _WDT_ON ; WDT enabled
cfg&= _PWRTE_OFF ; PWRT disabled
cfg&= _MCLRE_OFF ; GP3/MCLR pin function is digital I/O, MCLR internally tied to VDD
cfg&= _BODEN_ON ; BOD enabled
cfg&= _CP_ON ; Program Memory code protection is enabled
cfg&= _CPD_OFF ; Data memory code protection is disabled
__CONFIG cfg
#ENDCONFIG
define OSC 10
Re: 12F629 maximun Baudrate
Give this a try.
Code:
#CONFIG
__config _HS_OSC & _WDT_ON & _MCLRE_OFF & _CP_OFF
#ENDCONFIG
Re: 12F629 maximun Baudrate
Thank You for your reply! I am up and running. Your code worked and I found my code should have been
#CONFIG
cfg = _HS_OSC
cfg&= _WDT_ON
cfg&= _PWRTE_OFF
cfg&= _MCLRE_OFF
cfg&= _BODEN_ON
cfg&= _CP_ON
cfg&= _CPD_OFF
__CONFIG cfg
#ENDCONFIG
define OSC 10