Illas, The problem is this, you are not writing any thing other than 00h to PortC after setting it to all outputs.
BSF STATUS,5
clrf TRISC <---------- sets direction register for ALL output
BCF STATUS,5
clrf PORTC <-------------- sets port latch register for 00h
movf PORTC,W <-------- copy portc to w (portc = 0oh)
movwf temp ; temp register <----- copy w to temp (w = 00h)
movf temp,W <-------- copy temp to w (temp = 00h)
movwf PORTC <-------- copy w to portc (w=00h)
Where are you setting the individual bits you are talking about?
Dave Purola,
N8NTA
Bookmarks