fareen
Full Member level 3
Code:
# include <xc.h>
void main (void)
{
TRISB=0;
while(1)
{
LATB=0xFF;
LATB=0x00;
}
}
any idea why??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
# include <xc.h>
void main (void)
{
TRISB=0;
while(1)
{
LATB=0xFF;
LATB=0x00;
}
}
meaning????By coincidence, the binary value of 0xC8 is 0b11001000.
meaning????
using debugger.Are you verifying this behavior visually or through the use of the debugger?
how exactly...not using any of those modules and according to datasheet thses pin has default function of I\O portdisable debugging (ICD) and LVP using the Configuration Register settings as well as the default behavior of the PWM modules.
# include <xc.h>
void main (void)
{
TRISB=0;
while(1)
{
LATB=0xFF;
// add some delay here
LATB=0x00;
// add some delay here
}
}