rajat2905
Newbie level 5
hi all, i have been using pic16f1829 at 3.3vfor spi interfacing but the port B is not getting configured and when i configure it as a digital io it changes state as per the program but with very low peak to peak voltage equal to 240mv only as shown in the oscilloscope image.
my settings are:
TRISB=0x30;
LATB = 0x00;
ANSELB = 0x00;
WPUB = 0xF0;
OPTION_REGbits.nWPUEN = 0;
INLVLB = 0x00;
SSP1CON1 = 0x00;
i am trying to toggle the state of port B every 2 sec, but full voltage is not coming? why?
my settings are:
TRISB=0x30;
LATB = 0x00;
ANSELB = 0x00;
WPUB = 0xF0;
OPTION_REGbits.nWPUEN = 0;
INLVLB = 0x00;
SSP1CON1 = 0x00;
i am trying to toggle the state of port B every 2 sec, but full voltage is not coming? why?