Welcome to EDAboard.com

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.

Search results

  1. I

    [SOLVED] [Verilog] Data is not transferred from one register to another

    solved it by replacing always @ (select) with always @(*)
  2. I

    [SOLVED] [Verilog] Data is not transferred from one register to another

    Thanks for the reply. But even in case 00, the registers regdx are not updated. And in the simulation I have shown the select signal is set at 01. I don't think it's a range issue
  3. I

    [SOLVED] [Verilog] Data is not transferred from one register to another

    Hi, 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. For...
  4. I

    Testbench giving unknown (x) on output

    Hi, so i want to make a simple code to make an LED blink. here is the code I have module led_glow( input clock, output led ); reg [5:0]count; always @ (posedge clock) begin count <= count+1; end wire [3:0]PWM_in; assign PWM_in = count[5]?count[4:1] : ~count[4:1]; reg...
  5. I

    Some basic questions regarding the attached code

    Hi, Im learning Verilog by example from Chu's book.. so have a few basic questions.. this code is for a simple counter: module univ-bin-counter #(parameter N=8) ( input wire clk, reset, input wire syn-clr , load, en, up, input wire [N-1:O] d, output wire max-tick...
  6. I

    how to create a kernel of 3 matrices in opencv?

    how to combine 3 matrices into 1 in C++ or opencv Hello, 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? thank you
  7. I

    Making sense of this image to array code

    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? Thanks
  8. I

    Making sense of this image to array code

    I want to convert an image to a character array, I was able to find this code: void main() { fstream image; 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...
  9. I

    Simple LCD Verilog codes for display characters

    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 :(
  10. I

    Ideas for connecting to analog input of PIC

    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
  11. I

    Go to start after interrupt?

    |I thought of that, but wont it leave teh stack mismanaged.. I mean when teh microcontroller goes to ISR, it stores what its doing on stack and then come back and pick up..
  12. I

    Go to start after interrupt?

    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...
  13. I

    Go to start after interrupt?

    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...
  14. I

    Ideas for connecting to analog input of PIC

    @ andre, I thought of using an op amp and also found this configuration **broken link removed** but it does not explain much.. @ Miguel the PIC is supposed to measure the voltage accross a resistor, and how it must be attached is what im asking :)
  15. I

    Ideas for connecting to analog input of PIC

    Hello, 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...
  16. I

    Understanding timer interrupt

    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: #include<system.h> void config(void); void interrupt(void); unsigned...
  17. I

    Anyone here from Orcad Exchange yahoo group?

    Hello, 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. Thanks...
  18. I

    ADC Not Working (Using PIC 16F877)

    yeah, i know, i was just trying it out in hopes that it will work..at first the code was without the status registers, when it did not work i added them in =/

Part and Inventory Search