Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Well, first of all Pickit2 Readme doesn't say that it supports 25LC040, just 25LC040a so you shouldn't expect it to read the memory properly, although it might work.
Anyway, have you done the circuit for R/W the memory as shown on that file?, I mean:
Connections for 25LC devices...
I mean to put them as indicated on the datasheet so they work properly.
Considering that CE,CS,WE AND OE start at 0 I do the following:
For WC1
Set CS and OE to 1.
For WC2
Set OE to 0.
For Read.
Set WE to 1.
But it doesn't show what I wrote before.
I guess it could be done with a summing amplifier using a operational amplifier (https://en.wikipedia.org/wiki/Operational_amplifier_applications) and using a voltage divider at the output that cuts by half (both resistors are the same).
I'm uploading proteus simulation file (into the zip file) and an image of it as schematic to show that, although I'm giving the memory the signals I think it would need to read and write properly itself, it doesn't do it:
In a more detailed way, if the following is done
Set adress to be...
I'm building a ring counter and I need to set one of the 7474s I'm using to "1" and the rest to "0" at the very start, so it comes to their set or reset pins a "0" (those pins are active at low level) for the first miliseconds and the rest of the time a "1", so the counter can work properly.
I...
You need to define an interrupt vector, this is done likely this way:
#pragma code InterruptVectorHigh = 0x08
void
InterruptVectorHigh (void)
{
_asm
goto InterruptHandlerHigh //jump to interrupt routine
_endasm
}
#pragma code
#pragma interrupt InterruptHandlerHigh
void...
Maybe the project shown on this page can help you: **broken link removed**, it seems like there's no specific library for Proteus, but in the project those components are defined as a subcircuit and, in any case, they seem to work fine on simulation.
Good luck.
Code doesn't mind, I tested with a simpler program with the same configuration bits and it acts the same way.
Code performs right either way in debug mode.
I had forgotten to put them, but I put them now and effect was the same.
On debugbits attachment.
Hadn't set it but I set it to off...
Was already in release.
I added the circuit but no result.
I think my particular PIC (PIC18F4620 doesn't have POR bit) as it doesn't appear in configuration bits and even if I set in code #pragma config POR=ON it doesn't compile. I also tried to change PWRT bit, but it doesn't also work...
I've a code written for a PIC18F4620 that executes right on MPLAB on Debug mode.
But if the program is not being debugged it doesn't run at all, despite the only things that I change are that I eliminate Pickit2 wires from the board and I connect a 10 K resistor tied to 5V to the MCLR pin. (I'm...
I'm really grateful for your help but nothing you put here seems to work for me...
So I decided to do it in another completely manner but I also get a problem this way, although it's the nearest thing to get it working that I have, in fact I see the problem as even more weird, maybe you can...
i guess the full code would be this way? Or am I getting something wrong?
#include <stdio.h>
#include <P18CXXX.h>
#include <delays.h>
#include <timers.h>
#pragma code page // This code make sure the program starts from 0x0004, not from 0x0000
#pragma config WDT = OFF
#pragma config...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.