vijaya_narayana
Full Member level 3
Dear All
i am currently doing project in PIC18F4331 it is just to read 3 Inputs in RE0 to RE2 and to send corresponding outputs to PORTB if i am running in debug mode through PIC KIT 3 i am able read and send data but if i am programming the device i am unable to read the output data. it seems i have made mistake in configuring oscillator here with i am attaching the code for the same kindly let me know what mistake i have done.
i am currently doing project in PIC18F4331 it is just to read 3 Inputs in RE0 to RE2 and to send corresponding outputs to PORTB if i am running in debug mode through PIC KIT 3 i am able read and send data but if i am programming the device i am unable to read the output data. it seems i have made mistake in configuring oscillator here with i am attaching the code for the same kindly let me know what mistake i have done.
C:
// CONFIG1H
#pragma config OSC = HS // // Oscillator Selection bits (HS oscillator)
#pragma config FCMEN = ON // Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor enabled)
#pragma config IESO = OFF // Internal External Oscillator Switchover bit (Internal External Switchover mode disabled)