KE04Z8 TX Problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KE04Z8 TX Problem

536 Views
davidra7
Contributor I

Hey ,

I using the MKE04Z8 device on my pcb , my problem is that I can't see anything in the line.

I configure the PTA2 as RX PTA3 as TX and used the next basic code:

/* Write your local variable definition here */

  byte packet[2]={100,100};

  word sent ;

  byte retval;

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/

  PE_low_level_init();

  /*** End of Processor Expert internal initialization.                    ***/

  /* Write your code here */

  /* For example: for(;;) { } */

  while(1)

  {

  AS1_SendBlock(packet,2,&sent);

   }

what I done:

1. I configured the next code on PTB0 and PTB1 and it send data.

2. I took the pin of the PTA3 and disconnected it from the pcb and still no output signal.

3. I tried the code on the FRDM and it worked.

4. I tried it on more then 1 PCB Board with different devices.

5. I work on eclipse code warrior and I tried it on kinetis design studio and still not working.

I think that is something on the pin(PTA3) configuration , Any suggestions ?

BTW, The RX line works perfectly and I am attaching picture of the codewarrior window

Thanks,
David

CodeWarrior Windows with TX Problem.jpg

Labels (1)
Tags (2)
0 Kudos
3 Replies

436 Views
Stano
NXP Employee
NXP Employee

Hello David,

The PTA2 and PTA3 are true open-drain pins, so the external pull-ups have to be used for these pins. I suggest you to use resistors of 5-10k, but it depends on real application too. Please try it and let me know the result.

Best Regards,

Stano.

0 Kudos

436 Views
davidra7
Contributor I

Hi,

Thanks for the fast answer, I connected it to 5K pull up and it works :smileyhappy:

Can I use the Internal Pull up for PTA3?

Thanks,
David

0 Kudos

436 Views
Stano
NXP Employee
NXP Employee

Hi David,

yes, you can used the internal pull-up, but it is quite weak - it is about 50kOhm (30 - 60k). So better is to use 5k external resistor for better noise immunity.

Best Regards,

Stano.

0 Kudos