Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Multiplex switches

Status
Not open for further replies.
Still dont get it lol but will study it real good because seems very usefull expecially for a future project which will be big i mean im going to go in over my head but thats the only way to learn i think. (by force)
 
Don't bother with glue chips. Just use a bigger pic or a second pic. I used a 12C508 to read a 3*4 keypad and send it out as RS232. Much better than a 4017 etc.

Mike.
 
That seems like a logical solution. But i would have to program the other PIC and with the 74LS138 / 4017 i didnt see any programming needed. Just a upside to it. But it might be useful to have another pic onside the main one.
 
AtomSoft said:
That seems like a logical solution. But i would have to program the other PIC and with the 74LS138 / 4017 i didnt see any programming needed. Just a upside to it. But it might be useful to have another pic onside the main one.

You have it backwards. But you are not alone.

The little 8 pin PICs are inexpensive enough that you should be using them in place of glue chips. The 12F508 is a wopping 67 cents from newark.

It may take a bit more work in that you have to program it, but that is what you are trying to learn.
 
You are correct. But as you know some people tend to slack off or if i get lazy i would love an alternative. lol but if i use another chip can i tie it into the same clock or do i have to purchase another clock ? (crystal w/e you call it)
 
AtomSoft said:
You are correct. But as you know some people tend to slack off or if i get lazy i would love an alternative. lol but if i use another chip can i tie it into the same clock or do i have to purchase another clock ? (crystal w/e you call it)

All of the 12F PICs have internal OSCs at 4 and/or 8MHz. So the answer is no, you do not need an external crystal. Given that the little guys only have 8 pins to start with that sort of makes sense.

Many modern 16F and all the 18F PICs that I have used have internal OSCs too. With the some 18F chips you can tie the internal 8MHz OSC to a PLL and run at 32MHz.

You can run more then one PIC off the same crystal. You can goole or search here to find out how. They may be an appnote, not sure.

EDIT: No one is going to give you grief if you use glue chips. But in the long run they are falling out of favor.
 
OK i guess you won me over. I guess sticky with the more popular choice is best due to reliability and availability.


EDIT: Also the PIC12F508 is about 70 Cents from Microchip so heh i guess affordable also counts.
 
AtomSoft said:
OK i guess you won me over. I guess sticky with the more popular choice is best due to reliability and availability.


EDIT: Also the PIC12F508 is about 70 Cents from Microchip so heh i guess affordable also counts.

Until you get a bit more experience you might want to stick with larger chips that have ICSP debug. That extra buck or two could save you days.

Then on the other hand many of us started without ICD, your choice.
 
Well my first start PIC is going to be the 18F1320 mainly because its what comes with the Junebug (which i ordered). The 18F1320 offers ICSP via two pins. Which i find nice.

I would start with these only because i can program them via ICSP but using the Junebug can i program them without ICSP?
 
AtomSoft said:
Well my first start PIC is going to be the 18F1320 mainly because its what comes with the Junebug (which i ordered). The 18F1320 offers ICSP via two pins. Which i find nice.

I would start with these only because i can program them via ICSP but using the Junebug can i program them without ICSP?

Regardless of how you program PICs they use the PGD and PGC pins. ICSP stands for In Circuit Serial Programing. With the Junebug you can program an 18 pin pic in the onboard target socket. You can also program most any pic by using a ICSP cable between the Junebug and the target board.

MCLR/VPP is also used during regular (Hi Voltage) programming. There is another method call LVP (Low Voltage Programming). Time to start reading datasheets. :)

EDIT: We used to have programmers with ZIF sockets. To reprogram a chip you had to pull it out of the target socket and put it in the programmer, program it, and put it back in the target. ICSP is so much easier.

I built a board with an ICSP connector and a scoket for each size of PIC. If I want to program a chip for a board with no ICSP I use it to do the proramming. Most of the time it is best to put an ICSP on your target board.
 
Last edited:
Yeah i know about ICSP I was taught it in another post or earlier in this one not sure. But i intend to always use a ICSP connector on board just for ease of use/upgrade. Thanks for info tho.
 
Since im just getting into this and there is more info on the 1320 ill stick to it but dont get me wrong i might buy some 4620s to have on the side to play with also. :D

I see there are 8 New instructions in the 4620 but to use them you must set the XINST configuration bit. Nice 40Mhz cool.
 
Time Delayed Button (help Me Please)

I need something such a button, which is connected by wires that would have a time delay on it before it realesed any elctricty out the opposite end through other wires, any suggestions.????.. i know very little how this works...
 
why not just use PIC with Delay code?

EDIT: Also how long of a delay? Im new to this stuff but i think i have enough info in my head to help lol. If not there are a lot of people here who can. But i think you need:

1. Pic setup correctly with a time delay you can use a momentary button or switch

2. The code would be a Delay and if using a switch you would need a variable like a IsOn variable to tell the delay that its already running. Like:

if switch 1 is on then check if IsOn is 1 if not then run delay 1 time then set IsOn to 1 then run code.
 
Last edited:
K_doe420 said:
I need something such a button, which is connected by wires that would have a time delay on it before it realesed any elctricty out the opposite end through other wires, any suggestions.????.. i know very little how this works...

Why do half the new posters look like they're making strap on bombs? :D
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top