Hello Unregistered ,
Originally Posted by Demon Test 2, set all ports on 16F877 as output: Code: TRISA = 000000 TRISB = 000000 TRISC = 000000 TRISD = 000000 TRISE = 000000 PORTA = 000000 PORTB = 000000 PORTC = 000000 PORTD = 000000 PORTE = 000000 No difference, still blinking at twice the expected rate... Robert Don't you have to make one of the External Oscillator pins an Input in the TRISx Register? I'm on the road and can't look at the Data Sheet.
TRISA = 000000 TRISB = 000000 TRISC = 000000 TRISD = 000000 TRISE = 000000 PORTA = 000000 PORTB = 000000 PORTC = 000000 PORTD = 000000 PORTE = 000000
On those old chips like the 16F877, OSC1 and OSC2 aren't part of PORTA.
Originally Posted by mpgmike Don't you have to make one of the External Oscillator pins an Input in the TRISx Register? I'm on the road and can't look at the Data Sheet. Pretty sure I saw that on USART pins. Robert
Forum Rules
Bookmarks