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.
I have instantiated a stopwatch module into this multiplexer module. The stopwatch is working as it is supposed to and is producing the expected output. This is also picked up by the instantiated registers, but if I want to use this data further down the module, it does not work.
so i want to make a simple code to make an LED blink.
here is the code I have
always @ (posedge clock)
count <= count+1;
assign PWM_in = count?count[4:1] : ~count[4:1];
Im learning Verilog by example from Chu's book..
so have a few basic questions..
this code is for a simple counter:
input wire clk, reset,
input wire syn-clr , load, en, up,
input wire [N-1:O] d,
output wire max-tick...
how to combine 3 matrices into 1 in C++ or opencv
im working with opencv and image processing.. ive converted 3 images to 1 row and n column matrix.. now i want to combine these 3 matrices into a combined matrix which will be 3*n..
any idea how to do it?
ok so i wrote it and ran the file and it did what i thought its writing every point in res[i] equal to 5.. dont know why..
I want res[i] to equal or take the value of image opened.. how do I do that?
I want to convert an image to a character array, I was able to find this code:
image.open("C:\\pic.bmp", std::ios_base::binary); //open pic in binary mode
image.seekg (0, ios::end); //count from end of file to beginning
int n = image.tellg(); //store current...
Re: lcd code (verilog or vhdl)
i can agree with the complexity of your code, as i spent all morning trying to figure out what it does.. tried overwriting hellow world with something else and it doesnt work :(
Thanks miguel, that is somewhat like the schematic i found in my link, can you give a bit more details on its working.. as in if im to make a schematic of this.. furthermore, how can it only take the value by just one connection?
Thanks for your detailed reply, kandhu,
but I dont want to turn the microcontroller completely off, as after the interrupt, I want it to wait for the start button again, I just want tahts after teh stop switch is pressed it just stops running everything, i mean send 0 to all output ports...
I understand that when an interrupt occurs the micro controller returns to where it left from..
but my interrupt consists of a stop switch, i.e. after the iterrupt I want it to stop everything..
my code consists of running a motor in a while(1) loop.. after the hardware interrupt is pressed it...
I thought of using an op amp and also found this configuration **broken link removed**
but it does not explain much..
the PIC is supposed to measure the voltage accross a resistor, and how it must be attached is what im asking :)
I have written the code for it and now I want to actually make it work.
Its used to test or check resistance, and i am using a pic with analog input..
I was just wondering how to make that possible?
I know that I can drive a constant, known current through the resistor and then how do...
Im trying to write code so that when timer0 reaches zero it check port b if any button is pressed, it should do this every 5 ms.. but im having confusions in this
I was reading up on timers and found this code in a book:
Ive mailed the owner more than a couple days back but got no response,
Basically I need the orcad schematic for PIC16F877 (28 pin)
looks like the owner is away or busy, anyone from there, can you please pick it up from the files section and attach it here.
Would help me lots.