I am not new to PIC's but far from an expert..
Requirements:
Operate from 5 volts
6 inputs for switches. ( I know they can be multiplexed onto one pin)
2 inputs for a quadrature encoder.
4 outputs for relays and led.
Outputs for a glcd.
1k of EPROM would be more than enough.
I have used16f1827 pics before but need a few more I/O pins.
Ideas?
Bob
Help choosing a PIC
Moderator: Benj
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Help choosing a PIC
Hi Bob,
Take a look here:
http://www.matrixmultimedia.com/mmforum ... 01&#p22195
It might help you.
Martin
Take a look here:
http://www.matrixmultimedia.com/mmforum ... 01&#p22195
It might help you.
Martin
Martin
-
- Posts: 157
- Joined: Sat Jan 22, 2011 10:39 pm
- Location: Michigan
- Has thanked: 6 times
- Been thanked: 27 times
- Contact:
Re: Help choosing a PIC
Hey Martin,
While I didn't find that thread on my own. I have been to the Microchip site and have been looking at their chip selector guide.
Trying to really plan this one out, not so trial and error like last time.
Only have the PIC and display left to find.
Thanks
Bob
While I didn't find that thread on my own. I have been to the Microchip site and have been looking at their chip selector guide.
Trying to really plan this one out, not so trial and error like last time.
Only have the PIC and display left to find.
Thanks
Bob
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Help choosing a PIC
I would be inclined to go for the 18F series since they can run at faster speeds (48MHz) than 16F series.
That would be better for updating Glcd.
What about something like 18F4455?
If its good enough for the MIAC![Razz :P](./images/smilies/icon_razz.gif)
Martin
That would be better for updating Glcd.
What about something like 18F4455?
If its good enough for the MIAC
![Razz :P](./images/smilies/icon_razz.gif)
Martin
Martin
-
- Posts: 157
- Joined: Sat Jan 22, 2011 10:39 pm
- Location: Michigan
- Has thanked: 6 times
- Been thanked: 27 times
- Contact:
Re: Help choosing a PIC
I was looking at that one.
Lost all my notes in a computer crash, so really starting from scratch.
I thought there were a couple of chips out there now that had built in support for quadrature encoders (QID?)
Just know having extra I/O pins is a good thing.
Lost all my notes in a computer crash, so really starting from scratch.
I thought there were a couple of chips out there now that had built in support for quadrature encoders (QID?)
Just know having extra I/O pins is a good thing.
-
- Posts: 157
- Joined: Sat Jan 22, 2011 10:39 pm
- Location: Michigan
- Has thanked: 6 times
- Been thanked: 27 times
- Contact:
Re: Help choosing a PIC
OK,
I am down to the 18F4431 that has the QEI support built in.
And the 18F4455 that does not.
The 4455 is faster and has more memory.
If I hook up the quadrature encoder on the interrupt on change I/O pins what would I loose/gain with the QEI support?
I am down to the 18F4431 that has the QEI support built in.
And the 18F4455 that does not.
The 4455 is faster and has more memory.
If I hook up the quadrature encoder on the interrupt on change I/O pins what would I loose/gain with the QEI support?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Help choosing a PIC
Hello Bob,
I'm afraid I have never used the QEI peripheral so I can't really tell you the upside of using this. The downside is you would probably have to access this using C code.
The upside of using a IOC or timer based encoder is that Flowcode v5 supports this directly and it is very reliable as long as you have the timer set fast enough or the IOC setup correctly on the encoder pins.
I'm afraid I have never used the QEI peripheral so I can't really tell you the upside of using this. The downside is you would probably have to access this using C code.
The upside of using a IOC or timer based encoder is that Flowcode v5 supports this directly and it is very reliable as long as you have the timer set fast enough or the IOC setup correctly on the encoder pins.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 157
- Joined: Sat Jan 22, 2011 10:39 pm
- Location: Michigan
- Has thanked: 6 times
- Been thanked: 27 times
- Contact:
Re: Help choosing a PIC
Thanks for the info everyone.
I have decided to use the 18F4455
It may be a bit overkill for my needs but have already added 2 more I/O functions to my list.
I also see it has 3 interrupt pins, and on paper is plenty fast.
Best part is that FC5 supports it.
Bob
I have decided to use the 18F4455
It may be a bit overkill for my needs but have already added 2 more I/O functions to my list.
I also see it has 3 interrupt pins, and on paper is plenty fast.
Best part is that FC5 supports it.
Bob