FreshmanNewbie
Advanced Member level 1
I have a Microcontroller - S32K116 - 48 Pin IC. - Datasheet - Reference Manual
I have a Voltage divider (for input voltage monitoring purpose) connected to the Pin 16 (PTC3) of the Microcontroller.
Image :
I have NOT programmed my Microcontroller. But I have connected this Voltage divider circuit to the PTC3 pin of the Microcontroller in my board.
If I give 5V input to the Microcontroller and the same 5V for the Voltage divider, If I measure the output of the voltage divider, I am getting like 0.7V to 0.8V. I should actually get a output voltage of 2.5V, for input voltage of 5V, right?
But then I realized that since my Microcontroller is not programmed, there must be something to do with the default state of the pins (does default state means before programming the microcontroller or after releasing the reset of the microcontroller?) of the microcontroller.
I checked the Reference manual of the Microcontroller.
Note 1 :
On page 89 of the reference manual, table 4.3, it is mentioned as for "Other pins" - the default state is "High Impedance".
Note 2 :
On page 91 of the reference manual, there's a paragraph mentioning - "By default, ALT0 mode (configured by PTXn_PCR[SSS] as 3’b000) corresponds to disabled functionality and pad represents disabled (highimpedance) state. In case if the pad consists of analog functions, the ALT0 mode corresponds to analog functionality once the analog module is configured to enable corresponding channel/input."
My questions :
I am not able to link this table with the Note 2 - paragraph which I have mentioned above.
a. What does default state actually mean? Is the state before the microcontroller is programmed? Or is the state after the microcontroller (once after programmed) Reset is released? What does the default state mean in this context and what does the ALT0 mode indicate? Since, my PTC3 is an analog pin, what is the paragraph in Note 2 trying to convey?
I have a Voltage divider (for input voltage monitoring purpose) connected to the Pin 16 (PTC3) of the Microcontroller.
Image :
I have NOT programmed my Microcontroller. But I have connected this Voltage divider circuit to the PTC3 pin of the Microcontroller in my board.
If I give 5V input to the Microcontroller and the same 5V for the Voltage divider, If I measure the output of the voltage divider, I am getting like 0.7V to 0.8V. I should actually get a output voltage of 2.5V, for input voltage of 5V, right?
But then I realized that since my Microcontroller is not programmed, there must be something to do with the default state of the pins (does default state means before programming the microcontroller or after releasing the reset of the microcontroller?) of the microcontroller.
I checked the Reference manual of the Microcontroller.
Note 1 :
On page 89 of the reference manual, table 4.3, it is mentioned as for "Other pins" - the default state is "High Impedance".
Note 2 :
On page 91 of the reference manual, there's a paragraph mentioning - "By default, ALT0 mode (configured by PTXn_PCR[SSS] as 3’b000) corresponds to disabled functionality and pad represents disabled (highimpedance) state. In case if the pad consists of analog functions, the ALT0 mode corresponds to analog functionality once the analog module is configured to enable corresponding channel/input."
My questions :
- From the Note 1, can somehow like provide me a small illustration of what the "High Impedance" state of the Microcontroller pin would actually look like? (I understand that in High Impedance state, there is no current draw, but just want to know how the impedance state of the microcontroller pin would look like)
- In the sheet, S32K116_IO_Signal_Description_Input_Multiplexing", I found like
I am not able to link this table with the Note 2 - paragraph which I have mentioned above.
a. What does default state actually mean? Is the state before the microcontroller is programmed? Or is the state after the microcontroller (once after programmed) Reset is released? What does the default state mean in this context and what does the ALT0 mode indicate? Since, my PTC3 is an analog pin, what is the paragraph in Note 2 trying to convey?
- Why am I getting 0.7V or 0.8V instead of the required 2.5V when my Microcontroller is not programmed?