i always use MPASM too. As i often switch for 16XXX to 18XXX i don't want to spend time by switching PM to MPASM and such.
So just comment the PBP default fuse as i described in the FAQ post and try this.
Code:
@ __config _HS_OSC & _WDT_ON & _PWRTE_ON & _BODEN_ON & _LVP_OFF
' XT (4Mhz) oscillator
' Enable watch dog timer
' Enable power up timer
' Enable brown out detect
' Disable low voltage programming
DEFINE OSC 10
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_SPBRG 71 ' 9600 Bauds @11.0592 MHZ
DEFINE HSER_CLOERR 1
PAUSE 500 ' kind of start-up delay... could be remove or reduced
Start:
Hserout ["Serial comm test @9600 bauds",13,10]
pause 500
goto start
For the available crystal speed... it's hidden in the PBP manual in appendix with all the available DEFINE at the end of the manual AND/OR in the Help file of MicroCode Studio.
And the last thing, just be sure you program with the right PIC model 16F877 is not the same as 16F877A. But as another program work... that couldn't be a problem.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks