I'm getting a 16F877A (it's on order). What would be the correct config word for use with the F877A (I'll be using an external crystal)?
well depending of what you want to set... if external crystal is 20 MHZ
@ DEVICE PIC16F877A, HS_OSC
here's the list for config
;================================================= =========================
;
; Configuration Bits
;
;================================================= =========================
_CP_ALL EQU H'1FFF'
_CP_OFF EQU H'3FFF'
_DEBUG_OFF EQU H'3FFF'
_DEBUG_ON EQU H'37FF'
_WRT_OFF EQU H'3FFF' ; No prog memmory write protection
_WRT_256 EQU H'3DFF' ; First 256 prog memmory write protected
_WRT_1FOURTH EQU H'3BFF' ; First quarter prog memmory write protected
_WRT_HALF EQU H'39FF' ; First half memmory write protected
_CPD_OFF EQU H'3FFF'
_CPD_ON EQU H'3EFF'
_LVP_ON EQU H'3FFF'
_LVP_OFF EQU H'3F7F'
_BODEN_ON EQU H'3FFF'
_BODEN_OFF EQU H'3FBF'
_PWRTE_OFF EQU H'3FFF'
_PWRTE_ON EQU H'3FF7'
_WDT_ON EQU H'3FFF'
_WDT_OFF EQU H'3FFB'
_RC_OSC EQU H'3FFF'
_HS_OSC EQU H'3FFE'
_XT_OSC EQU H'3FFD'
_LP_OSC EQU H'3FFC'
2.
If I can enable "weak pullup resistors" on Ports A & E of the F877A, does this mean that I don't have to use real resistors for the inputs on those ports?
that's suppose to do it. but usually i always use external pullups as safe. maybe i'm wrong here
regards`
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks