Continue to Site

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.

Recent content by Tagli

  1. Tagli

    pic18f4550 timer 2 interrupt

    Try taking the initialization code out of the while(1) loop. In your code, initialization is done again and again. I'm not sure but I think the postscaler of the timer 2 is reset with each initialization, which prevents the inturrupt.
  2. Tagli

    [SOLVED] pic16f84 programming memory?

    I don't know how to determine the size of the program in words, given the size of the .hex file, but normally you don't need to know that. If you are the programmer, the compiler (or assembler) tells you if your program fits the memory or not. If you have got only the .hex file, then it should...
  3. Tagli

    [SOLVED] PIC PCLATH and INTERRUPT

    Return address is the current PC when the interrupt comes. The value of the PCLATH doesn't matter. But, you need to save the original PCLATH value at the beginning of the interrupt service routine (ISR), and modify it according to GOTO, CALL addresses used in the ISR. When you are done, restore...
  4. Tagli

    My first program in Proteus for PIC18F452

    Try to import .hex file directly to Proteus. When you assemble your code in MPLAB, it generates the .hex file. Also, try to follow the format (codding style) suggested in template files located at C:\Program Files\Microchip\MPASM Suite\Template\Code or wherever they are located. As far as I...
  5. Tagli

    Help me vary the speed of a DC 500mA motor

    Re: will it work ?? You need a driver for a brushless DC motor. Some of them has got integrated driver, which needs an analog input for speed adjustment. If you want to design your own BLDC motor driver (which is not an easy task), the speed control is done by using PWM. PWM is also used for...
  6. Tagli

    Embedded Ethernet without TCP/IP Stack ?

    I want to access a PIC controlled device from the LAN, and I'm planning to use ENC28J60. Microchip provides a TCP/IP stack but I don't want to use it because of 2 reasons: 1) The only PIC programming language I know is the assembly language and Microchip TCP/IP stack is written for C. 2) I...
  7. Tagli

    PLC vs Microcontrollers.

    Another important issue is the noise immunity of PLC's. You may design a uC project and run it without problems in your lab environment, but don't expect it to run correctly in an industrial plant.
  8. Tagli

    PIC16F877A Timer Interrupt Not Working

    2^16 = 65536, so 65535 is the maximum value that can be stored in 2 byte register. When loaded with 3035, 65535 - 3035 = 62500 timer ticks are required before overflow, which requires 8 * 62500 = 500000 clock cycles with 1:8 prescaler. It results 0.5 seconds, as clock cycles take 1 us with a 4...
  9. Tagli

    PIC16F877A Timer1 Help

    Actually, you are using the "internal clock source" which is derived from the main external oscillator.
  10. Tagli

    pic18f + program + burn = ?!?!

    I have experienced a similar problem with JDM and winpic800 when programming the 16 series PICs. But I have no problems with icprog. Try it instead of winpic800. Strangely, winpic800 and JDM worked well with a 18F2550. I am confused...
  11. Tagli

    can JDM programmer program pic16f84A

    You can program even some 18 series PICs. I have successfully programmed a 18F2550 with JDM.
  12. Tagli

    5v PWM DIAGRAM NEEDED

    You can use a 555 timer in astable mode. You can find a schematic and calculator **broken link removed**. Variable period and duty cycle can be achieved by using variable resistors and capacitors. You may also need to use the CONTROL pin.
  13. Tagli

    problem with pic 16f84 code

    Your delay code is still wrong. You are setting the loop counters at outside of the DELAY block, so these 6 lines are never executed. For 1 second delay, the calculator gives this code: DELAY ;999990 cycles movlw 0x07 movwf d1 movlw 0x2F movwf d2 movlw 0x03 movwf d3 DELAY_0 decfsz d1...
  14. Tagli

    5v PWM DIAGRAM NEEDED

    What are your period and duty cycle requirements?
  15. Tagli

    problem with pic 16f84 code

    Your delay code looks strange. I don't see an exit condition. Use an automatic delay code generator, like this one.

Part and Inventory Search

Back
Top