please dont rip this site

PIC JAL Memory Routine

EEPROM 877

by M. Yalin Duyur and Vasile Surducan

procedure eeprom_877_read (byte in eeadr, byte out eedata) is
   bank_0
       asm movf eeadr,w
   bank_2
       asm movwf f877_eeadr
   bank_3
       eecon1_eepgd = off
       eecon1_rd    = on
   bank_2
       asm movf f877_eedata,w
   bank_0
       asm movwf eedata
end procedure    
 
procedure eeprom_877_write ( byte in eeadr, byte in eedata ) is
   bank_0
       asm movf eedata, w
   bank_2
       asm movwf f877_eedata 
   bank_0
       asm movf eeadr, w
   bank_2
       asm movwf f877_eeadr
   bank_3
       asm bcf f877_eecon1,eecon1_eepgd
       asm bsf f877_eecon1,eecon1_wren
       asm bcf INTCON,intcon_gie
       asm bcf INTCON,intcon_gie       
            
   assembler
      movlw 0x_55
      movwf f877_eecon2
      movlw 0x_aa
      movwf f877_eecon2
   end assembler
       asm bsf f877_eecon1,eecon1_wr
       asm bsf INTCON,intcon_gie
       asm bcf f877_eecon1,eecon1_wren
   while  eecon1_wr loop end loop 
   bank_0
end procedure

See also:


file: /Techref/piclist/jal/eeprom877.htm, 1KB, , updated: 2000/10/13 13:24, local time: 2017/12/17 21:51,
TOP NEW HELP FIND: 
54.227.51.103:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/piclist/jal/eeprom877.htm"> PIC JAL Memory Routine </A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171217 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .