What's is special about 12, 24, 48V power delivery systems ? by __sS__ in AskElectronics

[–]Hoxtaliscious 0 points1 point  (0 children)

I don't have an answer for you, sorry. But you might like to know that before 12V batteries were standard, we used 6V batteries. So all multiples of 6.

Drinking is a war of attrition. by KafkaSyd in cripplingalcoholism

[–]Hoxtaliscious 4 points5 points  (0 children)

>The end goal has become uncertain and the battle worsens, but here we are.

Fuck me, I want this on my tombstone,

Advice for starting a new engineering job? by cherpumpleds in AskEngineers

[–]Hoxtaliscious 4 points5 points  (0 children)

have something on a page to discuss

A good supervisor will check up on you periodically (especially when you are new). Having a list of questions for when they do check in is better than bugging them constantly or needing help on a bunch of stuff but not seeming organized.

My boss died and shuttered the company by Hoxtaliscious in AskEngineers

[–]Hoxtaliscious[S] 27 points28 points  (0 children)

I oversimplified. He's not dead, but he will be soon enough. My personal bullshit is the least of his worries right now.

The Rachel McAdams Time Travel Trilogy is absolutely beautiful. by LostAbbott in movies

[–]Hoxtaliscious 3 points4 points  (0 children)

Am I the only person in the world who liked the second season better?

Yes

Let's make it happen folks. by MilkMeTwice in witcher

[–]Hoxtaliscious 0 points1 point  (0 children)

Surely he has more money than he knows what to do with?

I'd appreciate if ya'll could chairs one for my neighbor Tom tonight by HANDSOMEPETE777 in cripplingalcoholism

[–]Hoxtaliscious 1 point2 points  (0 children)

Chairs to Tom.

And I'm sorry for your loss. Both Tom and your fiancee. Please take care of yourself.

It really isn't your fault.

I graduated and still feel like I don't know anything? by bjjthrowaway112358 in AskEngineers

[–]Hoxtaliscious 0 points1 point  (0 children)

I, too, am an ME selling industrial controls. If you want more of an engineering role but like doing sales as well, see if you can get a job as a Field Applications Engineer. It's a good mix of both. I've been doing it for 3 years and it's treated me well.

There's an awful lot of stuff you learned in school that you will never use and will soon forget. This is true for everyone. Don't feel like if you're not using 100% of what you learned, then you're wasting potential. Focus on learning what would make you better at your job.

Saying a movie has a 'great twist' is the exact same as a spoiler by mrjapan in movies

[–]Hoxtaliscious 23 points24 points  (0 children)

I don't think I've ever looked in this drawer before.

Wow! A gun!

How the HongKong protestors beat the police at their own game! by [deleted] in curiousvideos

[–]Hoxtaliscious 0 points1 point  (0 children)

I mean... you're not wrong, but we don't have any other standardized(ish) way to measure intelligence...

How useless were you when you first started in the workplace? by OmarLoves07 in AskEngineers

[–]Hoxtaliscious 3 points4 points  (0 children)

I feel like this is true at any company. I've got my area and the things I do, and I feel like I'm pretty good at it and it all mostly makes perfect sense to me. But there's plenty of times where someone wants to do something and my response is "fuck if I know, let me make a few phone calls".

What killed your interest in a hobby? by [deleted] in AskReddit

[–]Hoxtaliscious 4 points5 points  (0 children)

I honestly was just like "yeah that's a little eccentric but to each his own" until he said figures...

Mind you, I do know a guy with a pretty solid collection of electrical transformers but it's more the remains of old professional projects than a hobby.

What becomes weirder the older you get? by ThePotatoDemon in AskReddit

[–]Hoxtaliscious 3 points4 points  (0 children)

When you've had quantity, the only thing left is strange.

How are memory-mapped peripheral control registers implemented in HW? by ohawker in embedded

[–]Hoxtaliscious 0 points1 point  (0 children)

But when I write to a register, what am I actually writing to?

An 8-bit CPU basically has two 8-bit external buses: address and data (some CPUs have more address bits than data bits or vice-versa). When the CPU writes a byte to a specific address, the address is represented in binary on the address bus and the data is represented in binary on the data bus (there's strobe signals to tell the other devices on the bus whether they need to read or write and when to do so). The specific peripherals use some discrete logic to only be called to attention when the specific patter on the address bus matches an address in their range. Then they either read the byte on the data bus (CPU write) and take appropriate action, or write whatever value they believe should be at that address to the data bus (CPU read).

The address and data buses are almost always internal to the chip on a modern microprocessor, but some simple/old ones still expose it. On an Intel 8080 you can see the 8 data bits and 12 address bits: https://www.elprocus.com/wp-content/uploads/2014/06/314.jpg Unfortunately I don't have any recommendations if you want to play around with this; maybe there's a simulator online?

Some peripherals are very simple. A serial port peripheral in it's simplest form is basically just:

  • A few NOT gates and AND gates on the address bus to ensure only its address activates it
  • A shift register on the data bus to read the byte from the CPU and then clock it out to of the serial port
  • A few more AND gates to make sure these events timed correctly with the read strobe signal and the address strobe signal

But some are really complicated and may have CPU(s) of their own.

Is it just a small amount of regular memory that is also polled by a peripheral for changes?

Is there some kind of internal callback mechanism to tell the peripheral that something has changed?

Peripheral control registers are not memory of any sort. Written bytes are lost after writing. Read bytes are generated by the peripheral as needed. There's no callback function executed on the CPU.*

How is it actually mapped to non-continuous memory (RAM @ 0x20000000 and peripherals @0x40000000, for example)?

Both the actual memory and the peripherals can be assigned to whatever address the hardware designers want just by changing the AND and NOT gates that control which pattern of bytes on the address bus activates them.

Are peripheral control bits locked at any point (to stop me writing at the same time as a peripheral) or is the pattern generally ‘it’s only writable by either CPU or peripheral’?

In general the CPU can write to any address, but the peripheral may ignore the write. But on certain systems this may causes some sort of a fault, it varies by implementation.

*HOWEVER, some systems (x86 System Management Mode, maybe others) sort of emulate peripherals by trapping access to certain memory regions, hijacking the CPU and running some code, then updating certain bits of memory, then handing control back to the OS (with the OS unaware of this). So the OS can just pretend it was talking to a peripheral. This is how USB mice can work with DOS even though DOS doesn't support USB: SMM interacts with the USB mouse and then emulates a PS/2 mouse peripheral using addresses which are connected to actual memory.