DEAR ALL,
i am designing a simple project using pic16f876a and hitech c complier (MPLAB ) . i want to send a value on port b.this is the daigram and the code m sending.please check the code and help me find out the mistake.i have defined pic16f876 and oscillator type crystal in mplab.
byee
#include <pic.h>
main(void)
{
unsigned char i, j;
TRISB = 0; /* all bits output */
j = 0;
for( ; ; ) {
PORTB = 0xaa; /* SEND 10101010 */
}
}
i am designing a simple project using pic16f876a and hitech c complier (MPLAB ) . i want to send a value on port b.this is the daigram and the code m sending.please check the code and help me find out the mistake.i have defined pic16f876 and oscillator type crystal in mplab.
byee
#include <pic.h>
main(void)
{
unsigned char i, j;
TRISB = 0; /* all bits output */
j = 0;
for( ; ; ) {
PORTB = 0xaa; /* SEND 10101010 */
}
}