Question

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

Question

1,012 Views
mishra_shrutiki
Contributor II

What are the steps i should follow so that my board will come out of sleep mode using UART function as i am learning demo (power_manager_hal_demo) examples of  freescale semiconductor MK24FN1M0VLQ12. Can you give sample code?

6 Replies

834 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Would be possible that you tell us the device that you are using?

Thanks

834 Views
mishra_shrutiki
Contributor II

Sorry for wrong information.It is Kinetis K24  microcontroller. NXP is manufacturer  and  MK24FN1M0VLQ12 is manufacturer part number. I am trying to understand the power_hal_demo example,but still its not clear . I have to enable the RXEDGIE  (RxD Input Active Edge Interrupt Enable)in uart baud rate register ,through which it will come out of sleep mode.But i don't know what are the steps,before  and after  enabling the RXEDGIE  .

0 Kudos

834 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

It need to enable UART interrupt before enter into low power mode.

Please check K24 reference manual chapter 51.6.1 RXEDGIF description for the detailed info:

S2[RXEDGIF] is set when an active edge is detected on the RxD pin. Therefore, the active edge can be detected only when in two wire mode. A RXEDGIF interrupt is generated only when S2[RXEDGIF] is set. If RXEDGIE is not enabled before
S2[RXEDGIF] is set, an interrupt is not generated.

If possible, please move this thread to https://community.nxp.com/community/kinetis  forum.

Thanks for the understanding.

best regards,

Mike

834 Views
mishra_shrutiki
Contributor II

Hello Hui_Ma,

   I initialized the UARTx_BDH for intance 4 ,but i initialized in main function due to that it stop sending data to real term .Can you tell me where should i initialize it?

0 Kudos

834 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

When customer want to change the UART baud rate, it need to disable UART TX and RX at first (UARTx_C2 register [TE/RE] bits). Then change related baud rate, after that re-enable TX and RX again.


Have a great day,
Mike

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

833 Views
TomE
Specialist II

The OP the device in his post. It is a Kinetis K24. So this post is in the wrong forum.

MK24FN1M0VLQ12 Product Information|NXP 

OP, please move your post to here (there's a "move" option, probably under "Actions" on this page):

Kinetis Microcontrollers 

Tom

0 Kudos