Questions Pages:
Questions:
Hi! There,My Name is Raj and I am a student at the Univ Of Arizona. I want to by-pass(ie i just want the PIC to act as an address bus) the PIC pic17c44
Please look at the following code and tell me if there are any errors, the compiler is not giving me any errors but the pic is not serving it's purpose(if I use the following code).
void __STARTUP(void); void _INT(void); void _TMR0(void); void _T0CKI(void); void _PIV(void); void main(void); #include<p17cxx.H> // I am using this PIC #include<stddef.h> #include<delays.h> #define Device_CLK 33000000 //intialization void __STARTUP(void) { DDRB=0xFF; PORTB=0; PORTA = 0; DDRC = 0; PORTC = 0; DDRD = 0xFF; PORTD = 0; DDRE = 0; PORTE = 0; } void main() { while(1) { PORTEbits.RE2=PORTBbits.RB6; PORTAbits.RA1=PORTBbits.RB7; PORTEbits.RE0=1; PORTEbits.RE1=1; PORTC=PORTD; } }
Interested: