why i have set portA as a output it cannot work? is that i still need to configure somethings?
C Thread Starter cpleng7 Joined Dec 18, 2008 120 Jan 19, 2011 #1 why i have set portA as a output it cannot work? is that i still need to configure somethings?
t06afre Joined May 11, 2009 5,934 Jan 19, 2011 #2 cpleng7 said: why i have set portA as a output it cannot work? is that i still need to configure somethings? Click to expand... Yes indeed Read section 4 in the data sheet found here. http://ww1.microchip.com/downloads/en/devicedoc/39582b.pdf Even if you program in C you have to set some other registers as shown in example 4-1, in the same data sheet
cpleng7 said: why i have set portA as a output it cannot work? is that i still need to configure somethings? Click to expand... Yes indeed Read section 4 in the data sheet found here. http://ww1.microchip.com/downloads/en/devicedoc/39582b.pdf Even if you program in C you have to set some other registers as shown in example 4-1, in the same data sheet
C Thread Starter cpleng7 Joined Dec 18, 2008 120 Jan 19, 2011 #3 I have set all the port A as a digital i put ADCON1 = 0X06; the result is the not function as smooth as the portb as output. is that any configuration that miss writing in the datasheet?
I have set all the port A as a digital i put ADCON1 = 0X06; the result is the not function as smooth as the portb as output. is that any configuration that miss writing in the datasheet?