The  MC9S08PA4 ,when powering on, IO is not a high-impedance in PTB4,PTB5

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

The  MC9S08PA4 ,when powering on, IO is not a high-impedance in PTB4,PTB5

2,996 次查看
zbeehu
Contributor II

i have another problem...

when i power to the PA4,the led will flash,while? Because I program the PA4 find this problem,so i take the PA4 was no program..it also has this problem


6075_6075.jpg12122.jpg

标签 (1)
15 回复数

2,188 次查看
pavel_sadek
NXP Employee
NXP Employee

Hi all,

I have added a yellow LED with 470ohm resistor between pin PTB4 and 5V supply.

watchdog is disabled

pin was configured as output (PTBOE4=1) with initial state 0 and PORT_HDRVE_PTB4 = 1;   LED is shining;

when initial state is 1  LED is off

so it behaves correctly

I have placed   PORT_PTBD_PTBD4 = LED_State;  into main loop and by changing of LED_State I am controlling the state of Led on that pin - supply voltage is 5V - I do not see anything incorrect here.

I have tested the behavior across the voltage and did not found the phenomenon you described... device works from 2.5V in my case.

Pavel

0 项奖励
回复

2,188 次查看
zbeehu
Contributor II


HI Pavel

i mean the VCC is from 0V-5V

0 项奖励
回复

2,188 次查看
pavel_sadek
NXP Employee
NXP Employee

Hi

you can not use Vcc under 2.7V, oherwise the device does not operate (as it is not properly powered)

Pavel

0 项奖励
回复

2,188 次查看
zbeehu
Contributor II

Hi PaveI

when power, the vcc is from 0v-5v, it will  have a little little under 2.7v.

So please look at the issue from the microscopic point of view.

PA32  also have this problem.

But MC9S08QD4,MC9S08SC4 do not have this problem.

0 项奖励
回复

2,188 次查看
bigmac
Specialist III

Hello,

This may depend on the POR threshold for the specific type.  When Vdd starts from zero, but remains below the POR threshold voltage, the I/O state is likely indeterminate, since the MCU hardware has not yet commenced to initialise.

Once the POR threshold is exceeded, the MCU hardware will be internally initialised, with I/O defaulting to inputs.  It would then require that Vdd exceed the the default LVD threshold before the clock would start, and code would commence to run.

To minimize this type of issue, the initial application of the Vdd supply should ramp up within a few milliseconds.

To protect against "brown-out", the LVD shold not be disabled.

Regards,

Mac

2,188 次查看
zbeehu
Contributor II

Hi  Mac

When you design the chip hardware why not solve this problem?

0 项奖励
回复

2,188 次查看
luisburgos
NXP Employee
NXP Employee

Hi, can you explain more of your problem please?

How are you programming the PA4?

What do you want to do?

Burgos.

0 项奖励
回复

2,188 次查看
zbeehu
Contributor II

I am using this port driver PNP transistors, but when I power up every time, because the port has a sink current pulses, causing the circuit to a PNP transistor opened.

No matter how I programmed PA4, power on, when the transistor is turned on, then off, and time is very short.

So I did not do this experiment PA4 programming, the phenomenon is the same.

0 项奖励
回复

2,188 次查看
luisburgos
NXP Employee
NXP Employee

The image of your schematic is correct? i don't see any transistor there.

If you don´t program PA4 the led turn on? and if you program PA4 with ports in default the led turn on too?

Regards, Burgos.

2,188 次查看
zbeehu
Contributor II

http://v.youku.com/v_show/id_XNjA3ODY5NDUy.html

This is a video I shot.

When the voltage at 1.6V or 1.7V, the red lights,Then the chip not working

while red lights?

0 项奖励
回复

2,188 次查看
luisburgos
NXP Employee
NXP Employee

Hu, what happens if you ups the voltage to 5V?

In 1.7 V you are in Power On Reset (POR) range.

The circuit you are testing is the same of your schematic? I need to know that to help you, i can do tests with a board i have.

Regards, Burgos.

0 项奖励
回复

2,188 次查看
bbtech
Contributor I

we confirmed, do have this problem.

0 项奖励
回复

2,188 次查看
zbeehu
Contributor II

hi Burgos

Yes,i use this schematic test.

if i ups the voltage to 5V,PTB4,PTB5 will have Sink current pulse!

0 项奖励
回复

2,188 次查看
pavel_sadek
NXP Employee
NXP Employee

Hi Hu

Operating voltage range is 2.7 to 5.5V, so you are out of range here

Pavel

0 项奖励
回复

2,188 次查看
bbtech
Contributor I

PTB4, PTB5 support ultra high current output.

0 项奖励
回复