Click here to Skip to main content
15,915,324 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Do we build like a house or like a car Pin
dandy7222-Jun-18 2:54
dandy7222-Jun-18 2:54 
GeneralRe: Do we build like a house or like a car Pin
Daniel Pfeffer22-Jun-18 2:43
professionalDaniel Pfeffer22-Jun-18 2:43 
GeneralThis is funny. Pin
Brisingr Aerowing21-Jun-18 13:19
professionalBrisingr Aerowing21-Jun-18 13:19 
GeneralRe: This is funny. Pin
DRHuff21-Jun-18 14:41
DRHuff21-Jun-18 14:41 
GeneralRe: This is funny. Pin
GKP199222-Jun-18 1:36
professionalGKP199222-Jun-18 1:36 
GeneralRe: This is funny. Pin
W Balboos, GHB22-Jun-18 2:45
W Balboos, GHB22-Jun-18 2:45 
GeneralSummer Fun with Arduino Challenge - 10 days left to go! Pin
Jovita Dsa21-Jun-18 10:50
professionalJovita Dsa21-Jun-18 10:50 
GeneralA philosophical question... Pin
CodeWraith21-Jun-18 5:31
CodeWraith21-Jun-18 5:31 
Simple question: If you can build a circuit with discrete logic or simply program a cheap microcontroller and be done with it, what would you do?

Discrete logic costs next to nothing, but can very quickly hog up expensive space on your circuit board and complicate the board's layout, including problems with noise on the signals.

The microcontroller often comes in the same price category as the discrete logic chips it is supposed to replace. It's a single chip that has to be programmed to perform the function you want to have it for. It may solve the problem more elegantly than some bare bones logic could. Then again, a microcontroller with internal ROM and RAM and often diverse I/O ports seems a little wasteful for such a trivial job.

For example, I could build my interrupt control logic with discrete ICs or with a single microcontroller. The discrete logic would be simple. Interrupts that were not serviced by the time the signal becomes inactive are lost. There would be no masking and the priorities would be fixed.

The microcontroller could easily do such things, like buffering and holding interrupts until they have been acknowledged and serviced, masking interrupts or assigning different priorities.

Which way would you prefer? An 'object oriented' microcontroller where I just look at the interface and don't care how it does its job internally? Or better the minimalistic approach with discrete logic where everything is 'global'? Still, preparing a tiny computer on a chip for such a simple job seems extremely wasteful...
I have lived with several Zen masters - all of them were cats.

His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

GeneralRe: A philosophical question... Pin
Kornfeld Eliyahu Peter21-Jun-18 5:42
professionalKornfeld Eliyahu Peter21-Jun-18 5:42 
GeneralRe: A philosophical question... Pin
OriginalGriff21-Jun-18 6:26
mveOriginalGriff21-Jun-18 6:26 
GeneralRe: A philosophical question... Pin
Mike Hankey21-Jun-18 7:30
mveMike Hankey21-Jun-18 7:30 
GeneralRe: A philosophical question... Pin
Ron Anders21-Jun-18 8:06
Ron Anders21-Jun-18 8:06 
GeneralRe: A philosophical question... Pin
Marc Clifton21-Jun-18 9:13
mvaMarc Clifton21-Jun-18 9:13 
GeneralRe: A philosophical question... Pin
PIEBALDconsult21-Jun-18 10:20
mvePIEBALDconsult21-Jun-18 10:20 
GeneralRe: A philosophical question... Pin
CPallini21-Jun-18 10:45
mveCPallini21-Jun-18 10:45 
GeneralRe: A philosophical question... Pin
Rick York21-Jun-18 15:15
mveRick York21-Jun-18 15:15 
GeneralRe: A philosophical question... Pin
DKWatson21-Jun-18 20:16
DKWatson21-Jun-18 20:16 
GeneralRe: A philosophical question... Pin
Kirill Illenseer21-Jun-18 20:21
Kirill Illenseer21-Jun-18 20:21 
GeneralRe: A philosophical question... Pin
KBZX500021-Jun-18 21:42
KBZX500021-Jun-18 21:42 
GeneralRe: A philosophical question... Pin
glennPattonWork322-Jun-18 0:33
professionalglennPattonWork322-Jun-18 0:33 
GeneralRe: A philosophical question... Pin
CodeWraith22-Jun-18 1:47
CodeWraith22-Jun-18 1:47 
GeneralRe: A philosophical question... Pin
glennPattonWork322-Jun-18 2:37
professionalglennPattonWork322-Jun-18 2:37 
GeneralRe: A philosophical question... Pin
CodeWraith22-Jun-18 2:54
CodeWraith22-Jun-18 2:54 
GeneralRe: A philosophical question... Pin
glennPattonWork322-Jun-18 3:28
professionalglennPattonWork322-Jun-18 3:28 
GeneralRe: A philosophical question... Pin
Matt McGuire22-Jun-18 4:48
professionalMatt McGuire22-Jun-18 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.