Search results

  1. gorgon

    if there possible for pic to faulty?

    If you are using an oscillator module and NOT a crystal, you don't need capacitors at all. The output of the oscillator is conected to the input of the PIC oscillator pins, or OSC1/CLKIN on Your drawing. For us to say the capacitor value for a Crystal, we need to have the exact type...
  2. gorgon

    if there possible for pic to faulty?

    Normally 22 or 27pF can be used, and will work, but the exact value depends on your crystal's parameters.
  3. gorgon

    Basic LCD driver question

    The only thing you could experience is that they contain a different character set. If the display only flutters on a part it could also be the driver chips if you've got any, or a bad zebra strip.
  4. gorgon

    if there possible for pic to faulty?

    Is there any more infrastructure around the micro, like power/ reset/ decoupling? You say you put Vss to ground? You are supposed to put Vss to ground(0V) and Vdd to +5V, for the PIC to work at all! How do you know that you have programmed the PIC at all, and your program is running? How...
  5. gorgon

    pic18f2550 serial communication

    It depends on what you are receiving. If it's only noise(random characters) It could come from how the serial hardware is powered/designed. If it is valid data you need to check out what initiates that when powering down. I don't know the PIC in question, but normally PICs has brownout...
  6. gorgon

    New Programming Language Anyone?

    When you work in embedded systems, there is warnings in the litterature, not to use optimising, when operating directly on hardware devices, even if you type them as volatile.
  7. gorgon

    New Programming Language Anyone?

    Do you know of any comparative tests, of the actual overhead or code size between Assembler, C and C++? Without knowing, I would suspect the the overhead of C++ is more than C? Assembler size is of course, maybe more than for C and C++, dependent of the actual skills of the programmer...
  8. gorgon

    New Programming Language Anyone?

    That's the reason you have to make it GOOD! The problem with all compilers and IDEs are the complexity, combined with all the good intentions of making them go away. this makes it a pain to make adjustments and changes, without a very steep learning curve. Personally I'm interested in...
  9. gorgon

    New Programming Language Anyone?

    Isn't this what is done in the PICAXE solution? I think you should include BASIC into the list of languages, even if you need to use a primed PIC to use it. If you could make a simple compiler/programmer with 'no' limits, starting with a noob level and expandable to 'expert' level. I would...
  10. gorgon

    EM32100 LCD Display

    You need to take a look at page4/5 where the serial interface is described. As far as I understand you just fill the display from right, so the first digit is the leftmost digit in the number. I may be wrong here. You use code 001111 to clear the display. The serial format is a...
  11. gorgon

    help with a servo motor

    I would think that PC is common, and P1 and P2 are quadrature outputs, pulsing a number of cycles for one rotation. Normally there will be 90deg difference between the outputs, and you can then decode direction and rotation of the servo motor. Take a look here for more...
  12. gorgon

    help with a servo motor

    Ok, sorry mixed with another post. For a servo motor I would think that the 3 extra wires are a tacho output or positional decoder output. I would think that one wire is common, and the other two are quadrature pulsed outputs. More unlikely, if the servo is a single turn output they could be...
  13. gorgon

    help with a servo motor

    How do you know this is a stepper motor? Have you got any type number or any additional information at all?
  14. gorgon

    identifying this terminal block

    The pictures is sort of out of focus, and I can't decode the marking on the block. You should take a more exact measure of the block and the distance between the pins. It looks like a standard pcb screw terminal block, maybe 5.08mm(1/5") pin distance. I suppose you could use a Phoenix variant if...
  15. gorgon

    pic outputs to ULN2003A

    For the digit driver transistors, you'll need to replace the single resistor with a resistor divider. To get the correct operation you'll need to calculate the base voltage when the driver is off, to be close to Vsupply for the LEDs. One way to do this is to add a zener diode in the divider...
  16. gorgon

    Resistance???

    The conclusion here is to use a 12V bulb when you have a 12V supply, or use a switch mode down converter to reduce the voltage output. If you use a resistor to drop the voltage from 12 to 5 volt, you'll waste 140% of the bulbs power rating. For a 5V 5W bulb driven from a 12V via a resistor...
  17. gorgon

    programming help!!!!

    It could also be an -endian problem with the compiler. A listing of the two compiled codes/variants would be a big help. You should also be aware that if you optimize your code(set the option) The result may be far from what you want. You may also need to specify certain registers/addresses...
  18. gorgon

    programming help!!!!

    If you use the 74HCT574 there are only one clock input to this octal latch, and you clock this input for each bit you set. To get the correct contents of this 8-bit latch you need to set all bits up before you clock the latch. From your code snippet you clock the latch for each bit, and this...
  19. gorgon

    programming help!!!!

    Yes, I understand this, but when you use a common clock, you need to setup all data bits correct before clocking the data into the latch. Each time you clock data, ALL bits are read into the latch. You need to setup the 8 outputs, and THEN clock the total into the latch.
  20. gorgon

    programming help!!!!

    Shouldn't you have a 'default' break in your Switch() statements? How is your hardware made? I wonder since you are using 'pin_A2' as a clock for all the cases. What happens to the bits of the other cases when you clock new bits? I also see that the 6 ans 7 values are set with pin_Dx and...
Top