NL2TTL
- 9th February 2007, 08:55
I have this simple code:
@ DEVICE PIC16F685, WDT_ON, INTRC_OSC_NOCLKOUT
TRISC = 0
ADCON1 = 0
Main:
High PORTC.3
Pause 1000
High PORTC.6
Pause 1000
High PORTC.7
Pause 1000
High PORTB.7
Pause 1000
LOW PORTC.3
Pause 1000
LOW PORTC.6
Pause 1000
LOW PORTC.7
Pause 1000
LOW PORTB.7
Pause 1000
Goto Main
But when RC6 gets high, RC3 will automaticly goes low.
CMCON doesn't work. Anybody have a solution?
@ DEVICE PIC16F685, WDT_ON, INTRC_OSC_NOCLKOUT
TRISC = 0
ADCON1 = 0
Main:
High PORTC.3
Pause 1000
High PORTC.6
Pause 1000
High PORTC.7
Pause 1000
High PORTB.7
Pause 1000
LOW PORTC.3
Pause 1000
LOW PORTC.6
Pause 1000
LOW PORTC.7
Pause 1000
LOW PORTB.7
Pause 1000
Goto Main
But when RC6 gets high, RC3 will automaticly goes low.
CMCON doesn't work. Anybody have a solution?