ASM and PIC12Fxxx

Thread Starter

kreitzz

Joined Dec 11, 2010
1
Hi!
Could anyone help me to adopt ASM code to PIC12F675?

I have found, that it is required to modify start with next strings:

start
ORG 0x000 ; Coding begins here
bcf STATUS,RP0 ;Bank 0
clrf GPIO ;Init GPIO
movlw 07h ;Set GP<2:0> to
movwf CMCON ;digital IO
bsf STATUS,RP0 ;Bank 1
clrf ANSEL ;Digital I/O
movlw B'00011011' ;Set GP<4,3,1,0 > as inputs
movwf TRISIO ;and set GP<5,2> as outputs
 

Markd77

Joined Sep 7, 2009
2,806
Looks like a good start. If I understand right you have some code for another PIC that you want to convert to the 12F675.
If you post it here we can see if it possible and how to go about it.
 
Top