Final stage pin drive for OUT+DIR, ie: Not the DAC.
EDIT: Ah, the full strength transistors are controlled by GP/GN, whereas the lower strength ones are located internal to the PAD DRIVER block. That's why PA is there too.
Oh, penny dropped! The thirteen Mxx mode bits are the same ones as the "Code" in the old Pin_Modes.png file from way back.
EDIT: Interesting. I think I've been reading an out-of-date version of the pin modes. Found another one, called PAD_IO_modes.png, that appears to have corrections. Not entirely sure.
@evanh: Did you intend to remove the inverter on the lower other input?
Yep, I chopped back and forth a couple times actually. In the end I decided that showing it didn't matter because the diagram has no logic functions otherwise ... and at this stage I'm not entirely sure that "Other" is always inverted there anyway.
I don't know, but on the right side, it would be good to show OUT and ACK going into the box.
I've named the smartpin's OUT SmartOUT because it's independent of the cog's OUT. For example, SmartOUT can be driving the pin output while, at the same time, OUT is an A/B input source at the F block.
ACK I had kind of ignored as that's part of WRPIN. Raymans addition looks good to me though.
I see it as the whole smartpin, hense why I put the name where I did. It runs as its own little processor. The rest is just plain I/O config like any other microcontroller.
Comments
I don't remember, exactly, but I think that's how it works.
The slow DAC doesn't latch, at all. It just uses M[7:0]. Is is an R-2R DAC where R = 300K ohms.
It drives the resistance and current modes, plus the main output transistors on the pad, based on the HHH and LLL fields.
EDIT: Ah, the full strength transistors are controlled by GP/GN, whereas the lower strength ones are located internal to the PAD DRIVER block. That's why PA is there too.
EDIT: Interesting. I think I've been reading an out-of-date version of the pin modes. Found another one, called PAD_IO_modes.png, that appears to have corrections. Not entirely sure.
EDIT2: Ah, the prop2 main doc has the second one.
Notable changes, correcting my guesses:
- DAC drive is independent of logic drive
- Comparator has its own DAC
I don't know, but on the right side, it would be good to show OUT and ACK going into the box.
Here's a screenshot with ack added...
Does the Flash DAC also have an enable signal?
ACK I had kind of ignored as that's part of WRPIN. Raymans addition looks good to me though.
I guess there should be a WRPIN if we are putting these in...
No, that's not data path. I made that mistake myself earlier.
What does BitDAC do?
I think COMP_DAC means it goes to both comparator and DAC, right?
Maybe could be called Comp&DAC ?
Good idea. CompDAC was intended to refer to the CompDAC pin mode though. That's why I also had "DACmode" there earlier.
The other thing I need to figure out is SMART_DAC. Not sure what that is...
It's simply the data path from the smartpin to the DAC.
I guess I think of the whole thing as the smartpin...