Bluestar88
Member level 3
I am using PIC 18 series(pic18f97j60) micro controller in my project. I am interfacing this microcontroller with DAC-ad7302. I used PORTF for D7-0 and PORTG For WR, A/B, CS, PD, CLR and LDAC.
I Wrote below code
, But I dont have any output in pin 18 of ad7302. It is zero all of the time.:shock:
Please help me.
I Wrote below code
Code:
void main() {
TRISF = 0 ; // set PORTF as output
TRISG = 0 ; // set PORTG as output
while(1)
{
PORTG.RG3=1;
PORTG.RG4=0;
PORTG.RG0=0;
// PORTF=UART1_Read();
PORTF=0xff;
PORTG.RG0=1;
PORTG.RG7=0;
}
}
Please help me.