programming PIC

All solar related electronics. Eg. MPPT's (maximum power point tracker), Inverters, regulators, etc.

programming PIC

Postby duth » Fri Jul 23, 2010 5:56 am

Hi...I am using a 2.4W panel with 17.5V(Vmpp), 0.137(Impp) to charge a battery of 3.6V,0.5A..I have designed the circuit with a PIC16f877 controlling a mosfet gate driver...The problem is in implementing the program for the PIC..I am planning to use either incremental conductance algorithm or P and O method to do this...But as i am new to programming of PIC's I am not able to write the code yet...If any of u have the code for the same, i would be really grateful if you could post it for me..I am lagging in the project just because of the program...Please do help me...
duth
 
Posts: 1
Joined: Fri Jul 23, 2010 5:45 am

Re: programming PIC

Postby rfjunkie » Thu Mar 10, 2011 7:43 pm

Try Microchip's AN1211 it's about implementing a solar charger

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en536175
rfjunkie
 
Posts: 1
Joined: Thu Mar 10, 2011 7:39 pm

Re: programming PIC

Postby mikeW » Tue Nov 29, 2011 3:21 pm

I'm having trouble programming a PIC while preserving Data EEPROM with the Pickit 2. What I'm trying to do is recover EEPROM data from a unit that had a failure in the field. I don't have the option of just reading back the Data EEPROM without programming because I have the CPD fuse set, which read-protects the Data EEPROM. So I have to download a program that prints the contents of EEPROM out on an rs232 pin.

I'm using the Pickit 2 Programmer app:
App Version 2.61.00
Device File Version 1.62.03
OS FW Version 2.32.00

and a PIC18F4685 which has 256 bytes of Data EEPROM.

I unchecked the Data EEPROM box in the app, which says 'preserving device EEPROM data on write'. However, I have to erase before I can write. When I erase, the Data EEPROM is not preserved. So there seems to be no way to preserve it. I also tried unchecking the mysterious 'Clear Memory Buffers on Erase', which seems to be the only setting which may affect the EEPROM. This setting is not discussed in the Pickit documents. Any idea what it means?

Anyway, I seem to be at a dead end and I really need that data. I'd really appreciate any help you guys could offer.
mikeW
 
Posts: 3
Joined: Mon Nov 07, 2011 5:59 pm


Return to Electronics

Who is online

Users browsing this forum: No registered users and 0 guests