Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #382555
| From | "P E Schoen" <paul@pstech-inc.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Microchip "Curiosity" 8 bit demo/development board - $20 |
| Date | 2015-10-24 04:28 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <n0ffbh$dsn$1@dont-email.me> (permalink) |
| References | <n0eh5s$295$1@dont-email.me> <dKBWx.64532$Iq2.63862@fx08.iad> <n0eu28$ur8$1@dont-email.me> <n0fclv$9fd$2@news.datemas.de> |
"Jan Panteltje" wrote in message news:n0fclv$9fd$2@news.datemas.de... > Freaking !!! For these simple processor just write in asm. > if you ever wrote asm for ANY processor then PIC asm should be as simple > or simpler than that. > C on these tiny micros is a waste of time and resources. > Do not get talked into it by those who say 'floats' (what would be the > ONLY reason), there are free 32 bit signed math libs that can do 90% of > what you think you need floats for, if you know how to multiply. > It is all marketing C selling zombie companies making zombies. > Do not use MPLAB and other simulators. > Just use a scope and asm, one pin I/O is enough, debug via serial port, > beats any other method in development time. > Debugger? Never use one. > I tell you learning C specific to these small 16F and 18F micros takes > more time than learning the asm, and you never know if it creates the > right code, etc. > I wrote these things in an afternoon or maybe at the most 2 or 3 evenings: > http://panteltje.com/panteltje/pic/index.html > Just did an other one, very interesting one indeed from a hardware POV, > zero uA off current, one button multi function. > maybe .. if ... > http://panteltje.com/pub/SWR_bridge_IMG_5051.JPG > http://panteltje.com/pub/SWR_bridge_circuit_diagram_IMG_5053.JPG > So there you are, making the web page for it is more work, that is why it > is not there yet :-) > Along with many other projects. > And, before you accuse me of being anti C, no I am anti C++ (C++ is a > crime against humanity), > I write tons of code in C, on a real processor, say Raspberry Pi if you > want it small: > http://panteltje.com/panteltje/xgpspc/index.html > latest (site needs updating). > If your power budget allows: Raspi has a free gcc excellent C compiler, > and all the I/O you can ever want, and comes at 35 $ or so, debugger too I > think. > So if you need to write complicatiatiateded software and must use C or > more memory than a PIC.. go with a Raspi, also because of availability, > and price. > As to reliability I have one running all day with a huge display as > wall-clock, still working fine after a year. > Since I also made my own PIC programmer, and wrote the programming soft > (in C), I think I know what I am talking about. > http://panteltje.com/panteltje/raspberry_pi_noppp/ > Cost so Far? Zero, except for the PICs, the Raspberry is used for multiple > purposes, jppp18 also runs on an old PC with parport. > http://panteltje.com/panteltje/pic/jppp18/index.html > So, if you made it that far, maybe try flashing a LED on a PIC in asm... > :-) > Is that not how in the old days people learned programming? > Or are they now only rubbing screens on an droid ? > Especially for a hardware designer asm is a must. > Talk to and know your chips. I understand to some extent your viewpoint on ASM vs C for small processors such as the 8 bit PICs, but the bottom line in many cases is to get the job done, as well as providing a customer with well-documented and portable source code that could be modified by someone else if needed. So, "C" provides this very well, while assembler can add a layer of unintentional obfuscation. It may be a only an unjustified source of pride to be able to produce solid code and reliable operation of products using a low-level tool such as assembler. I worked on a rather large project using an 8085 processor, written entirely in assembly language, and later I developed another product using Z80 code. We did have an emulator, which helped shorten development time in an era when code was programmed onto multiple 4k UVEPROMs that took 15 minutes to burn. Yeah, you can design hooks for debugging using an I/O pin and an LED and a scope, and you can also provide "hidden" test routines like I did to exercise the display, keypad, and other peripherals. But the bottom line is a function of results, tempered by time and cost, and I choose to use reasonable tools at reasonable prices to get the results I want. I agree that everyone should at least do a few simple projects in assembler, and learn the low-level programming of SFRs and peripherals, but at some point, a HLL is the way to go. I agree that C++ is an abomination, however. I like Borland Delphi for Windows GUI applications. Paul
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Microchip "Curiosity" 8 bit demo/development board - $20 "P E Schoen" <paul@pstech-inc.com> - 2015-10-23 19:53 -0400
Re:Microchip "Curiosity" 8 bit demo/development board - $20 bitrex <bitrex@de.lete.earthlink.net> - 2015-10-23 21:13 -0400
Re: Re:Microchip "Curiosity" 8 bit demo/development board - $20 "P E Schoen" <paul@pstech-inc.com> - 2015-10-23 23:33 -0400
Re: Re:Microchip "Curiosity" 8 bit demo/development board - $20 Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-10-24 07:40 +0000
Re: Microchip "Curiosity" 8 bit demo/development board - $20 "P E Schoen" <paul@pstech-inc.com> - 2015-10-24 04:28 -0400
Re: Microchip "Curiosity" 8 bit demo/development board - $20 Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-10-24 18:08 +0000
Re: Microchip "Curiosity" 8 bit demo/development board - $20 bitrex <bitrex@de.lete.earthlink.net> - 2015-10-24 14:23 -0400
Re: Microchip "Curiosity" 8 bit demo/development board - $20 Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-10-24 19:11 +0000
Re: Microchip "Curiosity" 8 bit demo/development board - $20 bitrex <bitrex@de.lete.earthlink.net> - 2015-10-24 19:50 -0400
Re: Microchip "Curiosity" 8 bit demo/development board - $20 Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-10-25 09:19 +0000
Re: Microchip "Curiosity" 8 bit demo/development board - $20 Jasen Betts <jasen@xnet.co.nz> - 2015-10-24 06:58 +0000
Re: Microchip "Curiosity" 8 bit demo/development board - $20 Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-10-24 08:18 +0000
csiph-web