All I want to do is set every IO pin on the chip to digital out.
This should blink all of the attached LEDs, however only PORTA.0 and PORTC.0 go high and only one of them goes low when told to. I'm sure I'm forgetting to turn off a feature in a register (or something equally as simple). But I've been studying the datasheet for hours. Any hints? :-\Code:ADCON0 = 0 ' no analog >< digital conversions ADCON1 = 0 ' no analog >< digital conversions ANSEL = 0 ' no analog inputs CMCON0 = 7 ' no comparators TRISA = %0000100' all but RA3 (MCLR) is output TRISC = 0 ' all outputs on port C porta = 1 portc = 1 pause 1000 porta = 0 portc = 0




Bookmarks