Help EEPROM interna 16F84

Quando scrive nella EEPROM interna non esce dal loop, gli interrupts sono disabilitati. Grazie, Giuseppe

movlw 0 ;Indirizzo memoria (0) movwf EEADR movf rxDATO,w ;Valore da memorizzare movwf EEDATA bsf STATUS,RP0 ;Swap to bank 1 bsf EECON1,WREN ;Abilita la scrittura movlw 0x55 ;Scrive 0x55 su EECON2 movwf EECON2 movlw 0xAA ;Scrive 0xAA su EECON2 movwf EECON2 bsf EECON1,WR ;Begin write WriteDoneLoop ;Attende la fine scrittura btfsc EECON1,WR ;Scrittura terminata? goto WriteDoneLoop return

-------------------------------- Inviato via

formatting link

Reply to
Giuseppe
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.