Re: I thought it was like riding a bike... Help please! 16f630 config
I got it working. Here's the code I used:
CMCON = 7
TRISA = %111000
TRISC = %111000
porta = 0
portc = 0
Push var porta.4
'************************************************* ***************
Start: while Push = 1 ' Wait for button push
wend
Run: High porta.0 ' Turn on LED and leave it on
Pause 2000
High porta.1 ' Turn on LED and leave it on
Pause 2000
high porta.2 ' Turn on LED and leave it on
pause 2000
high portc.0 ' Turn on LED and leave it on
pause 2000
high portc.1 ' Turn on LED and leave it on
End
I thought I also had to set ANSEL but Microcode Studio balks at me for it. :-P I'm trying!
Thank you!
Ross
Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!
I like that! :-)
Bookmarks