PIC16F84 jeste jednou

David Hittman hittman at students.zcu.cz
Sun May 27 23:36:53 CEST 2001


----- Original Message -----
From: Michal Krestan <krestan at matilda.cz>
To: Multiple recipients of list <hw-news at list.gin.cz>
Sent: Sunday, May 27, 2001 1:14 PM
Subject: PIC16F84 jeste jednou



A funguje to kdyz, budete cekat podle datasheetu ?

    bsf STATUS, RP0
    bcf INTCON, GIE
    bcf EECON1, EEIF
    bsf EECON1, WREN
    movlw 55H  ;
    movwf  EECON2  ;
    movlw 0AAH  ;
    movwf  EECON2  ;
    bsf  EECON1, WR
btfss EECON1,EEIF
goto $-1
    bcf EECON1, WREN
    bcf STATUS, RP0
>
>
>
> Jak sem tu jiz jednou psal, mam problem se zapisem do vnitrni pameti
EEPROM u subj. Kdyz vse bezi na 4Mhz, tak to chodi, ale na 18Mhz se vzdy
zapise na danou adresu FF. Pro zapis pouzivam toto:
>
> movlw 15
> movwf 8
> movlw 0F
> movwf 9
> bsf 3, 5 ; set EEPROM write
> bcf 0B, 7
> bcf 88, 4
> bsf 88, 2
> movlw 55h
> movwf 89h
> movlw 0AAh
> movwf 89h
> bsf 88, 1
> bsf 0B, 7
> bcf 3, 5




> tohle vzdy na adresu 0F zapise FFh, misto 15h.
>
> Michal






More information about the HW-list mailing list