Hello
I am trying to use all the I/O pins on a PIC12F629 (all six of them). I have tried the program code on a PIC16F627 and it workes fine but it is the configuration of the I/O pins of the 12F629 I am worried about. My code is:
@ DEVICE pic12F629, MCLR_OFF
@ DEVICE pic12F629, INTRC_OSC_NOCLKOUT
'Port
trisio = %001100
'Variabler
Ra0 VAR GPIO.2 'Puls Y-axel 5
Ra1 VAR GPIO.3 'Rotationsriktning Y-axel 4
Rb4 VAR GPIO.0 'Utgång Y-Axel lila 7
Rb5 VAR GPIO.1 'Utgång Y-Axel rosa 6
Rb6 VAR GPIO.4 'Utgång Y-Axel röd 3
Rb7 VAR GPIO.5 'Utgång Y-Axel svart 2
I want to use the internal clock and use the mclr-pin as an input. Have I missed something? I hope I have because the program don't work very good.
I am glad for all the help I can get.
\Jonas
http://www.geocities.com/jcee324
Bookmarks