I am trying to initialize a PIC16F819 and it will not take the PORTB pins to a LOW setting on initialization. It does PORTA just fine, and it does both TRISA and TRISB settings correctly. What is it I am missing here?
'CODE:
'Initialize Inputs/Outputs
TRISA = %01110100
TRISB = %01000000
'Initialized Highs/Lows
PORTA = %10000001
PORTB = %00000000
I have also tried to use the (PORTB.0 = 0) way, and it too does not work.
Neither does (LOW PORTB.0).
Never had this problem with any of the other chips I have used.
Here is the .INC file info for MPASM......
__CONFIG _INTRC_IO & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _MCLR_OFF & _BODEN_OFF & _DEBUG_OFF
Bookmarks