Wiegand data and com port


Closed Thread
Results 1 to 40 of 54

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    Tallinn, Estonia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    PIC16F628 has 16 i/o pins which are divided into 2 groups - ports. They are PORTA and PORTB. naturally they have different pin numbers! Powerful PICs have more ports (18f452 up to PORTE). PIC12F629 has only 6 pins and they are named GPIO0...GPIO5.
    Abbout xtal connection: what code are you talking about? proximity.asm works on pic12f629 which does not have pins 15 and 16!? And the code relies on internal oscillator, no xtal!
    dbl_rdr on the other hand works on 16f628 (or analogous). There xtal must be connected to pins 15&16. If u use other chip, pin numbers will be different. Of course xtal can be connested only to dedicated pins. That's true with every microcontroller.

    Proximity.asm runs at 4MHz.

  2. #2
    jmaloway's Avatar
    jmaloway Guest


    Did you find this post helpful? Yes | No

    Default Wiegand-To-RS-232 Adapter

    Ok, I think I get it now.

    I am going to head over to my parts supplier tommorow and pick up a PIC12F629.

    When I get the chip, I'm supposed to get the OSCAL value by doing an upload from the chip and then choosing to use the value from the chip, right?

    Then, once I get "proximity.asm" loaded onto the chip, the pin connections should go as follows:

    Pin 1: +5V DC
    Pin 2: Prox reader "Data 0"
    Pin 3: Prox reader "Data 1"
    Pin 4: No Connection
    Pin 5: No Connection
    Pin 6: No Connection / +5V
    Pin 7: RS-232 Data out
    Pin 8: Ground

    No crystal is needed as the oscillation is taken care of by the internal oscillator.

    Is this correct? :-)

    Thanks again,

    James.

  3. #3
    Join Date
    Sep 2004
    Location
    Tallinn, Estonia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    Yep. That's correct.

  4. #4
    jmaloway's Avatar
    jmaloway Guest


    Did you find this post helpful? Yes | No

    Default What software do you use?

    Felch,

    I went out today and got the PIC12F629 - but I have one question before I do anything... what programmer and software do you use to burn PICs? I was using Ponyprog 2000, but I have also tried IC-Prog which seems to have a much wider range of devices which it can program. Whenever you go to program a device, there are a multitude of options that you can choose, I beleive they are all for the oscillator. Which one should I use?

    Thanks again,

    James.

  5. #5
    Join Date
    Sep 2004
    Location
    Tallinn, Estonia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    What do you mean with options? WDT, OSC? If so, they are processors config options, correct values should be read from the .HEX file. Anyway, switch WDT off, OSC to INTRCIO and MCLR off.
    I use a programmer from www.kitsrus.com -> KIT128. Extremely reliable device!!!
    I made it myself, pcb drawings and PIC code files are given. IC-prog is also goodbut serial port programmers usually do not work. Not enough power from modern ports. Use PPwin if you have to.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts