Author Topic: Request: Software Topics  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

Offline creeg2

  • Newbie
  • Posts: 4
Request: Software Topics
« on: December 11, 2012, 02:16:19 pm »
Hey Dave & forum!

Could you do a video (or series) about the software side of electronics?  I consider myself a halfway decent hardware developer but my projects often fall short when it comes to designing the software to run the widget. 

There are plenty of resources on how to "learn C" or look up syntax, but what about code organization, philosophies, rules of thumb, etc.

Thanks for all the great videos!
 

Offline jeroen74

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: nl
Re: Request: Software Topics
« Reply #1 on: December 11, 2012, 11:20:21 pm »
You could run an entire blog by itself on that topic ;) and I guess one of those things where video really isn't suitable.
« Last Edit: December 11, 2012, 11:25:52 pm by jeroen74 »
 

Offline McMonster

  • Frequent Contributor
  • **
  • Posts: 416
  • Country: pl
    • McMonster's blog
Re: Request: Software Topics
« Reply #2 on: December 12, 2012, 10:12:45 am »
There's probably no SD card big enough for Dave to record this kind of video. ;) Also it would most likely be pretty boring. There are very few software oriented blogs, because it's hard to keep people interested when there's a wall of code on the screen most of the time.

But maybe something about software-hardware tradeoffs, or software tricks to replace/enhance hardware and vice versa. Microcontrollers are in near damn everything nowdays, so it could possibly be interesting, but I wouldn't expect Dave shooting anything like this very soon.
 

Offline xDR1TeK

  • Contributor
  • Posts: 47
  • Country: lb
Re: Request: Software Topics
« Reply #3 on: December 21, 2012, 10:35:22 am »
I had a similar incident with one of my controllers where a keypad toolkit is supposed to work on any port channels but was best suited for one channel that had the pull-up resisters built in unless you were going to supply the pull-up resisters externally to any other port channel, the toolkit for the keypad scan failed on port channels with non-pull-up resistors.

Yeh, I believe a video won't help much, since toolkits get updated regularly and bugs like that won't show up six months later.
There are many toolkits out there and there aren't enough ideas to test each and everyone of those.

However, a primer on starting a project is best i think. There isn't much to depend on online for that. Especially most examples online are too specific and they fail by majority while testing. Also had a similar issue in assembly programming a very stupid micro. That was my first chip I ever started working on, that PIC10F200. Some examples make assumptions that you would be working on a 16Fxxx and still the simplest code on a 16F won't run on a 10F micro. Counting the reasons would be crazy. Also compilers and IDEs don't have the same directives over the spectrum of devices.

There isn't really a way to best build a primer for getting into programming the damn things. You just have to get your hands dirty and what doesn't kill you, will only make you stronger. Until you try a different micro with different compiler and different IDE. Then it is just suicide with more bugs that you will have to figure out on your own.

However, shorting a micro from code is only a fault in design of the circuit or perhaps bi-directional bus is latching for output while the control unit that is supposed to latch for higher impedance is not correctly switching, then you need to think of this in terms of protocol. Designing one will take one, will take processing power and hence slow down of latching data transfer. But later on debugging will prevail and you will find your problem.

There is no perfect firmware. They keep getting updated all the time. So be glad you are catching those problems way ahead of time.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf