PIC 16F59 + TQFP44 adapter PCB

Discussion in 'The Flea Market' started by takao21203, Jul 14, 2012.

Thread Status:
Not open for further replies.
  1. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    These PIC chips have 2K FLASH, 134 bytes RAM, and 32 I/O bits.

    Price is $2.50 only, new ICs, never used + already mounted on TQFP44 adapter. These adapters have 4x 2x6 2.54mm rows, and are very compact.

    What's the advantage compared with PDIP ICs?

    1. Smaller + more flat.
    2. Wires can be soldered to the TQFP adapter easily.
    3. Some small components can be added, like for instance a crystal or LED.

    PIC 16F59 is similar to 16F54, but has much more RAM + 2K FLASH memory.

    It could be used for simple LCD circuits, for LED blink circuits, timers, sound generator, remote control, and a lot more.

    It is possible to program 16F59 with PICKIT3 (or PICKIT2), and to use XC8 + MPLABX. Or assembler.

    Compared to other PICs, there are very few things to configure here, so it's very easy actually. There is no A/D, indeed no pheripherals at all.

    I don't know how many of them I have around here might be anything between 15 and 30 pcs.

    Shipping would be $3/Worldwide, for UK you can get a small discount (1pcs or more, or including additional components = same shipping rate).

    If you like, I can also include 8Mhz or 12.28 Mhz crystal, or 5 MHz resonator (free).
  2. Bill_Marsden

    Bill_Marsden Moderator Staff Member

    Joined:
    Mar 24, 2008
    Messages:
    19,280
    Location:
    Dallas, TX (GMT-5 w/ DST)
    A suggestion, pictures are better than words.
  3. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    OK here you go. Soldered with 50W station + flux residues removed.

    I don't just want to drop off junk or parts that I don't need anymore.

    The 16F5X is good for some purposes, because it is very easy to configure.
    And not expensive.

    For instance I want to program 5x10 LEDs matrix, to get a text message scroller working on this chip. In assembler this is not possible reasonably. I tried...

    LED drive is direct, no extra components (which I have working here). Typically, red LEDs + 2.4V supply.

    For the font it is required to use external EEPROM chip, and using I2C, might need all of the 2K code space.

    If I can get this working, I will give this for free as source code. Yes you'd also need a programmed EEPROM with font data, 24LC16.

    Maybe it is not possible to program this due to small memory size. But I will try! I have a scrolling source code for 16f1824, but won't give this away, because it's assembler (bad).

    Attached Files:

  4. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    I am offering a DIY kit:

    -16F59 controller mounted on adapter PCB, see above picture
    -50 3mm LEDs, red
    -5cm x 7cm carrier PCB, 2pcs.
    -4016 2 Kbyte CMOS RAM
    -560 KHz resonator, or 3.58 MHz/4 MHz crystal
    -A battery holder for 2xAA
    -A switch for PCB mount
    -Pushbutton for reset

    -Instructions how to assemble the LED matrix
    -Working source code (XC8/MPLAB X), including font data

    All this for only $10 (+ shipping $3.50).
    Documentation provided electronically.

    Build your own scrolling message...

    All you need is some soldering skill for the matrix,
    and a working MPLABX installation + programmer module.

    Attached Files:

    Last edited: Jul 30, 2012
  5. MMcLaren

    MMcLaren Active Member

    Joined:
    Feb 14, 2010
    Messages:
    656
    Location:
    Michigan, USA
    Do you have video of your moving message display? I'm interested to see if you mux'd the display in a way to even out the display brightness.

    TIA. Cheerful regards, Mike
  6. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    yes on my youtube.

    For the red LEDs, there is not much difference.
    The yellow LEDs do show a lot of brightness variation.

    All LEDs are X/Y multiplexed. Normally I use buffer ICs and digital MOSFETs,
    since when using a PIC directly there is always brightness variation.

    https://www.youtube.com/user/crush0nuo10

    you have to scroll a bit to see the video's, I made them some months ago.
  7. MMcLaren

    MMcLaren Active Member

    Joined:
    Feb 14, 2010
    Messages:
    656
    Location:
    Michigan, USA
    Interesting... Thank you...

    Recently I built a single chip scrolling message display and race car game for an 8x8 Red/Green matrix and I discovered I can even out the brightness by refreshing the display one LED at a time instead of one row at a time but that reduces the duty cycle and overall brightness a bit. The small assembly language program drives 72 LEDs in all, eight green rows and one red row, on the matrix and uses about 500 words of program memory and 20 bytes of RAM.

    Good luck with your project.

    Cheerful regards, Mike

    [​IMG]

    [​IMG]

    Attached Files:

    Last edited: Dec 31, 2012
  8. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    It is a small demonstration project and I don't work at it anymore.

    It is also possible to even out the brightness in software, but not on a 16f57.

    Unless I want brightness control, this is not needed. If a buffer IC + MOSFETs are used, no brightness vaiation.
  9. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    OK I also made a better/larger matrix.

    4x 16f1824 refresh controllers. 4bit for each LED.
    74hc595 buffers + MOSFETs. 6x multiplex.

    One PIC32 to generate the bitmaps, and update the refresh controllers.

    I made 2 from the 4 panels working so far.

    4 bit for each LED gives 16 brightness levels. Not so much resolution for a single LED, but in large patterns, it will be fairly visible, I hope.

    Attached Files:

  10. MMcLaren

    MMcLaren Active Member

    Joined:
    Feb 14, 2010
    Messages:
    656
    Location:
    Michigan, USA
    Oh my goodness! All that processor power just for lighting 768 LEDs at 16 brightness levels? I wonder if you couldn't do that with twelve MAX7219 controllers purchased from ebay at about 50 cents a piece and a 12F683 (lol)? Also, wouldn't twelve 8x8 matrix displays from ebay be a much less expensive way to build a 24x32 matrix, not to mention, much easier to wire up?

    Good luck with your projects.

    Cheerful regards, Mike

    <added>

    I would probably try something like this MacMux design to drive up to 1024 LEDs at a 12.5% duty cycle and a reasonably high refresh rate.

    [​IMG]

    Attached Files:

  11. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    Yes it was a considerable effort to solder the LEDs, ICs, and the wires.

    I have calculated more than 10,000 individual steps.

    16f1824 is not expensive.

    And I want to display patterns freely (4 bits each pixel), so a small 8bit PIC is no longer appreciate for that.

    Not only small western fonts but any font, and any bitmap, as well I want to generate lines, small 3d objects and all the like.

    Back some months I already built some TFT display circuits, and they are much better for these things.

    What you can display on 32x24 is still very limited.

    To buffer all the LEDs you need at least 384 bytes RAM.
    Very hard to do anything reasonable with 1K, even that is not enough.

    A blank PIC 32 is not so much expensive. It is not so much different from other PICs, same 3.3V supply as the 16f1824 chips. Each has their own 8 MHz crystal :)

    Yes replacing LEDs which do not work and removing shorts is very frustating. So the LED matrix modules are better. I have only a few days ago removed some shorts, soon I will power up the two other sections.
  12. takao21203

    takao21203 Thread Starter Well-Known Member

    Joined:
    Apr 28, 2012
    Messages:
    2,707
    Location:
    Ireland
    What about a package, containing 2 proto PCBs + 2x 3 digit LED displays?

    All together for let say $5. I drop in a 8 MHz crystal and capacitors as well.

    No seriously. The 16F5x helped me a lot to learn programming, when I still used assembler at that point of time. I used 16F54 a lot and also 16f57.

    Still have many of these chips here, some of course used, but they only gather dust now. Most of the SMD ICs are now mounted on PCB adapters, especially the used one's.

    I could sell this stuff for a low price really, no matter how many ICs you need. 16F54, 16F57, 16F59, new and also used controllers, with or without adapter PCB.

    I simply bought more ICs than I needed back then, but now I don't use 16F5x so much any more.
Thread Status:
Not open for further replies.

Share This Page