sci hands-on exercise - nxp semiconductors56800/e training slide 2 freescale™ and the freescale...

Post on 11-Jun-2020

8 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Slide 1

Presenter Logo Here

56800/E Training

Slide 1Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E SCI Hands-On Exercise

56800/E Training

Slide 2Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Task Description

Serial Port (SCI)

Develop a monitor application that uses SCI in messages between PC and DSC56F801x EVB.

56F801xEVB

HyperTerminal (Console) for CAN Data Display

via RS232,Bits/sec : 9600 No parity : none

Stop bit : 1Hardware : None

RS232

56F801x JTAG-DSPAXM-0337

56800/E Training

Slide 3Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Approach

Use Processor Expert Beans to implement Target System applicationAsynchroSerialDownload and Execute on 56F801x Demo Board

56800/E Training

Slide 4Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Click File pull down menu

56800/E Training

Slide 5Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select PE stationary

Type SCI Exercise inside the dial box

56800/E Training

Slide 6Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select MC56F8013VFAE project stationery

56800/E Training

Slide 7Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

PE template is shown on.

56800/E Training

Slide 8Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick AsynchroSerial Bean under Communication PE menu

Then, kick Baud rate dial box under the properties of Bean Inspector AS1:AsynchroSerial

56800/E Training

Slide 9Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Type 9600 baud rate inside the dial box

56800/E Training

Slide 10Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select Generate Code ‘SCI Exercise.mcp’ under PE pull down menu to generate the code

56800/E Training

Slide 11Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E Training

Slide 12Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Open up the SCI_Exercise.c:main file to edit user code.

56800/E Training

Slide 13Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select PE Bean SendCharfor sending out characters

56800/E Training

Slide 14Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Put PE Bean SendChar to SCI_Exercise.c:main by Drag-n-Drop Methods.

56800/E Training

Slide 15Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Made more characters to send out by Copy-n-Paste methods.

56800/E Training

Slide 16Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

We need to wait for the 1st

character send out completely if we want to send out 2nd character in SCI communication.

kick Methods page of Bean Inspector AS1:AsynchroSerial

56800/E Training

Slide 17Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Enable GetRxIdle PE Bean by kicking this dial box

56800/E Training

Slide 18Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Enable GetTxComplete PE Bean by kicking this dial box

56800/E Training

Slide 19Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Scroll up the screen to reach GetTxComplete PE Bean by kick the scroll bar

56800/E Training

Slide 20Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Put PE Bean GetTxComplete to SCI_Exercise.c:main by Drag-n-Drop Methods.

56800/E Training

Slide 21Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Modify it as while statement.

56800/E Training

Slide 22Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Make every while statement for every character sending out.

56800/E Training

Slide 23Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E Training

Slide 24Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick Yes to update the code.

56800/E Training

Slide 25Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E Training

Slide 26Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick green arrow to download the code to 56F801xEVB .

56800/E Training

Slide 27Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E Training

Slide 28Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E Training

Slide 29Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E Training

Slide 30Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick green arrow to run the code inside 56F801xEVB .

56800/E Training

Slide 31Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Invoke HyperTerminal for getting the characters from 56F801xEVB.

56800/E Training

Slide 32Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Type the name you want

56800/E Training

Slide 33Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select your PC COM port for communication

56800/E Training

Slide 34Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select 9600 baud rate, 8 data bit, no parity,1 stop bit, none flow control

Then, kick OK

56800/E Training

Slide 35Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

“Hello” is shown on the HyperTerminal screen

Slide 36

Presenter Logo Here

56800/E Training

Slide 36Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Summary

56800/E Training

Slide 37Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Summary

Understand the hardware and software support available for the 56800E Hybrid Controller product line.

Demonstrated the ease of developing applications using CodeWarrior development tools with Processor Expert™ technology.

56800/E Training

Slide 38Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Thank You!!!

top related