EmbeddedRelated.com

Writing to PIC16F626 EEPROM

Started by Sasha in Piclist17 years ago 2 replies

Dears, I need help on a code to write to the PIC16F628 EEPROM. I should write decimal '11' in the first two bytes of the EEPROM address. I...

Dears, I need help on a code to write to the PIC16F628 EEPROM. I should write decimal '11' in the first two bytes of the EEPROM address. I have tried a sample code but I need confirmation of the Interrupt controls EEIF and EEIE have and where to put them; main program or in the Interrupt Service Routine program. BSF STATUS,RP0 ;select bank1 MOVLW 0x00 ;EEPROM address MOVWF...


eeprom write errors?

Started by Phil in Piclist20 years ago 21 replies

I'm using a 16F648A and am seeing some errors when writing data to eeprom. I put some verification code in my eewrite routine and...

I'm using a 16F648A and am seeing some errors when writing data to eeprom. I put some verification code in my eewrite routine and am frequently getting back something different from what I wrote. Usually, this happens once every 4-10 writes and appears to be somewhat random.


Eeprom in 16F648A

Started by wantoniet in Piclist21 years ago 5 replies

Hi, I was working at my last project and found a problem so very interesting. My equipament used a 16f628 and i upgraded to...

Hi, I was working at my last project and found a problem so very interesting. My equipament used a 16f628 and i upgraded to 16f648a cause i required more flash memory. On step to write in internal eeprom, i realized that sometimes wrote right, sometimes not. After tw


Problems reading data Eeprom using Pic16F88

Started by izzy_w_2004 in Piclist20 years ago 1 reply

I have been trying to use the 'read data EEPROM' feature of the 16F88, but can't get it to work. I have used the sample...

I have been trying to use the 'read data EEPROM' feature of the 16F88, but can't get it to work. I have used the sample code from Microchip's datasheet. Attached is the (entire) ASM file that I am using. It should (I had hoped) store the value h'BB' in the regist


reading program from external EEPROM

Started by Michael Millikan in Piclist21 years ago 11 replies

Hi there, I assume that people have attempted to have a PIC execute code that it reads from an external EEPROM (when the PIC...

Hi there, I assume that people have attempted to have a PIC execute code that it reads from an external EEPROM (when the PIC itself doesn't have enough memory.) Does anyone have a good reference on how I might do this? I was thinking of loading an instruction from the


16F628 on-chip eeprom problem

Started by Vladimir M Skrbic in Piclist21 years ago 2 replies

Hello everyone, I'm new to the group and I'd like to ask a question. I've recently moved all my projects from 16F84 to 16F628...

Hello everyone, I'm new to the group and I'd like to ask a question. I've recently moved all my projects from 16F84 to 16F628 mcu's. Yesterday I've tried to write data to the internal (on-chip) eeprom of 16F628 using PicBasic Pro with little (or no ;) sucess. Would anyone care


18F Data EEPROM "Refresh" Questions

Started by Rick in Piclist19 years ago 4 replies

I'm thinking about using the Data EEPROM in an 18F8620, and can't figure out what the datasheet is trying to say. I hope someone can...

I'm thinking about using the Data EEPROM in an 18F8620, and can't figure out what the datasheet is trying to say. I hope someone can clarify. Section 7.8 says, in part "Frequently changing values will typically be updated more often than specification D124. If this is not the case, an array refresh must be performed. For this reason, variables


Programming 16f872 data eeprom memory

Started by Chris in Piclist20 years ago 2 replies

Just checking to see if anyone knows of any problem with the microchip method of programming eeprom data (not program) bytes using ...

Just checking to see if anyone knows of any problem with the microchip method of programming eeprom data (not program) bytes using the method described in the 16f872 datasheet. I can't work out where the problem is, but my code crashes and freezes when I use their example. Wonder


I2C data line (SDA) goes low and hangs

Started by Basic Poke in Piclist16 years ago 2 replies

I have a PIC18F66J50 with a Microchip EEPROM on the I2C port. Sometimes when I program the MCU using MPLAB, the I2C data line (SDA) goes low...

I have a PIC18F66J50 with a Microchip EEPROM on the I2C port. Sometimes when I program the MCU using MPLAB, the I2C data line (SDA) goes low and stays there. Any read or write I then attempt results in a bus collision error and doesn't work. Here is the sequence of events: * cycle power to the MCU/EEPROM board * compile with MPLAB * program the target device with MPLAB. There is cha...


16F628 Data EEPROM Write Problem

Started by Scott Kellish in Piclist21 years ago 3 replies

  Hi Everyone, I'm having some intermittent problems writing to the data eeprom on 16F628 parts. Below is the code...

  Hi Everyone, I'm having some intermittent problems writing to the data eeprom on 16F628 parts. Below is the code I'm using. Once in a while, probably on


ICD-2 Problems

Started by Fredrik Krook in Piclist21 years ago 4 replies

Hi! I?m trying to program a circuit... 16F877 and then run it in debugmode... But it doesn?t work... getting the errors listed...

Hi! I?m trying to program a circuit... 16F877 and then run it in debugmode... But it doesn?t work... getting the errors listed below... Does anyone know how to get it to work... Programming Target... ...Erasing Part ...Programming EEPROM Memory


Having to turn off UART continuous receive

Started by upand_at_them in Piclist20 years ago 5 replies

I have a program in my 16F88 that reads data from a GPS (through the hardware UART), stores it in RAM, parses it, and then writes...

I have a program in my 16F88 that reads data from a GPS (through the hardware UART), stores it in RAM, parses it, and then writes certain items to an external EEPROM. What I've discovered, though, is that I have to turn off continuous receive (CREN=0) before I do my processing ro


PIC12F629,JDM programmer and LINUX ??

Started by sigint112 in Piclist21 years ago 3 replies

Hi everybody, does anyone know,how i can programm a PIC12F629 with the JDM programmer under Linux? I added a PIC12F629 entry in...

Hi everybody, does anyone know,how i can programm a PIC12F629 with the JDM programmer under Linux? I added a PIC12F629 entry in hexfile.cc and could then read a PIC12F629 (only Flash,not EEPROM) but when i try to programm it i get verify errors... is there a tool for Linux to p


K149 programmer

Started by laughty g in Piclist21 years ago 3 replies

Hi, Recently I have just constructed a K149 programmer to program the 93LC46B serial eeprom. I have removed the USB portion. ...

Hi, Recently I have just constructed a K149 programmer to program the 93LC46B serial eeprom. I have removed the USB portion.   I have read on the website that this programmer is capable of programming 16F877 chip too. However, although my programmer board can be detec


Troubleshooting I2C

Started by Max in Piclist14 years ago 4 replies

I have been trying to write to a 24LC1025 EEPROM which uses an I2C interface without success. The software I2C routines that I am using are the...

I have been trying to write to a 24LC1025 EEPROM which uses an I2C interface without success. The software I2C routines that I am using are the same ones that I have successfully used with a Dallas 1307 clock chip and were downloaded from the Dallas website back a few years ago. Using my Pickit2 programmer I wrote some data into the 24LC1025 chip and using these routines I am able to read the data...


PIC Audio project

Started by Sunil Jha in Piclist21 years ago 4 replies

Hi! Is there any project or tutorial with schematic and code on the web to generate or play audio using PIC? I need to store some...

Hi! Is there any project or tutorial with schematic and code on the web to generate or play audio using PIC? I need to store some audio data in EEPROM and wants to play using PIC. Is this possible for small midi files. I would basically like to imitate ring tone playing as in mobile using PIC.&n