ASM and PIC12Fxxx

Discussion in 'Embedded Systems and Microcontrollers' started by kreitzz, Jan 31, 2011.

  1. kreitzz

    Thread Starter New Member

    Dec 11, 2010
    1
    0
    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
     
  2. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    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.
     
Loading...