|
|
View previous topic :: View next topic |
Author |
Message |
biomed12
Joined: 05 Feb 2016 Posts: 33
|
[recommend]18f MCU |
Posted: Thu Aug 11, 2016 8:21 am |
|
|
Hello Dear Forum CCS family,
A few months later, i will start using again PICs and CCS language for a part of my graduate project. I need your unique experiments with PIC.
The part is related to connect a PIC to internet and also i want to run it at a high freq. more than 20 MHZ (at least). Also its other task is about running a signal processing algorithm. (Maybe i can use another pic for that, i haven't decided yet). The last thing, i want much memory like 96K. I want to do a complicated project and i will use its pins as i can and i will try to run a lot of peripheral module to make my work perfect as it would be possible.
Briefly, do you know for me a perfect PIC, I don't mind about its prices.
(I am not rich, just PICs are very cheap:)
Thanks...
Last edited by biomed12 on Thu Aug 11, 2016 7:30 pm; edited 2 times in total |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Thu Aug 11, 2016 8:51 am |
|
|
What's your education( hands on experience) related to PICs ? Which PICs have you used in real hardware applications ? Have you done any CCS C programs ? Looked at their examples( 100s of them !)
Connecting a PIC to the Internet is not specific as it can be done using hardwire or wireless, say though a router or server. HUGE difference in the approach and what you need. Something like an esp2866(?) may 'link' a PIC to the Net for a few bucks....
Speed >20MHz, not a problem, any of the PICs with PLL can do that. Though speed is NOT the main criteria for a 'good' system.
96K of memory ? Unless you're a really sloppy programmer, 32 or 64K should be lots. Heck my remote energy control system with 512 remotes
only needs 8KB of space and it has LOTS of 'features'.
The major problem that you have is TIME ! a 'few' months is NOT enough unless you start today, plan your project and get coding ! There is a 'learning curve' to every PIC and compiler. That alone could take months just to get reasonably good. You need to break down your project into small 'sub programs', get each one working, then move on. It's the 'details' that will slow you down to a crawl.
My choice(as others know) is the PIC18F46K22. Fast,lots of I/O, lots of memory, a 'solid' stable product.One of many that can run at either 5v or 3v at full speed, critical when interfacing to peripherals, like the 'internet interface device'. While you can make your own PCB or use a 'breadboard' consider buying a 'protoboard WITH 46K22' already mounted. It WILL work 'out of the box' and save you hours or days trying to figure out why your homemade perfboard doesn't run. Be sure to get the 1Hz LED and the 'Hello PC' programs running BEFORE even thinking of cutting code for your 'project'.
Jay |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Thu Aug 11, 2016 2:54 pm |
|
|
For a good advice we need a lot more details about your project, like:
- What is your project about?
- What processor types do you have experience with?
- Why do you want to use a PIC processor?
- You mention 96k memory. Why this amount? Is this RAM or ROM memory?
- How many units are you going to build?
- How important is price? (spending a little bit more can sometimes save a lot of time)
- Is tiny size important?
- etc.
Using a PIC for an internet connected device is possible but wouldn't be my first processor of choice. The PIC16 and PIC18 processors have little RAM which complicates ethernet communication. It is possible, but without more details about your project we don't know which corners can be cut.
PIC24 are newer chips with more capabilities.
Don't fixate on the cost of the processor. The suggested PIC18F46K22 costs around $3. You need a PCB, connectors and some other parts and before you know it the whole unit costs $25 to $75. For these prices you might as well consider a much more powerful Raspberry Pi board for around $45, or another ethernet enabled board from this selection. Those boards use an ARM processor with loads of RAM, ROM and processing power, prices starting at about $20. This saves you a lot of time to get your project going. |
|
|
biomed12
Joined: 05 Feb 2016 Posts: 33
|
|
Posted: Thu Aug 11, 2016 6:40 pm |
|
|
temtronic wrote: | What's your education( hands on experience) related to PICs ? Which PICs have you used in real hardware applications ? Have you done any CCS C programs ? Looked at their examples( 100s of them !)
Connecting a PIC to the Internet is not specific as it can be done using hardwire or wireless, say though a router or server. HUGE difference in the approach and what you need. Something like an esp2866(?) may 'link' a PIC to the Net for a few bucks....
Speed >20MHz, not a problem, any of the PICs with PLL can do that. Though speed is NOT the main criteria for a 'good' system.
96K of memory ? Unless you're a really sloppy programmer, 32 or 64K should be lots. Heck my remote energy control system with 512 remotes
only needs 8KB of space and it has LOTS of 'features'.
The major problem that you have is TIME ! a 'few' months is NOT enough unless you start today, plan your project and get coding ! There is a 'learning curve' to every PIC and compiler. That alone could take months just to get reasonably good. You need to break down your project into small 'sub programs', get each one working, then move on. It's the 'details' that will slow you down to a crawl.
My choice(as others know) is the PIC18F46K22. Fast,lots of I/O, lots of memory, a 'solid' stable product.One of many that can run at either 5v or 3v at full speed, critical when interfacing to peripherals, like the 'internet interface device'. While you can make your own PCB or use a 'breadboard' consider buying a 'protoboard WITH 46K22' already mounted. It WILL work 'out of the box' and save you hours or days trying to figure out why your homemade perfboard doesn't run. Be sure to get the 1Hz LED and the 'Hello PC' programs running BEFORE even thinking of cutting code for your 'project'.
Jay |
I am not a new programmer for instances i did an ecg prototype with MCU before. During the last 4 months i have never coded. Before, i used generally 16f877 and 18f4550 for my previous projects. I want do it in this workout an advanced project it includes very application of PICs. Also you ask my graduate, i am studying biomedical & electronics engineering.
Firstly, probably and very specifically, i will design both of Low Pass Filter and Band Pass Filter with MCUs. I never did a project like that before. I asked high run frequency for it. And secondly, for making the project more effective and complicated, i want to use a lot of peripheral such as LCD, enc28j60, keypad, adc tasking etc etc.. Lastly, if i use the PIC as an html server do you think 32k will be enough?
Also thanks for your device recommend. I wrote down it and i will observe its datasheets. The most important reasons for writing down it is it can run at 3v operating voltage.
I have another question for PIC signal processing ability maybe i need a new topic about that. Do you any knowledge and experiences implementing any filter with MCUs ? I heard before, MCUs are not suitable for designing implementation for filters. In addition some expert people said to me use some concurrent system like DSP, FPGA...
Thanks. |
|
|
biomed12
Joined: 05 Feb 2016 Posts: 33
|
|
Posted: Thu Aug 11, 2016 7:11 pm |
|
|
ckielstra wrote: | For a good advice we need a lot more details about your project, like:
- What is your project about?
- What processor types do you have experience with?
- Why do you want to use a PIC processor?
- You mention 96k memory. Why this amount? Is this RAM or ROM memory?
- How many units are you going to build?
- How important is price? (spending a little bit more can sometimes save a lot of time)
- Is tiny size important?
- etc.
Using a PIC for an internet connected device is possible but wouldn't be my first processor of choice. The PIC16 and PIC18 processors have little RAM which complicates ethernet communication. It is possible, but without more details about your project we don't know which corners can be cut.
PIC24 are newer chips with more capabilities.
Don't fixate on the cost of the processor. The suggested PIC18F46K22 costs around $3. You need a PCB, connectors and some other parts and before you know it the whole unit costs $25 to $75. For these prices you might as well consider a much more powerful Raspberry Pi board for around $45, or another ethernet enabled board from this selection. Those boards use an ARM processor with loads of RAM, ROM and processing power, prices starting at about $20. This saves you a lot of time to get your project going. |
Thanks your invaluable advices but i see that you think for aim directly. I am also biomedical&electronics engineering student, i know our job is to complete a task with most suitable way but in this project i want to learn a lot of things not "just do it" sir. I mentioned about my PICs experiments briefly at previous message.
-My projects generally about signal processing and filter implementation but i also want to drive other peripherals like an LCD..
-16f84,16f877, 18f4550 and dsPIC30f2010(failed project)
-Because it is cheap, easy and reachable
-Maybe i will do an html server application to watch something. you know now ram or rom..
-A lot as it can possible.
-If it is not very expensive, price is not important
-No
..
I also use raspberry pi with C programming language. Maybe i will do same project with rp3i after i complete this task. I collect information nowadays for best hardware. The last thing is I have never used any PIC24 series. Can you give me some information briefly? For example, while i was programming pic16 series, i pass to program pic 18f series easyly. Some hardware specification was different like PLL but i didn't be hard to learn. Do I come across any hard and maybe foreign thing with PIC24 series while I am coding it by using CCS.
You give me some internet connections board. Thanks but, i want to learn in this project how can i open my any hardware to internet. I can do with some task with raspberry pi. For example, it collects some temprature information and sends me via email. I have programmed it with bash&C programming and it does it, I dont know much how is going jobs at hardware level. But now i don't want it directly. I wonder some fundamentals of connections internet and i wonder how it works and as i said before "if i design a device how can connect it to internet"? This is one of the main aims. For being more clear it, it gets some adc datas from a sensor and sends it to my other pc which is out of home. And the pc gets datas and shows datas and informations on a C# program. I hope I could tell my aim.
Thanks. |
|
|
guy
Joined: 21 Oct 2005 Posts: 297
|
|
Posted: Mon Aug 15, 2016 12:54 am |
|
|
Implementing a DSP filter depends on the processing speed that you need: If you have want to measure heartbeats for example, it doesn't require fast processing and a PIC can easily handle it. If you need to analyze 3-axis accelerometer signals to keep a toy helicopter (or a real helicopter) hovering, there is much more processing and much higher rates required. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|