Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #382576

Re: Microchip "Curiosity" 8 bit demo/development board - $20

From Jan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Newsgroups sci.electronics.design
Subject Re: Microchip "Curiosity" 8 bit demo/development board - $20
Date 2015-10-24 18:08 +0000
Organization Datemas.de http://www.news.datemas.de
Message-ID <n0ghfp$p69$1@news.datemas.de> (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> <n0ffbh$dsn$1@dont-email.me>

Show all headers | View raw


On a sunny day (Sat, 24 Oct 2015 04:28:28 -0400) it happened "P E Schoen"
<paul@pstech-inc.com> wrote in <n0ffbh$dsn$1@dont-email.me>:

>"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

Yes, if customer wants source, sure, 
Last thing in PIC for a big customer I did in asm used the read protection...
That gives me some power in case of bad guys (as these turned out to be).
But AFAIK it has not broken down yet, newer system in use.
University course I did in what was it ET eh no IT ;-)  used PASCAL.

Yes I did the EPROM stuff, designed the programmer, and coded it in binary one
byte at the time with DIP switches.
You know, count instruction cycles etc.
And 8080, Z80 see my CP/M emulator Z80 / 8080 assembler:
 http://panteltje.com/panteltje/z80/index.html
I wrote the Z80 assembler as exercise in C after boss wanted everybody to learn C
for the reason I freaked out the programming department with ever different micros in ASM :-)
Actually big boss was an avid x86 asm programmer himself, come sit next to me... 
Never was that good in x86 asm myself.
I remember he called me to his office one day and showed me one of the first 386 PCs (we worked with IBM).
Man that was fast...
8049? 8052 wrote some stuff for that too:
 http://panteltje.com/panteltje/newsflex/download.html#a52

When you program PICs is asm, and have build a library (almost sound like my old boss now),
writing a new application is mostly cut and paste (I do not use cut and paste my editor has something much better and faster),
All those printing ASCII number routines and config for peripherals is just from the datasheets,
with the relevant bits set (I leave in the datasheet text),
What is left is the actual code that does something, that can be just a few lines or thousands,.
I only ran out of space once on a 18F14K22 and had to stop adding features:
 http://panteltje.com/panteltje/pic/scope_pic/index.html

Asm sufficiently documented, if they cannot figure that out they should not be programming.

As to 'debug', in C we have printf() and in asm just write those hex and decimal printing routines
and you are done.
Serial port is your window.

It must be said I learned the tactics from the book by Professor Alan R Miller, nice to see it online as pdf:
 https://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CCkQFjABahUKEwjXr5-Y09vIAhWCD3IKHVEGBtU&url=https%3A%2F%2Fwos.meulie.net%2Fpub%2Fsinclair%2Fbooks%2F123%2F8080-Z80AssemblyLanguage-TechniquesForImprovedProgramming.pdf&usg=AFQjCNEZPK8pHU8ugcDeLdKyKt1-3zCMxg&sig2=rQwZ3RJNJRrJzrK3j1QHUw&bvm=bv.105841590,d.bGQ

and some paper by University Twente about not needing a debugger in high level languages (like asm is hehe ;-)

Maybe if you look at it from a different perspective:
As long as you can express yourself in one language on a micro that would be OK.
Most supported is C I think.
But losing contact with hardware is very easy even in C.

It is definitely not true that developing applications is simpler of faster in C,
it all depends on the requirements,
and especially on multitasking systems some are next to impossible to implement
because of task switching issues (try writing some Linux drivers for whatever).
Linus is not (per definition) a real time system, not even real time Linux.
In those cases small dedicated micros are a good solution, or should be used in combination with multitasking systems,
I use PICs connected to Raspberries to do just that,

So what you need is knowledge of Unix, C, PIC asm (or some other small micro asm), plus a lot more I guess.
You know best what you can and need.
And the learning process never ends.
 But as with all things, in my NSHO one should start with the simple I/O, and then go further.
these days people cry 'python' (I do not like snakes), like long ago what was it (prolog?), new languages are invented every day,
it is a business!
But those who do NOT know the basics and work top down are like architects not knowing about bricks and concrete.
In my view a programmer who does not know the hardware he works with is close to clueless resource wasting complete idiot.
And not knowing about I/O basics the same.

Many IT projects fail, become more and more expensive...funny was that a few students did the medicaid?
website in a few evenings while the multi million internationals could not get it working.
remember companies have an interest to make it (look0 as complicated and expensive as possible, often text payer money.
Look at the F35, glad Canada is stepping out, an other idiots project, no clue about airplanes, no clue about aerodynamics,
no clue about software, and cashing in ever more from the tax payer.
Easy money.
State of the world.
na US army is just a social project, pity they destroy the world by incompetence.



Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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